EDepSimGPSKinematicsGenerator.cc
Go to the documentation of this file.
1 #include <G4Event.hh>
2 #include <G4GeneralParticleSource.hh>
3 
5 
7  const G4String& name, G4VPrimaryGenerator* gen)
8  : EDepSim::VKinematicsGenerator(name), fGenerator(gen) {}
9 
11 
14  G4Event* evt, const G4LorentzVector& /* position */) {
15  fGenerator->GeneratePrimaryVertex(evt);
16  return kSuccess;
17 }
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
A vertex was successfully generated.
gen
Definition: demo.py:24
virtual GeneratorStatus GeneratePrimaryVertex(G4Event *evt, const G4LorentzVector &position)
Add a primary vertex to the event.
TCEvent evt
Definition: DataStructs.cxx:7