#include <RunManagerMTWorker.h>
Classes | |
struct | TLSData |
Public Member Functions | |
void | abortEvent () |
void | abortRun (bool softAbort=false) |
void | beginRun (const edm::EventSetup &) |
void | Connect (RunAction *) |
void | Connect (EventAction *) |
void | Connect (TrackingAction *) |
void | Connect (SteppingAction *) |
void | Connect (Phase2SteppingAction *) |
void | endRun () |
SimTrackManager * | getSimTrackManager () |
int | getThreadIndex () const |
void | initializeG4 (RunManagerMT *runManagerMaster, const edm::EventSetup &es) |
TmpSimEvent * | 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 &&iC) | |
std::vector< SensitiveCaloDetector * > & | sensCaloDetectors () |
std::vector< SensitiveTkDetector * > & | sensTkDetectors () |
TmpSimEvent * | simEvent () |
~RunManagerMTWorker () | |
Private Member Functions | |
void | DumpMagneticField (const G4Field *, const std::string &) const |
G4Event * | generateEvent (const edm::Event &inpevt) |
void | initializeRun () |
void | initializeTLS () |
void | initializeUserActions () |
void | resetGenParticleId (const edm::Event &inpevt) |
void | terminateRun () |
Definition at line 51 of file RunManagerMTWorker.h.
|
explicit |
Definition at line 153 of file RunManagerMTWorker.cc.
RunManagerMTWorker::~RunManagerMTWorker | ( | ) |
void RunManagerMTWorker::abortEvent | ( | ) |
Definition at line 616 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentEvent, RunManagerMTWorker::TLSData::kernel, m_tls, TrackingAction::PostUserTrackingAction(), RunManagerMTWorker::TLSData::runTerminated, and submitPVValidationJobs::t.
Referenced by SimRunInterface::abortEvent(), and abortRun().
void RunManagerMTWorker::abortRun | ( | bool | softAbort = false | ) |
Definition at line 633 of file RunManagerMTWorker.cc.
References abortEvent(), RunManagerMTWorker::TLSData::currentRun, m_tls, and terminateRun().
Referenced by SimRunInterface::abortRun().
void RunManagerMTWorker::beginRun | ( | const edm::EventSetup & | es | ) |
Definition at line 227 of file RunManagerMTWorker.cc.
References edm::EventSetup::getData(), getThreadIndex(), EcalPhiSymFlatTableProducers_cfi::id, m_hasWatchers, m_MagField, m_pMagField, m_pUseMagneticField, m_sdMakers, m_tls, and RunManagerMTWorker::TLSData::watchers.
void RunManagerMTWorker::Connect | ( | RunAction * | runAction | ) |
Definition at line 472 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 477 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 482 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 487 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), SteppingAction::m_g4StepSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
void RunManagerMTWorker::Connect | ( | Phase2SteppingAction * | steppingAction | ) |
Definition at line 491 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), Phase2SteppingAction::m_g4StepSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
|
private |
Definition at line 679 of file RunManagerMTWorker.cc.
References funct::cos(), l1ctLayer1_cff::dr, PVValHelper::dz, geometryDiff::file, groupFilesInBlocks::fout, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, EgHLTOffHistBins_cfi::nr, MillePedeFileConverter_cfg::out, phi, point, alignCSCRings::r, funct::sin(), z, ppsFastLocalSimulation_cfi::z0, and SiStripMonitorCluster_cfi::zmax.
Referenced by initializeG4().
void RunManagerMTWorker::endRun | ( | ) |
Definition at line 244 of file RunManagerMTWorker.cc.
References getThreadIndex(), EcalPhiSymFlatTableProducers_cfi::id, and terminateRun().
|
private |
Definition at line 641 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_LHCToken, m_LHCTransport, m_nonBeam, m_tls, Generator::nonCentralEvent2G4(), resetGenParticleId(), and Generator::setGenEvent().
Referenced by produce().
SimTrackManager * RunManagerMTWorker::getSimTrackManager | ( | ) |
Definition at line 495 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::trackManager.
Referenced by SimRunInterface::SimRunInterface().
|
inline |
Definition at line 78 of file RunManagerMTWorker.h.
References m_thread_index.
Referenced by beginRun(), endRun(), initializeG4(), initializeRun(), initializeTLS(), produce(), and terminateRun().
void RunManagerMTWorker::initializeG4 | ( | RunManagerMT * | runManagerMaster, |
const edm::EventSetup & | es | ||
) |
Definition at line 274 of file RunManagerMTWorker.cc.
References applyOnce, applyOnceGDML, sim::attachSD(), sim::FieldBuilder::build(), RunManagerMT::catalog(), mps_check::command, DumpMagneticField(), Exception, f, g, RunManagerMT::G4Commands(), ecalTB2006H4_GenSimDigiReco_cfg::G4cout, edm::ParameterSet::getParameter(), getThreadIndex(), edm::ParameterSet::getUntrackedParameter(), DDDWorld::GetWorldVolume(), initializeTLS(), initializeUserActions(), RunManagerMT::isPhase2(), RunManagerMTWorker::TLSData::kernel, m_dumpGDML, m_dumpMF, m_evtManager, m_isPhase2, m_p, m_pField, m_pMagField, m_pUseMagneticField, m_sdMakers, m_simEvent, m_sVerbose, m_tls, m_UseG4EventManager, RunManagerMT::physicsListForWorker(), RunManagerMTWorker::TLSData::registry, RunManagerMTWorker::TLSData::sensCaloDets, RunManagerMTWorker::TLSData::sensTkDets, AlCaHLTBitMon_QueryRunRegistry::string, pfDeepBoostedJetPreprocessParams_cfi::sv, RunManagerMTWorker::TLSData::threadInitialized, RunManagerMTWorker::TLSData::trackManager, verbose, and RunManagerMT::world().
|
private |
Definition at line 512 of file RunManagerMTWorker.cc.
References RunManagerMTWorker::TLSData::currentRun, getThreadIndex(), EcalPhiSymFlatTableProducers_cfi::id, m_tls, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by produce().
|
private |
Definition at line 250 of file RunManagerMTWorker.cc.
References createWatchers(), Exception, getThreadIndex(), m_hasWatchers, m_p, m_tls, RunManagerMTWorker::TLSData::producers, RunManagerMTWorker::TLSData::registry, and RunManagerMTWorker::TLSData::watchers.
Referenced by getSimTrackManager(), initializeG4(), producers(), sensCaloDetectors(), and sensTkDetectors().
|
private |
Definition at line 419 of file RunManagerMTWorker.cc.
References Connect(), dd4hep_cff::dd4hep, g4SimHits_cfi::EventAction, edm::ParameterSet::getParameter(), RunManagerMTWorker::TLSData::kernel, m_evtManager, m_hasWatchers, m_isPhase2, m_p, m_pEventAction, m_pRunAction, m_pStackingAction, m_pSteppingAction, m_pTrackingAction, m_sVerbose, m_tls, m_UseG4EventManager, RunManagerMTWorker::TLSData::runInterface, CastorDigiValidation::StackingAction, CastorDigiValidation::SteppingAction, g4SimHits_cfi::TrackingAction, RunManagerMTWorker::TLSData::trackManager, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by initializeG4().
TmpSimEvent * RunManagerMTWorker::produce | ( | const edm::Event & | inpevt, |
const edm::EventSetup & | es, | ||
RunManagerMT & | runManagerMaster | ||
) |
Definition at line 552 of file RunManagerMTWorker.cc.
References cms::cuda::assert(), TmpSimEvent::clear(), TmpSimEvent::collisionPoint(), RunManagerMTWorker::TLSData::currentEvent, RunManagerMTWorker::TLSData::currentRunNumber, edm::EventID::event(), Generator::eventWeight(), Exception, generateEvent(), Generator::genEvent(), Generator::genVertex(), getThreadIndex(), edm::EventBase::id(), initializeRun(), RunManagerMTWorker::TLSData::kernel, m_evtManager, m_generator, m_simEvent, m_tls, m_UseG4EventManager, TmpSimEvent::nTracks(), edm::EventID::run(), RunManagerMTWorker::TLSData::runTerminated, edm::second(), RunManagerMTWorker::TLSData::sensCaloDets, TmpSimEvent::setHepEvent(), TmpSimEvent::setWeight(), edm::Event::streamID(), terminateRun(), RunManagerMTWorker::TLSData::threadInitialized, and TmpSimEvent::weight().
std::vector< std::shared_ptr< SimProducer > > & RunManagerMTWorker::producers | ( | ) |
Definition at line 507 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::producers.
|
private |
Definition at line 671 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 503 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::sensCaloDets.
std::vector< SensitiveTkDetector * > & RunManagerMTWorker::sensTkDetectors | ( | ) |
Definition at line 499 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::sensTkDets.
|
inline |
Definition at line 77 of file RunManagerMTWorker.h.
References m_simEvent.
Referenced by SimRunInterface::simEvent().
|
private |
Definition at line 522 of file RunManagerMTWorker.cc.
References applyOnceEnd, mps_check::command, RunManagerMTWorker::TLSData::currentEvent, RunManagerMTWorker::TLSData::currentRun, getThreadIndex(), EcalPhiSymFlatTableProducers_cfi::id, RunManagerMTWorker::TLSData::kernel, m_endOfRun, m_G4CommandsEndRun, m_tls, RunManagerMTWorker::TLSData::runTerminated, AlCaHLTBitMon_QueryRunRegistry::string, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by abortRun(), endRun(), and produce().
|
private |
Definition at line 104 of file RunManagerMTWorker.h.
Referenced by initializeG4().
|
private |
Definition at line 103 of file RunManagerMTWorker.h.
Referenced by initializeG4().
|
private |
Definition at line 105 of file RunManagerMTWorker.h.
Referenced by terminateRun().
|
private |
Definition at line 125 of file RunManagerMTWorker.h.
Referenced by initializeG4(), initializeUserActions(), and produce().
|
private |
Definition at line 116 of file RunManagerMTWorker.h.
|
private |
Definition at line 117 of file RunManagerMTWorker.h.
Referenced by terminateRun().
|
private |
Definition at line 91 of file RunManagerMTWorker.h.
Referenced by generateEvent(), and produce().
|
private |
Definition at line 101 of file RunManagerMTWorker.h.
Referenced by beginRun(), initializeTLS(), and initializeUserActions().
|
private |
Definition at line 92 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 106 of file RunManagerMTWorker.h.
Referenced by initializeG4(), and initializeUserActions().
|
private |
Definition at line 93 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 102 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 95 of file RunManagerMTWorker.h.
Referenced by beginRun().
|
private |
Definition at line 98 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 118 of file RunManagerMTWorker.h.
Referenced by initializeG4(), initializeTLS(), and initializeUserActions().
|
private |
Definition at line 112 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 110 of file RunManagerMTWorker.h.
Referenced by initializeG4().
|
private |
Definition at line 96 of file RunManagerMTWorker.h.
Referenced by beginRun(), and initializeG4().
|
private |
Definition at line 111 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 113 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 115 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 114 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 100 of file RunManagerMTWorker.h.
Referenced by beginRun(), and initializeG4().
|
private |
Definition at line 127 of file RunManagerMTWorker.h.
Referenced by beginRun(), and initializeG4().
|
private |
Definition at line 124 of file RunManagerMTWorker.h.
Referenced by initializeG4(), produce(), and simEvent().
|
private |
Definition at line 126 of file RunManagerMTWorker.h.
Referenced by initializeG4(), and initializeUserActions().
|
private |
Definition at line 94 of file RunManagerMTWorker.h.
Referenced by resetGenParticleId().
|
private |
Definition at line 108 of file RunManagerMTWorker.h.
Referenced by getThreadIndex().
|
private |
Definition at line 121 of file RunManagerMTWorker.h.
Referenced by abortEvent(), abortRun(), beginRun(), Connect(), generateEvent(), getSimTrackManager(), initializeG4(), initializeRun(), initializeTLS(), initializeUserActions(), produce(), producers(), resetGenParticleId(), sensCaloDetectors(), sensTkDetectors(), terminateRun(), and ~RunManagerMTWorker().
|
private |
Definition at line 123 of file RunManagerMTWorker.h.
Referenced by ~RunManagerMTWorker().
|
private |
Definition at line 99 of file RunManagerMTWorker.h.
Referenced by initializeG4(), initializeUserActions(), and produce().