17 m_trackManager(iManager),
18 m_stopFile(p.getParameter<std::
string>(
"StopFile")),
19 m_debug(p.getUntrackedParameter<bool>(
"debug",
false))
30 cout <<
"BeginOfEventAction: termination signal received at event "
31 << anEvent->GetEventID() << endl;
46 cout <<
"EndOfEventAction: termination signal received at event "
47 << anEvent->GetEventID() << endl;
51 if (anEvent->GetNumberOfPrimaryVertex()==0)
53 cout <<
" EndOfEventAction: event " << anEvent->GetEventID()
54 <<
" must have failed (no G4PrimaryVertices found) and will be skipped "
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
T getParameter(std::string const &) const
RunManager * m_runManager
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
void abortRun(bool softAbort=false)
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 storeTracks(G4SimEvent *simEvent)
EventAction(const edm::ParameterSet &ps, RunManager *, SimTrackManager *)
SimTrackManager * m_trackManager
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
void setCollapsePrimaryVertices(bool iSet)
SimActivityRegistry::BeginOfEventSignal m_beginOfEventSignal