16 #include "G4RunManager.hh"    21 #include "G4UIdirectory.hh"    22 #include "G4UIcmdWithAString.hh"    23 #include "G4UIcmdWithAnInteger.hh"    24 #include "G4UIcmdWithADoubleAndUnit.hh"    25 #include "G4UIcmdWith3VectorAndUnit.hh"    26 #include "G4UIcmdWithoutParameter.hh"    38   :ActarSimSilDetector(ActarSimSilDet) {
    39   detDir = 
new G4UIdirectory(
"/ActarSim/det/sil/");
    40   detDir->SetGuidance(
"silicon detector control");
    42   printCmd = 
new G4UIcmdWithoutParameter(
"/ActarSim/det/sil/print",
this);
    43   printCmd->SetGuidance(
"Prints geometry.");
    44   printCmd->AvailableForStates(G4State_Idle);
    46   sideCoverageCmd = 
new G4UIcmdWithAnInteger(
"/ActarSim/det/sil/sideCoverage",
this);
    47   sideCoverageCmd->SetGuidance(
"Selects the silicon coverage (default 1).");
    48   sideCoverageCmd->SetGuidance(
" 6 bits to indicate which sci wall is present (1) or absent (0). The order is: ");
    52   sideCoverageCmd->SetGuidance(
" bit4 left (from beam point of view) wall ");
    53   sideCoverageCmd->SetGuidance(
" bit5 right (from beam point of view) wall ");
    55   sideCoverageCmd->SetGuidance(
" Convert the final binary to a decimal number (betwee 0 and 63) and set the coverage! ");
    59   xBoxHalfLengthCmd = 
new G4UIcmdWithADoubleAndUnit(
"/ActarSim/det/sil/xBoxHalfLength",
this);
    60   xBoxHalfLengthCmd->SetGuidance(
"Sets the x half length of the silicon detectors box");
    67   yBoxHalfLengthCmd = 
new G4UIcmdWithADoubleAndUnit(
"/ActarSim/det/sil/yBoxHalfLength",
this);
    68   yBoxHalfLengthCmd->SetGuidance(
"Sets the y half length of the silicon detectors box");
    75   zBoxHalfLengthCmd = 
new G4UIcmdWithADoubleAndUnit(
"/ActarSim/det/sil/zBoxHalfLength",
this);
    76   zBoxHalfLengthCmd->SetGuidance(
"Sets the z half length of the silicon detectors box");
 G4UIcmdWithADoubleAndUnit * zBoxHalfLengthCmd
Sets the z half length of the silicon detectors box. 
G4UIcmdWithoutParameter * printCmd
Prints geometry. 
ActarSimSilDetectorConstruction * ActarSimSilDetector
Pointer to main detector class. 
void SetXBoxSilHalfLength(G4double xBox)
G4UIcmdWithAnInteger * sideCoverageCmd
Selects the silicon coverage (default 1) 
void PrintDetectorParameters()
Prints Scintillator detector parameters. 
void SetSideCoverage(G4int cov)
~ActarSimSilDetectorMessenger()
Destructor. 
G4UIcmdWithADoubleAndUnit * xBoxHalfLengthCmd
Sets the x half length of the silicon detectors box. 
void SetNewValue(G4UIcommand *, G4String)
Setting the values using the ActarSimROOTAnalysis interface. 
ActarSimSilDetectorMessenger(ActarSimSilDetectorConstruction *)
void SetYBoxSilHalfLength(G4double yBox)
G4UIdirectory * detDir
Directory in messenger structure. 
void SetZBoxSilHalfLength(G4double zBox)
G4UIcmdWithADoubleAndUnit * yBoxHalfLengthCmd
Sets the y half length of the silicon detectors box.