Go to the documentation of this file.
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)) {
37 <<
"BeginOfEvent " << anEvent->GetEventID() <<
" Random number: " << G4UniformRand();
48 <<
" EndOfEvent " << anEvent->GetEventID() <<
" Random number: " << G4UniformRand();
52 <<
"EndOfEventAction: termination signal received at event " << anEvent->GetEventID();
56 if (anEvent->GetNumberOfPrimaryVertex() == 0) {
57 edm::LogWarning(
"SimG4CoreApplication") <<
"EndOfEventAction: event " << anEvent->GetEventID()
58 <<
" must have failed (no G4PrimaryVertices found) and will be skipped ";
void storeTracks(G4SimEvent *simEvent)
SimActivityRegistry::BeginOfEventSignal m_beginOfEventSignal
SimActivityRegistry::EndOfEventSignal m_endOfEventSignal
void abortRun(bool softAbort)
void BeginOfEventAction(const G4Event *evt) override
SimRunInterface * m_runInterface
void setCollapsePrimaryVertices(bool iSet)
Log< level::Warning, false > LogWarning
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
void cleanTkCaloStateInfoMap()
CMSSteppingVerbose * m_SteppingVerbose
void EndOfEventAction(const G4Event *evt) override
SimTrackManager * m_trackManager
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
Log< level::Info, true > LogVerbatim
void BeginOfEvent(const G4Event *)
EventAction(const edm::ParameterSet &ps, SimRunInterface *, SimTrackManager *, CMSSteppingVerbose *)