#include <RunManagerMTWorker.h>
Classes | |
struct | TLSData |
Public Member Functions | |
void | abortEvent () |
void | abortRun (bool softAbort=false) |
void | Connect (RunAction *) |
void | Connect (EventAction *) |
void | Connect (TrackingAction *) |
void | Connect (SteppingAction *) |
void | endRun () |
SimTrackManager * | GetSimTrackManager () |
std::unique_ptr< G4SimEvent > | produce (const edm::Event &inpevt, const edm::EventSetup &es, 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 (RunManagerMT &runManagerMaster, const edm::EventSetup &es) |
void | initializeTLS () |
void | initializeUserActions () |
void | resetGenParticleId (const edm::Event &inpevt) |
void | terminateRun () |
Static Private Member Functions | |
static void | resetTLS () |
Static Private Attributes | |
static thread_local TLSData * | m_tls { 0 } |
Definition at line 40 of file RunManagerMTWorker.h.
|
explicit |
Definition at line 150 of file RunManagerMTWorker.cc.
References edm::ParameterSet::getParameter(), initializeTLS(), and m_hasWatchers.
RunManagerMTWorker::~RunManagerMTWorker | ( | ) |
Definition at line 174 of file RunManagerMTWorker.cc.
References m_tls, resetTLS(), RunManagerMTWorker::TLSData::runTerminated, alignCSCRings::s, and terminateRun().
void RunManagerMTWorker::abortEvent | ( | ) |
Definition at line 545 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentEvent, RunManagerMTWorker::TLSData::kernel, m_tls, TrackingAction::PostUserTrackingAction(), RunManagerMTWorker::TLSData::runTerminated, and protons_cff::t.
Referenced by SimRunInterface::abortEvent(), and abortRun().
void RunManagerMTWorker::abortRun | ( | bool | softAbort = false | ) |
Definition at line 561 of file RunManagerMTWorker.cc.
References abortEvent(), RunManagerMTWorker::TLSData::currentRun, m_tls, and terminateRun().
Referenced by SimRunInterface::abortRun().
void RunManagerMTWorker::Connect | ( | RunAction * | runAction | ) |
Definition at line 397 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), 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 403 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), EventAction::m_beginOfEventSignal, EventAction::m_endOfEventSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
void RunManagerMTWorker::Connect | ( | TrackingAction * | trackingAction | ) |
Definition at line 409 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), TrackingAction::m_beginOfTrackSignal, TrackingAction::m_endOfTrackSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
void RunManagerMTWorker::Connect | ( | SteppingAction * | steppingAction | ) |
Definition at line 415 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), SteppingAction::m_g4StepSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
void RunManagerMTWorker::endRun | ( | ) |
|
private |
Definition at line 567 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentEvent, edm::EventID::event(), runTauDisplay::evtid, edm::Event::getByToken(), edm::HepMCProduct::GetEvent(), Generator::HepMC2G4(), edm::EventBase::id(), m_generator, m_InToken, m_nonBeam, m_simEvent, m_tls, Generator::nonBeamEvent2G4(), resetGenParticleId(), and Generator::setGenEvent().
Referenced by produce().
SimTrackManager * RunManagerMTWorker::GetSimTrackManager | ( | ) |
Definition at line 420 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::trackManager.
Referenced by SimRunInterface::SimRunInterface().
|
private |
Definition at line 437 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentRun, m_tls, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by produce().
|
private |
Definition at line 240 of file RunManagerMTWorker.cc.
References RunManagerMT::catalog(), mps_check::command, edm::errors::Configuration, AttachSD::create(), g4SimHits_cfi::CustomUIsession, Exception, g, RunManagerMT::G4Commands(), ecalTB2006H4_GenSimDigiReco_cfg::G4cout, edm::EventSetup::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), DDDWorld::GetWorldVolumeForWorker(), GeV, initializeTLS(), initializeUserActions(), RunManagerMTWorker::TLSData::kernel, m_p, m_pCustomUIsession, m_pField, m_pUseMagneticField, m_sVerbose, m_tls, RunManagerMT::physicsListForWorker(), edm::ESHandle< T >::product(), RunManagerMTWorker::TLSData::registry, RunManagerMTWorker::TLSData::sensCaloDets, RunManagerMTWorker::TLSData::sensTkDets, AlCaHLTBitMon_QueryRunRegistry::string, pfDeepBoostedJetPreprocessParams_cfi::sv, RunManagerMTWorker::TLSData::trackManager, RunManagerMTWorker::TLSData::UIsession, DDDWorld::WorkerSetAsWorld(), and RunManagerMT::world().
Referenced by produce().
|
private |
Definition at line 219 of file RunManagerMTWorker.cc.
References edm::errors::Configuration, createWatchers(), Exception, m_hasWatchers, 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 366 of file RunManagerMTWorker.cc.
References Connect(), g4SimHits_cfi::EventAction, RunManagerMTWorker::TLSData::kernel, m_EvtMgrVerbosity, m_hasWatchers, m_pEventAction, m_pRunAction, m_pStackingAction, m_pSteppingAction, m_pTrackingAction, m_sVerbose, m_tls, g4SimHits_cfi::RunAction, RunManagerMTWorker::TLSData::runInterface, CastorDigiValidation::StackingAction, CastorDigiValidation::SteppingAction, g4SimHits_cfi::TrackingAction, RunManagerMTWorker::TLSData::trackManager, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by initializeThread().
std::unique_ptr< G4SimEvent > RunManagerMTWorker::produce | ( | const edm::Event & | inpevt, |
const edm::EventSetup & | es, | ||
RunManagerMT & | runManagerMaster | ||
) |
Definition at line 460 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentEvent, RunManagerMTWorker::TLSData::currentRunNumber, edm::EventID::event(), Generator::eventWeight(), generateEvent(), Generator::genEvent(), Generator::genVertex(), G4SimEvent::hepEvent(), edm::EventBase::id(), initializeRun(), initializeThread(), RunManagerMTWorker::TLSData::kernel, LogDebug, m_generator, m_simEvent, m_tls, nullptr, edm::EventID::run(), RunManagerMTWorker::TLSData::runInterface, RunManagerMTWorker::TLSData::runTerminated, sd, edm::second(), RunManagerMTWorker::TLSData::sensCaloDets, simEvent(), edm::Event::streamID(), terminateRun(), and RunManagerMTWorker::TLSData::threadInitialized.
std::vector< std::shared_ptr< SimProducer > > RunManagerMTWorker::producers | ( | ) |
Definition at line 432 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::producers.
|
private |
Definition at line 598 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().
|
staticprivate |
Definition at line 189 of file RunManagerMTWorker.cc.
References KineDebug3::count(), m_tls, edm::make_functor_task(), alignCSCRings::s, and TrackValidation_cff::task.
Referenced by ~RunManagerMTWorker().
std::vector< SensitiveCaloDetector * > & RunManagerMTWorker::sensCaloDetectors | ( | ) |
Definition at line 428 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::sensCaloDets.
std::vector< SensitiveTkDetector * > & RunManagerMTWorker::sensTkDetectors | ( | ) |
Definition at line 424 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::sensTkDets.
|
inline |
Definition at line 53 of file RunManagerMTWorker.h.
References particleFlowRecHitECAL_cfi::producers.
Referenced by produce(), and SimRunInterface::simEvent().
|
private |
Definition at line 443 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentEvent, RunManagerMTWorker::TLSData::currentRun, RunManagerMTWorker::TLSData::kernel, m_simEvent, m_tls, RunManagerMTWorker::TLSData::runTerminated, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by abortRun(), endRun(), RunManagerMT::physicsListForWorker(), produce(), and ~RunManagerMTWorker().
|
private |
Definition at line 84 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 77 of file RunManagerMTWorker.h.
Referenced by generateEvent(), and produce().
|
private |
Definition at line 83 of file RunManagerMTWorker.h.
Referenced by initializeTLS(), initializeUserActions(), and RunManagerMTWorker().
|
private |
Definition at line 78 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 81 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 93 of file RunManagerMTWorker.h.
Referenced by initializeThread(), and initializeTLS().
|
private |
Definition at line 92 of file RunManagerMTWorker.h.
Referenced by initializeThread().
|
private |
Definition at line 88 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 86 of file RunManagerMTWorker.h.
Referenced by initializeThread().
|
private |
Definition at line 87 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 89 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 91 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 90 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 82 of file RunManagerMTWorker.h.
Referenced by initializeThread().
|
private |
Definition at line 99 of file RunManagerMTWorker.h.
Referenced by generateEvent(), produce(), and terminateRun().
|
private |
Definition at line 100 of file RunManagerMTWorker.h.
Referenced by initializeThread(), and initializeUserActions().
|
private |
Definition at line 79 of file RunManagerMTWorker.h.
Referenced by resetGenParticleId().
|
staticprivate |
Definition at line 95 of file RunManagerMTWorker.h.
Referenced by abortEvent(), abortRun(), Connect(), generateEvent(), GetSimTrackManager(), initializeRun(), initializeThread(), initializeTLS(), initializeUserActions(), produce(), producers(), resetGenParticleId(), resetTLS(), sensCaloDetectors(), sensTkDetectors(), terminateRun(), ~RunManagerMTWorker(), and RunManagerMTWorker::TLSData::~TLSData().