EDepSimFixedPositionGenerator.hh
Go to the documentation of this file.
1 #ifndef EDepSim_FixedPositionGenerator_hh_seen
2 #define EDepSim_FixedPositionGenerator_hh_seen
3 
4 #include <G4ThreeVector.hh>
5 #include <G4LorentzVector.hh>
6 
8 
9 /// Select a position and time to be used as the vertex of a primary particle.
10 namespace EDepSim {class FixedPositionGenerator;}
12 public:
13  FixedPositionGenerator(const G4String& name,
14  const G4ThreeVector& pos);
15  virtual ~FixedPositionGenerator();
16 
17  /// Return a candidate vertex.
18  virtual G4LorentzVector GetPosition();
19 
20  /// Set the position for the vertex.
21  virtual void SetPosition(const G4ThreeVector& pos);
22 
23  /// Flag if the vertex should be forced to the candidate vertex returned
24  /// by GetPosition().
25  virtual bool ForcePosition();
26 
27 private:
28  /// The position for this generator.
29  G4LorentzVector fPosition;
30 };
31 #endif
static QCString name
Definition: declinfo.cpp:673
FixedPositionGenerator(const G4String &name, const G4ThreeVector &pos)
Construct a module from components.
Definition: TG4HitSegment.h:10
virtual void SetPosition(const G4ThreeVector &pos)
Set the position for the vertex.
virtual G4LorentzVector GetPosition()
Return a candidate vertex.
G4LorentzVector fPosition
The position for this generator.