Geant4  10.02.p03
RMC01DetectorMessenger Class Reference

#include <RMC01DetectorMessenger.hh>

Inheritance diagram for RMC01DetectorMessenger:
Collaboration diagram for RMC01DetectorMessenger:

Public Member Functions

 RMC01DetectorMessenger (RMC01DetectorConstruction *)
 
virtual ~RMC01DetectorMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

RMC01DetectorConstructionfTheDetector
 
G4UIdirectoryfGeneralDir
 
G4UIdirectoryfDetDir
 
G4UIcmdWithADoubleAndUnitfSetSensitiveVolumeHeightCmd
 
G4UIcmdWithADoubleAndUnitfSetSensitiveVolumeRadiusCmd
 
G4UIcmdWithADoubleAndUnitfSetShieldingThicknessCmd
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 63 of file RMC01DetectorMessenger.hh.

Constructor & Destructor Documentation

◆ RMC01DetectorMessenger()

RMC01DetectorMessenger::RMC01DetectorMessenger ( RMC01DetectorConstruction GeneralDet)

Definition at line 51 of file RMC01DetectorMessenger.cc.

53 : G4UImessenger(),
54  fTheDetector(GeneralDet),
55  fGeneralDir(0),
56  fDetDir(0),
60 {
61 
62  fGeneralDir= new G4UIdirectory("/RMC01/");
64  "Control of the Geant4 Reverse Monte Carlo example1");
65 
66 
67 
68  fDetDir = new G4UIdirectory("/RMC01/geometry/");
69  fDetDir->SetGuidance("Geometry control");
70 
71 
73  "/RMC01/geometry/SetSensitiveVolumeHeight",this);
75  "Set the height of the sensitive cylinder");
77 
79  "/RMC01/geometry/SetSensitiveVolumeRadius",this);
81  "Set the radius of the sensitive cylinder");
83 
85  "/RMC01/geometry/SetShieldingThickness",this);
87  "Set the thickness of the Aluminum Shielding sphere");
89 
90 }
G4UIcmdWithADoubleAndUnit * fSetSensitiveVolumeHeightCmd
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
G4UIcmdWithADoubleAndUnit * fSetShieldingThicknessCmd
RMC01DetectorConstruction * fTheDetector
G4UIcmdWithADoubleAndUnit * fSetSensitiveVolumeRadiusCmd
Here is the call graph for this function:

◆ ~RMC01DetectorMessenger()

RMC01DetectorMessenger::~RMC01DetectorMessenger ( )
virtual

Definition at line 94 of file RMC01DetectorMessenger.cc.

95 {
96  if (fGeneralDir ) delete fGeneralDir;
97  if (fDetDir) delete fDetDir;
101 
102 }
G4UIcmdWithADoubleAndUnit * fSetSensitiveVolumeHeightCmd
G4UIcmdWithADoubleAndUnit * fSetShieldingThicknessCmd
G4UIcmdWithADoubleAndUnit * fSetSensitiveVolumeRadiusCmd

Member Function Documentation

◆ SetNewValue()

void RMC01DetectorMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 106 of file RMC01DetectorMessenger.cc.

108 { if( command == fSetSensitiveVolumeHeightCmd ){
111  }
112 
113  else if( command == fSetSensitiveVolumeRadiusCmd ){
116  }
117 
118  else if( command == fSetShieldingThicknessCmd ){
121  }
122 }
G4UIcmdWithADoubleAndUnit * fSetSensitiveVolumeHeightCmd
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithADoubleAndUnit * fSetShieldingThicknessCmd
RMC01DetectorConstruction * fTheDetector
G4UIcmdWithADoubleAndUnit * fSetSensitiveVolumeRadiusCmd
Here is the call graph for this function:

Member Data Documentation

◆ fDetDir

G4UIdirectory* RMC01DetectorMessenger::fDetDir
private

Definition at line 76 of file RMC01DetectorMessenger.hh.

◆ fGeneralDir

G4UIdirectory* RMC01DetectorMessenger::fGeneralDir
private

Definition at line 75 of file RMC01DetectorMessenger.hh.

◆ fSetSensitiveVolumeHeightCmd

G4UIcmdWithADoubleAndUnit* RMC01DetectorMessenger::fSetSensitiveVolumeHeightCmd
private

Definition at line 78 of file RMC01DetectorMessenger.hh.

◆ fSetSensitiveVolumeRadiusCmd

G4UIcmdWithADoubleAndUnit* RMC01DetectorMessenger::fSetSensitiveVolumeRadiusCmd
private

Definition at line 79 of file RMC01DetectorMessenger.hh.

◆ fSetShieldingThicknessCmd

G4UIcmdWithADoubleAndUnit* RMC01DetectorMessenger::fSetShieldingThicknessCmd
private

Definition at line 80 of file RMC01DetectorMessenger.hh.

◆ fTheDetector

RMC01DetectorConstruction* RMC01DetectorMessenger::fTheDetector
private

Definition at line 73 of file RMC01DetectorMessenger.hh.


The documentation for this class was generated from the following files: