Public Member Functions | Private Attributes | List of all members
CaptDriftRegionMessenger Class Reference
Inheritance diagram for CaptDriftRegionMessenger:
EDepSim::BuilderMessenger

Public Member Functions

 CaptDriftRegionMessenger (CaptDriftRegionBuilder *c)
 
virtual ~CaptDriftRegionMessenger ()
 
void SetNewValue (G4UIcommand *cmd, G4String val)
 
- Public Member Functions inherited from EDepSim::BuilderMessenger
 BuilderMessenger (EDepSim::Builder *c, const char *guide=NULL)
 
virtual ~BuilderMessenger ()
 
G4String GetDirectory (void)
 Return the name of the directory. More...
 
G4String CommandName (G4String cmd)
 Build a command name with the directory prefix. More...
 
void SetNewValue (G4UIcommand *cmd, G4String val)
 

Private Attributes

CaptDriftRegionBuilderfBuilder
 
G4UIcmdWithADoubleAndUnit * fApothemCMD
 
G4UIcmdWithADoubleAndUnit * fDriftLengthCMD
 
G4UIcmdWithADoubleAndUnit * fWirePlaneSpacingCMD
 

Detailed Description

Definition at line 24 of file CaptDriftRegionBuilder.cc.

Constructor & Destructor Documentation

CaptDriftRegionMessenger::CaptDriftRegionMessenger ( CaptDriftRegionBuilder c)
inline

Definition at line 33 of file CaptDriftRegionBuilder.cc.

34  : EDepSim::BuilderMessenger(c,"Control the drift region geometry."),
35  fBuilder(c) {
36 
38  = new G4UIcmdWithADoubleAndUnit(CommandName("apothem"),this);
39  fApothemCMD->SetGuidance("Set the apothem of the drift region.");
40  fApothemCMD->SetParameterName("apothem",false);
41  fApothemCMD->SetUnitCategory("Length");
42 
43  fDriftLengthCMD = new G4UIcmdWithADoubleAndUnit(
44  CommandName("driftLength"),this);
45  fDriftLengthCMD->SetGuidance(
46  "Set the drift length from cathode to wires.");
47  fDriftLengthCMD->SetParameterName("drift",false);
48  fDriftLengthCMD->SetUnitCategory("Length");
49 
50  fWirePlaneSpacingCMD = new G4UIcmdWithADoubleAndUnit(
51  CommandName("wirePlaneSpacing"),this);
52  fWirePlaneSpacingCMD->SetGuidance(
53  "Set spacing between the wires.");
54  fWirePlaneSpacingCMD->SetParameterName("space",false);
55  fWirePlaneSpacingCMD->SetUnitCategory("Length");
56  };
G4UIcmdWithADoubleAndUnit * fApothemCMD
G4UIcmdWithADoubleAndUnit * fWirePlaneSpacingCMD
G4UIcmdWithADoubleAndUnit * fDriftLengthCMD
CaptDriftRegionBuilder * fBuilder
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
virtual CaptDriftRegionMessenger::~CaptDriftRegionMessenger ( )
inlinevirtual

Definition at line 58 of file CaptDriftRegionBuilder.cc.

58  {
59  delete fApothemCMD;
60  delete fDriftLengthCMD;
61  delete fWirePlaneSpacingCMD;
62  };
G4UIcmdWithADoubleAndUnit * fApothemCMD
G4UIcmdWithADoubleAndUnit * fWirePlaneSpacingCMD
G4UIcmdWithADoubleAndUnit * fDriftLengthCMD

Member Function Documentation

void CaptDriftRegionMessenger::SetNewValue ( G4UIcommand *  cmd,
G4String  val 
)
inline

Definition at line 64 of file CaptDriftRegionBuilder.cc.

64  {
65  if (cmd==fApothemCMD) {
66  fBuilder->SetApothem(fApothemCMD->GetNewDoubleValue(val));
67  }
68  else if (cmd==fDriftLengthCMD) {
69  fBuilder->SetDriftLength(fDriftLengthCMD->GetNewDoubleValue(val));
70  }
71  else if (cmd==fWirePlaneSpacingCMD) {
73  fWirePlaneSpacingCMD->GetNewDoubleValue(val));
74  }
75  else {
77  }
78  };
void SetNewValue(G4UIcommand *cmd, G4String val)
G4UIcmdWithADoubleAndUnit * fApothemCMD
void SetWirePlaneSpacing(double v)
Set the spacing between the wire planes.
G4UIcmdWithADoubleAndUnit * fWirePlaneSpacingCMD
G4UIcmdWithADoubleAndUnit * fDriftLengthCMD
CaptDriftRegionBuilder * fBuilder
list cmd
Definition: getreco.py:22

Member Data Documentation

G4UIcmdWithADoubleAndUnit* CaptDriftRegionMessenger::fApothemCMD
private

Definition at line 28 of file CaptDriftRegionBuilder.cc.

CaptDriftRegionBuilder* CaptDriftRegionMessenger::fBuilder
private

Definition at line 27 of file CaptDriftRegionBuilder.cc.

G4UIcmdWithADoubleAndUnit* CaptDriftRegionMessenger::fDriftLengthCMD
private

Definition at line 29 of file CaptDriftRegionBuilder.cc.

G4UIcmdWithADoubleAndUnit* CaptDriftRegionMessenger::fWirePlaneSpacingCMD
private

Definition at line 30 of file CaptDriftRegionBuilder.cc.


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