EDepSimDensityPositionGenerator.hh
Go to the documentation of this file.
1 #ifndef EDepSim_DensityPositionGenerator_hh_seen
2 #define EDepSim_DensityPositionGenerator_hh_seen
3 
5 
6 /// Select a position and time to be used as the vertex of a primary particle.
7 namespace EDepSim {class DensityPositionGenerator;}
9 public:
10  DensityPositionGenerator(const G4String& name);
11  virtual ~DensityPositionGenerator();
12 
13  /// Return a candidate vertex.
14  virtual G4LorentzVector GetPosition();
15 
16  /// Flag if the vertex should be forced to the candidate vertex returned
17  /// by GetPosition().
18  virtual bool ForcePosition();
19 
20 private:
21  /// The maximum density in the detector.
23 };
24 #endif
static QCString name
Definition: declinfo.cpp:673
double fMaximumDensity
The maximum density in the detector.
Construct a module from components.
Definition: TG4HitSegment.h:10
virtual G4LorentzVector GetPosition()
Return a candidate vertex.