EDepSimFixedPositionFactory.hh
Go to the documentation of this file.
1 #ifndef EDepSim_FixedPositionFactory_hh_seen
2 #define EDepSim_FixedPositionFactory_hh_seen
3 
5 
6 namespace EDepSim {class FixedPositionFactory;}
8 public:
10  virtual ~FixedPositionFactory();
11 
12  /// Return the fixed vertex generator.
14 
15  /// Return the position for the next generator.
16  G4ThreeVector GetPosition() {return fPosition;}
17 
18  /// Set the position for the next generator.
19  void SetPosition(const G4ThreeVector& pos) {fPosition = pos;}
20 
21  void SetNewValue(G4UIcommand*, G4String);
22 
23 private:
24  G4ThreeVector fPosition;
25 
26  G4UIcmdWith3VectorAndUnit* fPositionCMD;
27 };
28 #endif
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
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.
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