#include <RunManagerMTWorker.h>
Classes | |
struct | TLSData |
Public Member Functions | |
void | abortEvent () |
void | abortRun (bool softAbort=false) |
void | beginRun (const RunManagerMT &runManagerMaster, const edm::EventSetup &es) |
void | Connect (RunAction *) |
void | Connect (EventAction *) |
void | Connect (TrackingAction *) |
void | Connect (SteppingAction *) |
void | endRun () |
SimTrackManager * | GetSimTrackManager () |
void | produce (const edm::Event &inpevt, const edm::EventSetup &es, const RunManagerMT &runManagerMaster) |
std::vector< std::shared_ptr < SimProducer > > | producers () |
RunManagerMTWorker (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&i) | |
std::vector < SensitiveCaloDetector * > & | sensCaloDetectors () |
std::vector < SensitiveTkDetector * > & | sensTkDetectors () |
G4SimEvent * | simEvent () |
~RunManagerMTWorker () | |
Private Member Functions | |
G4Event * | generateEvent (const edm::Event &inpevt) |
void | initializeRun () |
void | initializeThread (const RunManagerMT &runManagerMaster, const edm::EventSetup &es) |
void | initializeTLS () |
void | initializeUserActions () |
void | resetGenParticleId (const edm::Event &inpevt) |
void | terminateRun () |
Private Attributes | |
std::unique_ptr< G4Event > | m_currentEvent |
const int | m_EvtMgrVerbosity |
Generator | m_generator |
edm::EDGetTokenT < edm::HepMCProduct > | m_InToken |
const bool | m_nonBeam |
edm::ParameterSet | m_p |
edm::ParameterSet | m_pEventAction |
edm::ParameterSet | m_pField |
edm::ParameterSet | m_pRunAction |
edm::ParameterSet | m_pStackingAction |
edm::ParameterSet | m_pSteppingAction |
edm::ParameterSet | m_pTrackingAction |
const bool | m_pUseMagneticField |
std::unique_ptr< G4SimEvent > | m_simEvent |
edm::EDGetTokenT < edm::LHCTransportLinkContainer > | m_theLHCTlinkToken |
Static Private Attributes | |
static thread_local TLSData * | m_tls = nullptr |
Definition at line 38 of file RunManagerMTWorker.h.
RunManagerMTWorker::RunManagerMTWorker | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | i | ||
) |
Definition at line 122 of file RunManagerMTWorker.cc.
References initializeTLS().
RunManagerMTWorker::~RunManagerMTWorker | ( | ) |
Definition at line 140 of file RunManagerMTWorker.cc.
References m_tls, RunManagerMTWorker::TLSData::runTerminated, and terminateRun().
void RunManagerMTWorker::abortEvent | ( | ) |
Definition at line 414 of file RunManagerMTWorker.cc.
References m_currentEvent, m_tls, TrackingAction::PostUserTrackingAction(), RunManagerMTWorker::TLSData::runTerminated, and edmStreamStallGrapher::t.
Referenced by SimRunInterface::abortEvent(), and abortRun().
void RunManagerMTWorker::abortRun | ( | bool | softAbort = false | ) |
Definition at line 446 of file RunManagerMTWorker.cc.
References abortEvent(), RunManagerMTWorker::TLSData::currentRun, m_tls, and terminateRun().
Referenced by SimRunInterface::abortRun(), and produce().
void RunManagerMTWorker::beginRun | ( | const RunManagerMT & | runManagerMaster, |
const edm::EventSetup & | es | ||
) |
void RunManagerMTWorker::Connect | ( | RunAction * | runAction | ) |
Definition at line 287 of file RunManagerMTWorker.cc.
References SimActivityRegistry::beginOfRunSignal_, sim_act::Signaler< T >::connect(), SimActivityRegistry::endOfRunSignal_, RunAction::m_beginOfRunSignal, RunAction::m_endOfRunSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
Referenced by SimRunInterface::Connect(), and initializeUserActions().
void RunManagerMTWorker::Connect | ( | EventAction * | eventAction | ) |
Definition at line 293 of file RunManagerMTWorker.cc.
References SimActivityRegistry::beginOfEventSignal_, sim_act::Signaler< T >::connect(), SimActivityRegistry::endOfEventSignal_, EventAction::m_beginOfEventSignal, EventAction::m_endOfEventSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
void RunManagerMTWorker::Connect | ( | TrackingAction * | trackingAction | ) |
Definition at line 299 of file RunManagerMTWorker.cc.
References SimActivityRegistry::beginOfTrackSignal_, sim_act::Signaler< T >::connect(), SimActivityRegistry::endOfTrackSignal_, TrackingAction::m_beginOfTrackSignal, TrackingAction::m_endOfTrackSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
void RunManagerMTWorker::Connect | ( | SteppingAction * | steppingAction | ) |
Definition at line 305 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), SimActivityRegistry::g4StepSignal_, SteppingAction::m_g4StepSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
void RunManagerMTWorker::endRun | ( | void | ) |
|
private |
Definition at line 452 of file RunManagerMTWorker.cc.
References edm::EventID::event(), edm::Event::getByToken(), Generator::HepMC2G4(), edm::EventBase::id(), m_currentEvent, m_generator, m_InToken, m_nonBeam, m_simEvent, Generator::nonBeamEvent2G4(), resetGenParticleId(), and Generator::setGenEvent().
Referenced by produce().
SimTrackManager * RunManagerMTWorker::GetSimTrackManager | ( | ) |
Definition at line 310 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::trackManager.
Referenced by SimRunInterface::SimRunInterface().
|
private |
Definition at line 328 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentRun, m_tls, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by produce().
|
private |
Definition at line 166 of file RunManagerMTWorker.cc.
References SimActivityRegistry::beginOfJobSignal_, RunManagerMT::catalog(), edmPickEvents::command, AttachSD::create(), RunManagerMTWorker::TLSData::fieldBuilder, g, RunManagerMT::G4Commands(), edm::EventSetup::get(), DDDWorld::GetWorldVolumeForWorker(), initializeTLS(), initializeUserActions(), m_p, m_pField, m_pUseMagneticField, m_tls, RunManagerMT::physicsListForWorker(), edm::ESHandle< class >::product(), RunManagerMTWorker::TLSData::registry, RunManagerMTWorker::TLSData::sensCaloDets, RunManagerMTWorker::TLSData::sensTkDets, AlCaHLTBitMon_QueryRunRegistry::string, RunManagerMTWorker::TLSData::trackManager, RunManagerMTWorker::TLSData::UIsession, DDDWorld::WorkerSetAsWorld(), and RunManagerMT::world().
Referenced by produce().
|
private |
Definition at line 151 of file RunManagerMTWorker.cc.
References SimActivityRegistry::connect(), createWatchers(), m_p, m_tls, RunManagerMTWorker::TLSData::producers, RunManagerMTWorker::TLSData::registry, and RunManagerMTWorker::TLSData::watchers.
Referenced by GetSimTrackManager(), initializeThread(), producers(), RunManagerMTWorker(), sensCaloDetectors(), and sensTkDetectors().
|
private |
Definition at line 256 of file RunManagerMTWorker.cc.
References Connect(), m_EvtMgrVerbosity, m_pEventAction, m_pRunAction, m_pStackingAction, m_pSteppingAction, m_pTrackingAction, m_tls, RunManagerMTWorker::TLSData::runInterface, RunManagerMTWorker::TLSData::trackManager, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by initializeThread().
void RunManagerMTWorker::produce | ( | const edm::Event & | inpevt, |
const edm::EventSetup & | es, | ||
const RunManagerMT & | runManagerMaster | ||
) |
Definition at line 349 of file RunManagerMTWorker.cc.
References abortRun(), RunManagerMTWorker::TLSData::currentRunNumber, edm::EventID::event(), Generator::eventWeight(), generateEvent(), Generator::genEvent(), Generator::genVertex(), edm::EventBase::id(), initializeRun(), initializeThread(), LogDebug, m_currentEvent, m_generator, m_simEvent, m_tls, edm::EventID::run(), RunManagerMTWorker::TLSData::runInterface, RunManagerMTWorker::TLSData::runTerminated, edm::second(), contentValuesCheck::ss, edm::Event::streamID(), terminateRun(), and RunManagerMTWorker::TLSData::threadInitialized.
std::vector< std::shared_ptr< SimProducer > > RunManagerMTWorker::producers | ( | ) |
Definition at line 322 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::producers.
|
private |
Definition at line 480 of file RunManagerMTWorker.cc.
References edm::Event::getByToken(), edm::HandleBase::isValid(), m_theLHCTlinkToken, m_tls, edm::Handle< T >::product(), and RunManagerMTWorker::TLSData::trackManager.
Referenced by generateEvent().
std::vector< SensitiveCaloDetector * > & RunManagerMTWorker::sensCaloDetectors | ( | ) |
Definition at line 318 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::sensCaloDets.
std::vector< SensitiveTkDetector * > & RunManagerMTWorker::sensTkDetectors | ( | ) |
Definition at line 314 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::sensTkDets.
|
inline |
Definition at line 51 of file RunManagerMTWorker.h.
References m_simEvent.
Referenced by SimRunInterface::simEvent().
|
private |
Definition at line 334 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentRun, m_currentEvent, m_simEvent, m_tls, RunManagerMTWorker::TLSData::runTerminated, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by abortRun(), endRun(), produce(), and ~RunManagerMTWorker().
|
private |
Definition at line 90 of file RunManagerMTWorker.h.
Referenced by abortEvent(), generateEvent(), produce(), and terminateRun().
|
private |
Definition at line 78 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 73 of file RunManagerMTWorker.h.
Referenced by generateEvent(), and produce().
|
private |
Definition at line 74 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 76 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 85 of file RunManagerMTWorker.h.
Referenced by initializeThread(), and initializeTLS().
|
private |
Definition at line 81 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 79 of file RunManagerMTWorker.h.
Referenced by initializeThread().
|
private |
Definition at line 80 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 82 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 84 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 83 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 77 of file RunManagerMTWorker.h.
Referenced by initializeThread().
|
private |
Definition at line 91 of file RunManagerMTWorker.h.
Referenced by generateEvent(), produce(), simEvent(), and terminateRun().
|
private |
Definition at line 75 of file RunManagerMTWorker.h.
Referenced by resetGenParticleId().
|
staticprivate |
Definition at line 87 of file RunManagerMTWorker.h.
Referenced by abortEvent(), abortRun(), Connect(), GetSimTrackManager(), initializeRun(), initializeThread(), initializeTLS(), initializeUserActions(), produce(), producers(), resetGenParticleId(), sensCaloDetectors(), sensTkDetectors(), terminateRun(), and ~RunManagerMTWorker().