EDepSimGPSKinematicsGenerator.hh
Go to the documentation of this file.
1 #ifndef EDepSim_GPSKinematicsGenerator_hh_Seen
2 #define EDepSim_GPSKinematicsGenerator_hh_Seen
3 
4 #include <globals.hh>
5 #include <G4LorentzVector.hh>
6 
8 
9 class G4Event;
10 class G4VPrimaryGenerator;
11 
12 /// A base class for primary generator classes used in the EDepSim::. This is
13 /// used by the EDepSim::UserPrimaryGeneratorAction to generate particles which
14 /// will be tracked by the G4 simulation.
15 namespace EDepSim {class GPSKinematicsGenerator;}
17 public:
18  GPSKinematicsGenerator(const G4String& name,
19  G4VPrimaryGenerator* gps);
20  virtual ~GPSKinematicsGenerator();
21 
22  /// Add a primary vertex to the event.
23  virtual GeneratorStatus
24  GeneratePrimaryVertex(G4Event* evt,
25  const G4LorentzVector& position);
26 
27 private:
28  G4VPrimaryGenerator* fGenerator;
29 };
30 #endif
static QCString name
Definition: declinfo.cpp:673
GPSKinematicsGenerator(const G4String &name, G4VPrimaryGenerator *gps)
GeneratorStatus
A status value that can be returned by GeneratePrimaryVertex.
Construct a module from components.
Definition: TG4HitSegment.h:10
virtual GeneratorStatus GeneratePrimaryVertex(G4Event *evt, const G4LorentzVector &position)
Add a primary vertex to the event.
TCEvent evt
Definition: DataStructs.cxx:7