EDepSimFixedTimeFactory.cc
Go to the documentation of this file.
4 
7  : EDepSim::VTimeFactory("fixed",parent), fTime(1) {
8 
9  fTimeCMD = new G4UIcmdWithADoubleAndUnit(CommandName("time"),this);
10  fTimeCMD->SetGuidance("Set the time of events to generate.");
11  fTimeCMD->SetParameterName("time",false);
12  fTimeCMD->SetUnitCategory("Time");
13 
14 }
15 
17  delete fTimeCMD;
18 }
19 
21  G4String newValue) {
22  if (command == fTimeCMD) {
23  SetTime(fTimeCMD->GetNewDoubleValue(newValue));
24  }
25 }
26 
29  GetTime());
30  return time;
31 }
FixedTimeFactory(EDepSim::UserPrimaryGeneratorMessenger *parent)
EDepSim::VTimeGenerator * GetGenerator()
Return the fixed time generator.
int command
void SetTime(double time)
Set the time to be generated.
G4UIcmdWithADoubleAndUnit * fTimeCMD
double GetTime() const
Get the time to be generated.
Construct a module from components.
Definition: TG4HitSegment.h:10
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
def parent(G, child, parent_type)
Definition: graph.py:67