#include <RunManager.h>
Public Member Functions | |
void | abortEvent () |
void | abortRun (bool softAbort=false) |
const G4Event * | currentEvent () const |
const G4Run * | currentRun () const |
const Generator * | generator () const |
void | initG4 (const edm::EventSetup &es) |
void | initializeRun () |
void | initializeUserActions () |
void | produce (edm::Event &inpevt, const edm::EventSetup &es) |
std::vector< boost::shared_ptr < SimProducer > > | producers () const |
RunManager (edm::ParameterSet const &p) | |
std::vector < SensitiveCaloDetector * > & | sensCaloDetectors () |
std::vector < SensitiveTkDetector * > & | sensTkDetectors () |
G4SimEvent * | simEvent () |
void | terminateRun () |
virtual | ~RunManager () |
Protected Member Functions | |
G4Event * | generateEvent (edm::Event &inpevt) |
void | resetGenParticleId (edm::Event &inpevt) |
Definition at line 52 of file RunManager.h.
RunManager::RunManager | ( | edm::ParameterSet const & | p | ) |
Definition at line 116 of file RunManager.cc.
References SimActivityRegistry::connect(), createWatchers(), edm::ParameterSet::getUntrackedParameter(), m_check, m_CustomExceptionHandler, m_kernel, m_p, m_producers, m_registry, and m_watchers.
|
virtual |
void RunManager::abortEvent | ( | ) |
Definition at line 361 of file RunManager.cc.
References m_currentEvent, m_kernel, TrackingAction::PostUserTrackingAction(), hitfit::return, and lumiQTWidget::t.
Referenced by abortRun(), and OscarProducer::produce().
void RunManager::abortRun | ( | bool | softAbort = false | ) |
Definition at line 470 of file RunManager.cc.
References abortEvent(), m_currentRun, m_runAborted, and m_runInitialized.
Referenced by EventAction::BeginOfEventAction(), RunAction::BeginOfRunAction(), EventAction::EndOfEventAction(), RunAction::EndOfRunAction(), ExceptionHandler::Notify(), and produce().
|
inline |
|
inline |
|
protected |
Definition at line 317 of file RunManager.cc.
References alignCSCRings::e, edm::EventID::event(), edm::Event::getByLabel(), Generator::HepMC2G4(), edm::EventBase::id(), m_currentEvent, m_generator, m_InTag, m_nonBeam, m_simEvent, Generator::nonBeamEvent2G4(), resetGenParticleId(), and Generator::setGenEvent().
Referenced by produce().
|
inline |
void RunManager::initG4 | ( | const edm::EventSetup & | es | ) |
Definition at line 167 of file RunManager.cc.
References SimActivityRegistry::beginOfJobSignal_, sim::FieldBuilder::build(), edm::ESWatcher< T >::check(), asciidump::cmd, AttachSD::create(), SurfaceDeformationFactory::create(), SimActivityRegistry::dddWorldSignal_, dir, edm::hlt::Exception, firstRun, g, edm::EventSetup::get(), reco::get(), edm::ParameterSet::getParameter(), idealGeomRcdWatcher_, idealMagRcdWatcher_, recoMuon::in, initializeRun(), initializeUserActions(), m_attach, m_check, m_fieldBuilder, m_G4Commands, m_generator, m_InTag, m_kernel, m_managerInitialized, m_p, m_pField, m_pGenerator, m_physicsList, m_PhysicsTablesDir, m_pPhysics, m_primaryTransformer, m_pUseMagneticField, m_registry, m_RestorePhysicsTables, m_sensCaloDets, m_sensTkDets, m_StorePhysicsTables, and m_trackManager.
Referenced by OscarProducer::beginRun().
void RunManager::initializeRun | ( | ) |
Definition at line 437 of file RunManager.cc.
References m_currentRun, m_runAborted, m_runInitialized, m_userRunAction, and hitfit::return.
Referenced by initG4().
void RunManager::initializeUserActions | ( | ) |
Definition at line 397 of file RunManager.cc.
References SimActivityRegistry::beginOfEventSignal_, SimActivityRegistry::beginOfRunSignal_, SimActivityRegistry::beginOfTrackSignal_, sim_act::Signaler< T >::connect(), SimActivityRegistry::endOfEventSignal_, SimActivityRegistry::endOfRunSignal_, SimActivityRegistry::endOfTrackSignal_, SimActivityRegistry::g4StepSignal_, EventAction::m_beginOfEventSignal, RunAction::m_beginOfRunSignal, TrackingAction::m_beginOfTrackSignal, EventAction::m_endOfEventSignal, RunAction::m_endOfRunSignal, TrackingAction::m_endOfTrackSignal, m_EvtMgrVerbosity, SteppingAction::m_g4StepSignal, m_generator, m_kernel, m_Override, m_pEventAction, m_pRunAction, m_pStackingAction, m_pSteppingAction, m_pTrackingAction, m_registry, m_trackManager, and m_userRunAction.
Referenced by initG4().
void RunManager::produce | ( | edm::Event & | inpevt, |
const edm::EventSetup & | es | ||
) |
Definition at line 285 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(), and G4SimEvent::weight().
Referenced by OscarProducer::produce().
|
inline |
Definition at line 73 of file RunManager.h.
References m_producers.
|
protected |
Definition at line 483 of file RunManager.cc.
References edm::Event::getByType(), edm::HandleBase::isValid(), m_trackManager, and edm::Handle< T >::product().
Referenced by generateEvent().
|
inline |
Definition at line 71 of file RunManager.h.
References m_sensCaloDets.
Referenced by OscarProducer::produce().
|
inline |
Definition at line 70 of file RunManager.h.
References m_sensTkDets.
Referenced by OscarProducer::produce().
|
inline |
Definition at line 69 of file RunManager.h.
References m_simEvent.
Referenced by EventAction::EndOfEventAction(), and OscarProducer::produce().
void RunManager::terminateRun | ( | ) |
Definition at line 452 of file RunManager.cc.
References m_currentRun, m_kernel, m_runInitialized, m_runTerminated, and m_userRunAction.
|
private |
Definition at line 100 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 137 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 138 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 126 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 111 of file RunManager.h.
Referenced by initG4(), and RunManager().
|
private |
Definition at line 103 of file RunManager.h.
Referenced by abortEvent(), currentEvent(), generateEvent(), and produce().
|
private |
Definition at line 102 of file RunManager.h.
Referenced by abortRun(), currentRun(), initializeRun(), and terminateRun().
|
private |
Definition at line 124 of file RunManager.h.
Referenced by RunManager().
|
private |
Definition at line 109 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 135 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 122 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 87 of file RunManager.h.
Referenced by generateEvent(), generator(), initG4(), initializeUserActions(), and produce().
|
private |
Definition at line 89 of file RunManager.h.
Referenced by generateEvent(), and initG4().
|
private |
Definition at line 85 of file RunManager.h.
Referenced by abortEvent(), initG4(), initializeUserActions(), produce(), RunManager(), terminateRun(), and ~RunManager().
|
private |
Definition at line 94 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 91 of file RunManager.h.
Referenced by generateEvent().
|
private |
Definition at line 110 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 123 of file RunManager.h.
Referenced by initG4(), and RunManager().
|
private |
Definition at line 118 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 113 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 114 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 112 of file RunManager.h.
|
private |
Definition at line 92 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 106 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 116 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 93 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 132 of file RunManager.h.
Referenced by producers(), and RunManager().
|
private |
Definition at line 117 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 119 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 121 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 120 of file RunManager.h.
Referenced by initializeUserActions().
|
private |
Definition at line 101 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 115 of file RunManager.h.
|
private |
Definition at line 130 of file RunManager.h.
Referenced by initG4(), initializeUserActions(), and RunManager().
|
private |
Definition at line 108 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 99 of file RunManager.h.
Referenced by abortRun(), and initializeRun().
|
private |
Definition at line 97 of file RunManager.h.
Referenced by abortRun(), initializeRun(), and terminateRun().
|
private |
Definition at line 98 of file RunManager.h.
Referenced by terminateRun().
|
private |
Definition at line 128 of file RunManager.h.
Referenced by initG4(), and sensCaloDetectors().
|
private |
Definition at line 127 of file RunManager.h.
Referenced by initG4(), and sensTkDetectors().
|
private |
Definition at line 104 of file RunManager.h.
Referenced by generateEvent(), produce(), and simEvent().
|
private |
Definition at line 107 of file RunManager.h.
Referenced by initG4().
|
private |
Definition at line 134 of file RunManager.h.
Referenced by initG4(), initializeUserActions(), and resetGenParticleId().
|
private |
Definition at line 105 of file RunManager.h.
Referenced by initializeRun(), initializeUserActions(), and terminateRun().
|
private |
Definition at line 131 of file RunManager.h.
Referenced by RunManager().