#include <RunManager.h>
Public Member Functions | |
void | abortEvent () |
void | abortRun (bool softAbort=false) |
void | Connect (RunAction *) |
void | Connect (EventAction *) |
void | Connect (TrackingAction *) |
void | Connect (SteppingAction *) |
const G4Event * | currentEvent () const |
const G4Run * | currentRun () const |
const Generator * | generator () const |
SimTrackManager * | GetSimTrackManager () |
void | initG4 (const edm::EventSetup &es) |
void | initializeRun () |
void | initializeUserActions () |
void | produce (edm::Event &inpevt, const edm::EventSetup &es) |
std::vector< std::shared_ptr< SimProducer > > | producers () const |
RunManager (edm::ParameterSet const &p, edm::ConsumesCollector &&i) | |
std::vector< SensitiveCaloDetector * > & | sensCaloDetectors () |
std::vector< SensitiveTkDetector * > & | sensTkDetectors () |
G4SimEvent * | simEvent () |
void | stopG4 () |
void | terminateRun () |
~RunManager () | |
Protected Member Functions | |
void | DumpMagneticField (const G4Field *) const |
G4Event * | generateEvent (edm::Event &inpevt) |
void | resetGenParticleId (edm::Event &inpevt) |
Definition at line 54 of file RunManager.h.
RunManager::RunManager | ( | edm::ParameterSet const & | p, |
edm::ConsumesCollector && | i | ||
) |
Definition at line 114 of file RunManager.cc.
References SimActivityRegistry::connect(), createWatchers(), g4SimHits_cfi::CustomUIsession, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_check, m_FieldFile, m_hasWatchers, m_kernel, m_p, m_physicsList, m_producers, m_RegionFile, m_registry, m_runInterface, m_sVerbose, m_UIsession, m_userRunAction, m_watchers, m_WriteFile, and AlCaHLTBitMon_QueryRunRegistry::string.
RunManager::~RunManager | ( | ) |
Definition at line 176 of file RunManager.cc.
References m_generator, m_runInterface, m_runTerminated, and terminateRun().
void RunManager::abortEvent | ( | ) |
Definition at line 454 of file RunManager.cc.
References m_currentEvent, m_kernel, m_runTerminated, TrackingAction::PostUserTrackingAction(), and OrderedSet::t.
Referenced by SimRunInterface::abortEvent(), and abortRun().
void RunManager::abortRun | ( | bool | softAbort = false | ) |
Definition at line 540 of file RunManager.cc.
References abortEvent(), m_currentRun, m_runAborted, and terminateRun().
Referenced by SimRunInterface::abortRun(), and produce().
void RunManager::Connect | ( | RunAction * | runAction | ) |
Definition at line 565 of file RunManager.cc.
References SimActivityRegistry::beginOfRunSignal_, sim_act::Signaler< T >::connect(), SimActivityRegistry::endOfRunSignal_, RunAction::m_beginOfRunSignal, RunAction::m_endOfRunSignal, and m_registry.
Referenced by SimRunInterface::Connect(), and initializeUserActions().
void RunManager::Connect | ( | EventAction * | eventAction | ) |
Definition at line 570 of file RunManager.cc.
References SimActivityRegistry::beginOfEventSignal_, sim_act::Signaler< T >::connect(), SimActivityRegistry::endOfEventSignal_, EventAction::m_beginOfEventSignal, EventAction::m_endOfEventSignal, and m_registry.
void RunManager::Connect | ( | TrackingAction * | trackingAction | ) |
Definition at line 575 of file RunManager.cc.
References SimActivityRegistry::beginOfTrackSignal_, sim_act::Signaler< T >::connect(), SimActivityRegistry::endOfTrackSignal_, TrackingAction::m_beginOfTrackSignal, TrackingAction::m_endOfTrackSignal, and m_registry.
void RunManager::Connect | ( | SteppingAction * | steppingAction | ) |
Definition at line 580 of file RunManager.cc.
References sim_act::Signaler< T >::connect(), SimActivityRegistry::g4StepSignal_, SteppingAction::m_g4StepSignal, and m_registry.
|
inline |
Definition at line 70 of file RunManager.h.
|
inline |
Definition at line 66 of file RunManager.h.
|
protected |
Definition at line 584 of file RunManager.cc.
References funct::cos(), flavorHistoryFilter_cfi::dr, PVValHelper::dz, groupFilesInBlocks::fout, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, m_FieldFile, EgHLTOffHistBins_cfi::nr, MillePedeFileConverter_cfg::out, phi, point, alignCSCRings::r, funct::sin(), z, HLTMuonOfflineAnalyzer_cfi::z0, and SiStripMonitorCluster_cfi::zmax.
Referenced by initG4().
|
protected |
Definition at line 420 of file RunManager.cc.
References edm::EventID::event(), runTauDisplay::evtid, edm::Event::getByToken(), edm::HepMCProduct::GetEvent(), Generator::HepMC2G4(), edm::EventBase::id(), m_currentEvent, m_generator, m_HepMC, m_nonBeam, m_simEvent, Generator::nonBeamEvent2G4(), resetGenParticleId(), and Generator::setGenEvent().
Referenced by produce().
|
inline |
Definition at line 69 of file RunManager.h.
SimTrackManager * RunManager::GetSimTrackManager | ( | ) |
Definition at line 563 of file RunManager.cc.
References m_trackManager.
Referenced by SimRunInterface::SimRunInterface().
void RunManager::initG4 | ( | const edm::EventSetup & | es | ) |
Definition at line 187 of file RunManager.cc.
References SimActivityRegistry::beginOfJobSignal_, getEcalConditions_orcoffint2r_cff::catalog, edm::ESWatcher< T >::check(), RPCNoise_example::check, mps_setup::cmd, edm::errors::Configuration, AttachSD::create(), beamerCreator::create(), L1TMuonDQMOffline_cfi::cuts, SimActivityRegistry::dddWorldSignal_, DeadROC_duringRun::dir, DumpMagneticField(), Exception, firstRun, g, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, edm::EventSetup::get(), timingPdfMaker::get, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), DDDWorld::GetWorldVolume(), GeV, idealGeomRcdWatcher_, idealMagRcdWatcher_, recoMuon::in, initializeRun(), initializeUserActions(), edm::errors::LogicError, m_check, m_FieldFile, m_G4Commands, m_g4overlap, m_kernel, m_managerInitialized, m_p, m_pField, m_physicsList, m_PhysicsTablesDir, m_pPhysics, m_primaryTransformer, m_pUseMagneticField, m_registry, m_RestorePhysicsTables, m_sensCaloDets, m_sensTkDets, m_StorePhysicsTables, m_sVerbose, m_trackManager, m_UIsession, m_UseParametrisedEMPhysics, m_WriteFile, SiStripPI::max, groupFilesInBlocks::nn, edm::ESTransientHandle< T >::product(), edm::ESHandle< T >::product(), FSQDQM_cfi::pvs, AlCaHLTBitMon_QueryRunRegistry::string, and pfDeepBoostedJetPreprocessParams_cfi::sv.
void RunManager::initializeRun | ( | ) |
Definition at line 507 of file RunManager.cc.
References RunAction::BeginOfRunAction(), m_currentRun, m_runAborted, m_runInitialized, and m_userRunAction.
Referenced by initG4().
void RunManager::initializeUserActions | ( | ) |
Definition at line 474 of file RunManager.cc.
References Connect(), g4SimHits_cfi::EventAction, m_EvtMgrVerbosity, m_generator, m_hasWatchers, m_kernel, m_pEventAction, m_pRunAction, m_pStackingAction, m_pSteppingAction, m_pTrackingAction, m_runInterface, m_sVerbose, m_trackManager, m_userRunAction, g4SimHits_cfi::RunAction, CastorDigiValidation::StackingAction, CastorDigiValidation::SteppingAction, and g4SimHits_cfi::TrackingAction.
Referenced by initG4().
void RunManager::produce | ( | edm::Event & | inpevt, |
const edm::EventSetup & | es | ||
) |
Definition at line 391 of file RunManager.cc.
References abortRun(), G4SimEvent::collisionPoint(), edm::EventID::event(), Generator::eventWeight(), generateEvent(), Generator::genEvent(), Generator::genVertex(), G4SimEvent::hepEvent(), edm::EventBase::id(), m_currentEvent, m_generator, m_kernel, m_simEvent, G4SimEvent::nGenParts(), G4SimEvent::nTracks(), G4SimEvent::nVertices(), edm::second(), contentValuesCheck::ss, and G4SimEvent::weight().
|
inline |
Definition at line 74 of file RunManager.h.
|
protected |
Definition at line 555 of file RunManager.cc.
References edm::Event::getByToken(), edm::HandleBase::isValid(), m_LHCtr, m_trackManager, and edm::Handle< T >::product().
Referenced by generateEvent().
|
inline |
Definition at line 73 of file RunManager.h.
|
inline |
Definition at line 72 of file RunManager.h.
|
inline |
void RunManager::stopG4 | ( | ) |
void RunManager::terminateRun | ( | ) |
Definition at line 520 of file RunManager.cc.
References RunAction::EndOfRunAction(), m_currentEvent, m_currentRun, m_kernel, m_runInitialized, m_runTerminated, m_simEvent, and m_userRunAction.
Referenced by abortRun(), stopG4(), and ~RunManager().
|
private |
Definition at line 104 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 142 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 143 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 119 of file RunManager.h.
Referenced by initG4(), and RunManager().
|
private |
Definition at line 109 of file RunManager.h.
Referenced by abortEvent(), generateEvent(), produce(), and terminateRun().
|
private |
Definition at line 108 of file RunManager.h.
Referenced by abortRun(), initializeRun(), and terminateRun().
|
private |
Definition at line 118 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 145 of file RunManager.h.
Referenced by DumpMagneticField(), initG4(), and RunManager().
|
private |
Definition at line 129 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 128 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 90 of file RunManager.h.
Referenced by generateEvent(), initializeUserActions(), produce(), and ~RunManager().
|
private |
Definition at line 106 of file RunManager.h.
Referenced by initializeUserActions(), and RunManager().
|
private |
Definition at line 92 of file RunManager.h.
Referenced by generateEvent().
|
private |
Definition at line 88 of file RunManager.h.
Referenced by abortEvent(), initG4(), initializeUserActions(), produce(), RunManager(), and terminateRun().
|
private |
Definition at line 93 of file RunManager.h.
Referenced by resetGenParticleId().
|
private |
Definition at line 100 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 95 of file RunManager.h.
Referenced by generateEvent().
|
private |
Definition at line 130 of file RunManager.h.
Referenced by initG4(), and RunManager().
|
private |
Definition at line 124 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 120 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 121 of file RunManager.h.
|
private |
Definition at line 97 of file RunManager.h.
Referenced by initG4(), and RunManager().
|
private |
Definition at line 114 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 122 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 98 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 138 of file RunManager.h.
Referenced by RunManager().
|
private |
Definition at line 123 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 125 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 127 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 126 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 105 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 147 of file RunManager.h.
Referenced by RunManager().
|
private |
Definition at line 136 of file RunManager.h.
Referenced by Connect(), initG4(), and RunManager().
|
private |
Definition at line 116 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 103 of file RunManager.h.
Referenced by abortRun(), and initializeRun().
|
private |
Definition at line 101 of file RunManager.h.
Referenced by initializeRun(), and terminateRun().
|
private |
Definition at line 112 of file RunManager.h.
Referenced by initializeUserActions(), RunManager(), and ~RunManager().
|
private |
Definition at line 102 of file RunManager.h.
Referenced by abortEvent(), stopG4(), terminateRun(), and ~RunManager().
|
private |
Definition at line 133 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 132 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 110 of file RunManager.h.
Referenced by generateEvent(), produce(), and terminateRun().
|
private |
Definition at line 115 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 135 of file RunManager.h.
Referenced by initG4(), initializeUserActions(), and RunManager().
|
private |
Definition at line 140 of file RunManager.h.
Referenced by GetSimTrackManager(), initG4(), initializeUserActions(), and resetGenParticleId().
|
private |
Definition at line 96 of file RunManager.h.
Referenced by initG4(), and RunManager().
|
private |
Definition at line 117 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 111 of file RunManager.h.
Referenced by initializeRun(), initializeUserActions(), RunManager(), and terminateRun().
|
private |
Definition at line 137 of file RunManager.h.
Referenced by RunManager().
|
private |
Definition at line 146 of file RunManager.h.
Referenced by initG4(), and RunManager().