EDepSimMeanCountFactory.cc
Go to the documentation of this file.
4 
7  : EDepSim::VCountFactory("mean",parent), fNumber(1.0) {
8 
9  fNumberCMD = new G4UIcmdWithADouble(CommandName("number"),this);
10  fNumberCMD->SetGuidance("Set the mean number of events to generate.");
11  fNumberCMD->SetParameterName("mean",false);
12 
13 }
14 
16  delete fNumberCMD;
17 }
18 
20  G4String newValue) {
21  if (command == fNumberCMD) {
22  SetNumber(fNumberCMD->GetNewDoubleValue(newValue));
23  }
24  else {
25  EDepSim::VCountFactory::SetNewValue(command,newValue);
26  }
27 }
28 
31  GetNumber(),
32  GetIntensity());
33  return counter;
34 }
35 
EDepSim::VCountGenerator * GetGenerator()
Return the mean count generator.
int command
Construct a module from components.
Definition: TG4HitSegment.h:10
double GetNumber() const
Get the count to be generated.
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
MeanCountFactory(EDepSim::UserPrimaryGeneratorMessenger *parent)
void SetNumber(double mean)
Set the count to be generated.
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
def parent(G, child, parent_type)
Definition: graph.py:67