12 #include "Randomize.hh" 19 m_trackManager(iManager),
20 m_SteppingVerbose(sv),
21 m_stopFile(p.getParameter<
std::
string>(
"StopFile")),
22 m_printRandom(p.getParameter<
bool>(
"PrintRandomSeed")),
23 m_debug(p.getUntrackedParameter<
bool>(
"debug",
false))
40 <<
"BeginOfEvent " << anEvent->GetEventID()
41 <<
" Random number: " << G4UniformRand();
52 <<
" EndOfEvent " << anEvent->GetEventID()
53 <<
" Random number: " << G4UniformRand();
58 <<
"EndOfEventAction: termination signal received at event " 59 << anEvent->GetEventID();
63 if (anEvent->GetNumberOfPrimaryVertex()==0)
66 <<
"EndOfEventAction: event " << anEvent->GetEventID()
67 <<
" must have failed (no G4PrimaryVertices found) and will be skipped ";
82 const std::pair<math::XYZVectorD,math::XYZTLorentzVectorD>&
p)
T getParameter(std::string const &) const
SimRunInterface * m_runInterface
SimActivityRegistry::EndOfEventSignal m_endOfEventSignal
void cleanTkCaloStateInfoMap()
void BeginOfEventAction(const G4Event *evt) override
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
void abortRun(bool softAbort)
CMSSteppingVerbose * m_SteppingVerbose
void storeTracks(G4SimEvent *simEvent)
void BeginOfEvent(const G4Event *)
void EndOfEventAction(const G4Event *evt) override
SimTrackManager * m_trackManager
EventAction(const edm::ParameterSet &ps, SimRunInterface *, SimTrackManager *, CMSSteppingVerbose *)
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
void setCollapsePrimaryVertices(bool iSet)
SimActivityRegistry::BeginOfEventSignal m_beginOfEventSignal