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