EDepSimFixedPositionFactory.cc
Go to the documentation of this file.
4 
7  : EDepSim::VPositionFactory("fixed",parent),
8  fPosition(0,0,0) {
9 
10  fPositionCMD = new G4UIcmdWith3VectorAndUnit(CommandName("position"),this);
11  fPositionCMD->SetGuidance("Set the position of events to generate.");
12  fPositionCMD->SetParameterName("x","y","z",false);
13  fPositionCMD->SetUnitCategory("Length");
14 
15 }
16 
18 
22  return vertex;
23 }
24 
26  G4String newValue) {
27  if (command == fPositionCMD) {
28  SetPosition(fPositionCMD->GetNew3VectorValue(newValue));
29  }
30 }
31 
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
int command
G4ThreeVector GetPosition()
Return the position for the next generator.
Construct a module from components.
Definition: TG4HitSegment.h:10
EDepSim::VPositionGenerator * GetGenerator()
Return the fixed vertex generator.
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
void SetPosition(const G4ThreeVector &pos)
Set the position for the next generator.
G4UIcmdWith3VectorAndUnit * fPositionCMD
FixedPositionFactory(EDepSim::UserPrimaryGeneratorMessenger *parent)
def parent(G, child, parent_type)
Definition: graph.py:67
vertex reconstruction