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

Public Member Functions

 CaptCryostatMessenger (CaptCryostatBuilder *c)
 
virtual ~CaptCryostatMessenger ()
 
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

CaptCryostatBuilderfBuilder
 
G4UIcmdWithADoubleAndUnit * fArgonDepthCMD
 
G4UIcmdWithADoubleAndUnit * fTPCDepthCMD
 
G4UIcmdWithAString * fVesselTypeCMD
 

Detailed Description

Definition at line 23 of file CaptCryostatBuilder.cc.

Constructor & Destructor Documentation

CaptCryostatMessenger::CaptCryostatMessenger ( CaptCryostatBuilder c)
inline

Definition at line 32 of file CaptCryostatBuilder.cc.

33  : EDepSim::BuilderMessenger(c,"Control the driftRegion geometry."),
34  fBuilder(c) {
35 
37  = new G4UIcmdWithADoubleAndUnit(CommandName("argonDepth"),this);
38  fArgonDepthCMD->SetGuidance(
39  "Set the distance between the flange and the liquid argon.");
40  fArgonDepthCMD->SetParameterName("depth",false);
41  fArgonDepthCMD->SetUnitCategory("Length");
42 
44  = new G4UIcmdWithADoubleAndUnit(CommandName("tpcDepth"),this);
45  fTPCDepthCMD->SetGuidance(
46  "Set the distance between the flange and TPC origin.");
47  fTPCDepthCMD->SetParameterName("depth",false);
48  fTPCDepthCMD->SetUnitCategory("Length");
49 
51  = new G4UIcmdWithAString(CommandName("vessel"),this);
52  fVesselTypeCMD->SetGuidance(
53  "Set the type of vessel to be built.");
54  fVesselTypeCMD->SetCandidates("CAPTAIN mCAPTAIN");
55  };
G4UIcmdWithADoubleAndUnit * fArgonDepthCMD
CaptCryostatBuilder * fBuilder
G4UIcmdWithAString * fVesselTypeCMD
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
G4UIcmdWithADoubleAndUnit * fTPCDepthCMD
virtual CaptCryostatMessenger::~CaptCryostatMessenger ( )
inlinevirtual

Definition at line 57 of file CaptCryostatBuilder.cc.

57  {
58  delete fArgonDepthCMD;
59  delete fTPCDepthCMD;
60  delete fVesselTypeCMD;
61  };
G4UIcmdWithADoubleAndUnit * fArgonDepthCMD
G4UIcmdWithAString * fVesselTypeCMD
G4UIcmdWithADoubleAndUnit * fTPCDepthCMD

Member Function Documentation

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

Definition at line 63 of file CaptCryostatBuilder.cc.

63  {
64  if (cmd==fArgonDepthCMD) {
66  fArgonDepthCMD->GetNewDoubleValue(val));
67  }
68  else if (cmd==fTPCDepthCMD) {
70  fTPCDepthCMD->GetNewDoubleValue(val));
71  }
72  else if (cmd==fVesselTypeCMD) {
74  }
75  else {
77  }
78  };
void SetNewValue(G4UIcommand *cmd, G4String val)
G4UIcmdWithADoubleAndUnit * fArgonDepthCMD
CaptCryostatBuilder * fBuilder
G4UIcmdWithAString * fVesselTypeCMD
void SetArgonDepth(double v)
void SetTPCDepth(double v)
list cmd
Definition: getreco.py:22
G4UIcmdWithADoubleAndUnit * fTPCDepthCMD
void SetVesselType(std::string v)

Member Data Documentation

G4UIcmdWithADoubleAndUnit* CaptCryostatMessenger::fArgonDepthCMD
private

Definition at line 27 of file CaptCryostatBuilder.cc.

CaptCryostatBuilder* CaptCryostatMessenger::fBuilder
private

Definition at line 26 of file CaptCryostatBuilder.cc.

G4UIcmdWithADoubleAndUnit* CaptCryostatMessenger::fTPCDepthCMD
private

Definition at line 28 of file CaptCryostatBuilder.cc.

G4UIcmdWithAString* CaptCryostatMessenger::fVesselTypeCMD
private

Definition at line 29 of file CaptCryostatBuilder.cc.


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