EDepSimVCountFactory.cc
Go to the documentation of this file.
2 
4  G4String name,
6  bool makeDirectory)
7  : EDepSim::VPrimaryFactory("count",name,parent,makeDirectory), fIntensity(0.0)
8 {
9  fIntensityCMD = new G4UIcmdWithADouble(CommandName("intensity"),this);
10  fIntensityCMD->SetGuidance("Set the intensity for the events. This is"
11  " only for documentation and is saved in the"
12  " MC header.");
13  fIntensityCMD->SetParameterName("intensity",false);
14 }
15 
17  delete fIntensityCMD;
18 }
19 
21  G4String newValue) {
22  if (command == fIntensityCMD) {
23  SetIntensity(fIntensityCMD->GetNewDoubleValue(newValue));
24  }
25 }
static QCString name
Definition: declinfo.cpp:673
int command
G4UIcmdWithADouble * fIntensityCMD
Construct a module from components.
Definition: TG4HitSegment.h:10
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
VCountFactory(G4String name, EDepSim::UserPrimaryGeneratorMessenger *fParent, bool makeDirectory=true)
void SetIntensity(double v)
Set the intensity.
def parent(G, child, parent_type)
Definition: graph.py:67