19 m_trackManager(iManager),
20 m_stopFile(p.getParameter<std::
string>(
"StopFile")),
21 m_debug(p.getUntrackedParameter<bool>(
"debug",
false))
33 <<
"BeginOfEventAction: termination signal received at event "
34 << anEvent->GetEventID();
51 <<
"EndOfEventAction: termination signal received at event "
52 << anEvent->GetEventID();
56 if (anEvent->GetNumberOfPrimaryVertex()==0)
59 <<
"EndOfEventAction: event " << anEvent->GetEventID()
60 <<
" 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