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

Public Member Functions

 CaptWirePlaneMessenger (CaptWirePlaneBuilder *c)
 
virtual ~CaptWirePlaneMessenger ()
 
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

CaptWirePlaneBuilderfBuilder
 
G4UIcmdWithADoubleAndUnit * fApothemCMD
 
G4UIcmdWithADoubleAndUnit * fSpacingCMD
 
G4UIcmdWithAnInteger * fMaxWireCountCMD
 

Detailed Description

Definition at line 22 of file CaptWirePlaneBuilder.cc.

Constructor & Destructor Documentation

CaptWirePlaneMessenger::CaptWirePlaneMessenger ( CaptWirePlaneBuilder c)
inline

Definition at line 32 of file CaptWirePlaneBuilder.cc.

33  : EDepSim::BuilderMessenger(c,"Control the drift region geometry."),
34  fBuilder(c) {
35 
37  = new G4UIcmdWithADoubleAndUnit(CommandName("apothem"),this);
38  fApothemCMD->SetGuidance("Set the apothem of the drift region.");
39  fApothemCMD->SetParameterName("apothem",false);
40  fApothemCMD->SetUnitCategory("Length");
41 
42  fSpacingCMD = new G4UIcmdWithADoubleAndUnit(
43  CommandName("wireSpacing"),this);
44  fSpacingCMD->SetGuidance(
45  "Set the wire spacing.");
46  fSpacingCMD->SetParameterName("spacing",false);
47  fSpacingCMD->SetUnitCategory("Length");
48 
49  fMaxWireCountCMD = new G4UIcmdWithAnInteger(
50  CommandName("maxWireCount"),this);
51  fMaxWireCountCMD->SetGuidance(
52  "Set the maximum number of wires in a plane.");
53  fMaxWireCountCMD->SetParameterName("count",false);
54 
55  }
CaptWirePlaneBuilder * fBuilder
G4UIcmdWithADoubleAndUnit * fSpacingCMD
G4UIcmdWithAnInteger * fMaxWireCountCMD
G4UIcmdWithADoubleAndUnit * fApothemCMD
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
virtual CaptWirePlaneMessenger::~CaptWirePlaneMessenger ( )
inlinevirtual

Definition at line 57 of file CaptWirePlaneBuilder.cc.

57  {
58  delete fApothemCMD;
59  delete fSpacingCMD;
60  delete fMaxWireCountCMD;
61  }
G4UIcmdWithADoubleAndUnit * fSpacingCMD
G4UIcmdWithAnInteger * fMaxWireCountCMD
G4UIcmdWithADoubleAndUnit * fApothemCMD

Member Function Documentation

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

Definition at line 63 of file CaptWirePlaneBuilder.cc.

63  {
64  if (cmd==fApothemCMD) {
65  fBuilder->SetApothem(fApothemCMD->GetNewDoubleValue(val));
66  }
67  else if (cmd==fSpacingCMD) {
68  fBuilder->SetSpacing(fSpacingCMD->GetNewDoubleValue(val));
69  }
70  else if (cmd==fMaxWireCountCMD) {
71  fBuilder->SetMaxWireCount(fMaxWireCountCMD->GetNewIntValue(val));
72  }
73  else {
75  }
76  }
void SetNewValue(G4UIcommand *cmd, G4String val)
CaptWirePlaneBuilder * fBuilder
G4UIcmdWithADoubleAndUnit * fSpacingCMD
G4UIcmdWithAnInteger * fMaxWireCountCMD
G4UIcmdWithADoubleAndUnit * fApothemCMD
list cmd
Definition: getreco.py:22

Member Data Documentation

G4UIcmdWithADoubleAndUnit* CaptWirePlaneMessenger::fApothemCMD
private

Definition at line 26 of file CaptWirePlaneBuilder.cc.

CaptWirePlaneBuilder* CaptWirePlaneMessenger::fBuilder
private

Definition at line 25 of file CaptWirePlaneBuilder.cc.

G4UIcmdWithAnInteger* CaptWirePlaneMessenger::fMaxWireCountCMD
private

Definition at line 28 of file CaptWirePlaneBuilder.cc.

G4UIcmdWithADoubleAndUnit* CaptWirePlaneMessenger::fSpacingCMD
private

Definition at line 27 of file CaptWirePlaneBuilder.cc.


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