add messenger

This commit is contained in:
2021-01-15 18:38:28 -06:00
parent 73a7eb309a
commit d81373bcbc
2 changed files with 103 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#ifndef DetectorConstructionMessenger_h
#define DetectorConstructionMessenger_h 1
class DetectorConstruction;
class G4UIdirectory;
class G4UIcmdWithADoubleAndUnit;
class G4UIcmdWithAIntAndUnit;
class G4UIcmdWith3VectorAndUnit;
class G4UIcmdWith3Vector;
class G4UIcmdWithABool;
class G4UIcmdWithAString;
class G4UIcmdWithADouble;
#include "G4UImessenger.hh"
#include "globals.hh"
class DetectorConstructionMessenger: public G4UImessenger
{
public:
DetectorConstructionMessenger(DetectorConstruction *detCon);
~DetectorConstructionMessenger();
virtual void SetNewValue(G4UIcommand *command, G4String newValues);
virtual G4String GetCurrentValue(G4UIcommand * command);
private:
DetectorConstruction *fDetCon;
G4UIdirectory *fMuTomoDirectory;
G4UIcmdWithAString *fTargetMaterialCmd;
G4UIcmdWith3VectorAndUnit *fTargetSizeCmd;
G4UIcmdWith3VectorAndUnit *fTargetLocationCmd;
};
#endif