11 #include "Randomize.hh"
20 m_trackManager(iManager),
21 m_stopFile(p.getParameter<std::
string>(
"StopFile")),
22 m_printRandom(p.getParameter<bool>(
"PrintRandomSeed")),
23 m_debug(p.getUntrackedParameter<bool>(
"debug",
false))
35 <<
"BeginOfEventAction: termination signal received at event "
36 << anEvent->GetEventID();
52 edm::LogInfo(
"SimG4CoreApplication") <<
" Event " << anEvent->GetEventID()
53 <<
" Random number: " << G4UniformRand();
61 <<
"EndOfEventAction: termination signal received at event "
62 << anEvent->GetEventID();
66 if (anEvent->GetNumberOfPrimaryVertex()==0)
69 <<
"EndOfEventAction: event " << anEvent->GetEventID()
70 <<
" must have failed (no G4PrimaryVertices found) and will be skipped ";
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
T getParameter(std::string const &) const
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
SimRunInterface * m_runInterface
EventAction(const edm::ParameterSet &ps, SimRunInterface *, SimTrackManager *)
SimActivityRegistry::EndOfEventSignal m_endOfEventSignal
void EndOfEventAction(const G4Event *evt)
void cleanTkCaloStateInfoMap()
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
void BeginOfEventAction(const G4Event *evt)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
void abortRun(bool softAbort)
void storeTracks(G4SimEvent *simEvent)
SimTrackManager * m_trackManager
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
volatile std::atomic< bool > shutdown_flag false
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
void setCollapsePrimaryVertices(bool iSet)
SimActivityRegistry::BeginOfEventSignal m_beginOfEventSignal