#include <RunManagerMTWorker.h>
Classes | |
struct | TLSData |
Public Member Functions | |
void | abortEvent () |
void | abortRun (bool softAbort=false) |
void | beginRun (const edm::EventSetup &) |
void | Connect (EventAction *) |
void | Connect (RunAction *) |
void | Connect (SteppingAction *) |
void | Connect (TrackingAction *) |
void | endRun () |
SimTrackManager * | GetSimTrackManager () |
void | initializeG4 (RunManagerMT *runManagerMaster, const edm::EventSetup &es) |
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 &&iC) | |
std::vector< SensitiveCaloDetector * > & | sensCaloDetectors () |
std::vector< SensitiveTkDetector * > & | sensTkDetectors () |
G4SimEvent * | 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 () |
Static Private Member Functions | |
static void | resetTLS () |
Private Attributes | |
int | m_EvtMgrVerbosity |
Generator | m_generator |
bool | m_hasWatchers |
edm::EDGetTokenT< edm::HepMCProduct > | m_InToken |
edm::EDGetTokenT< edm::HepMCProduct > | m_LHCToken |
bool | m_LHCTransport |
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | m_MagField |
bool | m_nonBeam |
edm::ParameterSet | m_p |
edm::ParameterSet | m_pCustomUIsession |
edm::ParameterSet | m_pEventAction |
edm::ParameterSet | m_pField |
const MagneticField * | m_pMagField = nullptr |
edm::ParameterSet | m_pRunAction |
edm::ParameterSet | m_pStackingAction |
edm::ParameterSet | m_pSteppingAction |
edm::ParameterSet | m_pTrackingAction |
bool | m_pUseMagneticField |
std::unordered_map< std::string, std::unique_ptr< SensitiveDetectorMakerBase > > | m_sdMakers |
G4SimEvent * | m_simEvent |
std::unique_ptr< CMSSteppingVerbose > | m_sVerbose |
edm::EDGetTokenT< edm::LHCTransportLinkContainer > | m_theLHCTlinkToken |
Static Private Attributes | |
static thread_local bool | dumpMF = false |
static thread_local TLSData * | m_tls {nullptr} |
Definition at line 48 of file RunManagerMTWorker.h.
|
explicit |
Definition at line 142 of file RunManagerMTWorker.cc.
References edm::BeginRun, edm::ParameterSet::getParameter(), initializeTLS(), HLT_FULL_cff::InputTag, dqmdumpme::k, m_hasWatchers, m_LHCToken, m_LHCTransport, m_MagField, m_p, m_pUseMagneticField, m_sdMakers, SiStripFineDelayHit_cfi::MagneticField, sim::sensitiveDetectorMakers(), and AlCaHLTBitMon_QueryRunRegistry::string.
RunManagerMTWorker::~RunManagerMTWorker | ( | ) |
void RunManagerMTWorker::abortEvent | ( | ) |
Definition at line 559 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 576 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 225 of file RunManagerMTWorker.cc.
References edm::EventSetup::getData(), m_MagField, m_pMagField, m_pUseMagneticField, and m_sdMakers.
void RunManagerMTWorker::Connect | ( | EventAction * | eventAction | ) |
Definition at line 424 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 | ( | RunAction * | runAction | ) |
Definition at line 419 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 | ( | SteppingAction * | steppingAction | ) |
Definition at line 434 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), SteppingAction::m_g4StepSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
void RunManagerMTWorker::Connect | ( | TrackingAction * | trackingAction | ) |
Definition at line 429 of file RunManagerMTWorker.cc.
References sim_act::Signaler< T >::connect(), TrackingAction::m_beginOfTrackSignal, TrackingAction::m_endOfTrackSignal, m_tls, and RunManagerMTWorker::TLSData::registry.
|
private |
Definition at line 624 of file RunManagerMTWorker.cc.
References funct::cos(), flavorHistoryFilter_cfi::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, HLTMuonOfflineAnalyzer_cfi::z0, and SiStripMonitorCluster_cfi::zmax.
Referenced by initializeG4().
void RunManagerMTWorker::endRun | ( | ) |
Definition at line 234 of file RunManagerMTWorker.cc.
References terminateRun().
|
private |
Definition at line 584 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_simEvent, m_tls, Generator::nonCentralEvent2G4(), resetGenParticleId(), and Generator::setGenEvent().
Referenced by produce().
SimTrackManager * RunManagerMTWorker::GetSimTrackManager | ( | ) |
Definition at line 438 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::trackManager.
Referenced by SimRunInterface::SimRunInterface().
void RunManagerMTWorker::initializeG4 | ( | RunManagerMT * | runManagerMaster, |
const edm::EventSetup & | es | ||
) |
Definition at line 265 of file RunManagerMTWorker.cc.
References applyOnce, sim::attachSD(), sim::FieldBuilder::build(), RunManagerMT::catalog(), mps_check::command, edm::errors::Configuration, g4SimHits_cfi::CustomUIsession, DumpMagneticField(), dumpMF, Exception, f, g, RunManagerMT::G4Commands(), ecalTB2006H4_GenSimDigiReco_cfg::G4cout, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), DDDWorld::GetWorldVolume(), GeV, initializeTLS(), initializeUserActions(), RunManagerMTWorker::TLSData::kernel, m_p, m_pCustomUIsession, m_pField, m_pMagField, m_pUseMagneticField, m_sdMakers, m_sVerbose, m_tls, RunManagerMT::physicsListForWorker(), RunManagerMTWorker::TLSData::registry, RunManagerMTWorker::TLSData::sensCaloDets, RunManagerMTWorker::TLSData::sensTkDets, AlCaHLTBitMon_QueryRunRegistry::string, pfDeepBoostedJetPreprocessParams_cfi::sv, RunManagerMTWorker::TLSData::threadInitialized, RunManagerMTWorker::TLSData::trackManager, and RunManagerMT::world().
Referenced by produce().
|
private |
Definition at line 455 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 edm::errors::Configuration, createWatchers(), Exception, m_hasWatchers, m_p, m_tls, RunManagerMTWorker::TLSData::producers, RunManagerMTWorker::TLSData::registry, and RunManagerMTWorker::TLSData::watchers.
Referenced by GetSimTrackManager(), initializeG4(), producers(), RunManagerMTWorker(), sensCaloDetectors(), and sensTkDetectors().
|
private |
Definition at line 393 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, RunManagerMTWorker::TLSData::runInterface, CastorDigiValidation::StackingAction, CastorDigiValidation::SteppingAction, g4SimHits_cfi::TrackingAction, RunManagerMTWorker::TLSData::trackManager, and RunManagerMTWorker::TLSData::userRunAction.
Referenced by initializeG4().
std::unique_ptr< G4SimEvent > RunManagerMTWorker::produce | ( | const edm::Event & | inpevt, |
const edm::EventSetup & | es, | ||
RunManagerMT & | runManagerMaster | ||
) |
Definition at line 486 of file RunManagerMTWorker.cc.
References G4SimEvent::collisionPoint(), RunManagerMTWorker::TLSData::currentEvent, RunManagerMTWorker::TLSData::currentRunNumber, edm::EventID::event(), Generator::eventWeight(), generateEvent(), Generator::genEvent(), Generator::genVertex(), G4SimEvent::hepEvent(), edm::EventBase::id(), initializeG4(), initializeRun(), RunManagerMTWorker::TLSData::kernel, m_generator, m_simEvent, m_tls, G4SimEvent::nGenParts(), edm::EventID::run(), RunManagerMTWorker::TLSData::runInterface, RunManagerMTWorker::TLSData::runTerminated, sd, edm::second(), RunManagerMTWorker::TLSData::sensCaloDets, simEvent(), contentValuesCheck::ss, edm::Event::streamID(), terminateRun(), RunManagerMTWorker::TLSData::threadInitialized, and G4SimEvent::weight().
std::vector< std::shared_ptr< SimProducer > > & RunManagerMTWorker::producers | ( | ) |
Definition at line 450 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::producers.
|
private |
Definition at line 616 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 198 of file RunManagerMTWorker.cc.
References submitPVResolutionJobs::count, m_tls, and alignCSCRings::s.
Referenced by ~RunManagerMTWorker().
std::vector< SensitiveCaloDetector * > & RunManagerMTWorker::sensCaloDetectors | ( | ) |
Definition at line 446 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::sensCaloDets.
std::vector< SensitiveTkDetector * > & RunManagerMTWorker::sensTkDetectors | ( | ) |
Definition at line 442 of file RunManagerMTWorker.cc.
References initializeTLS(), m_tls, and RunManagerMTWorker::TLSData::sensTkDets.
|
inline |
Definition at line 63 of file RunManagerMTWorker.h.
References m_simEvent.
Referenced by produce(), and SimRunInterface::simEvent().
|
private |
Definition at line 465 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(), and produce().
|
staticprivate |
Definition at line 115 of file RunManagerMTWorker.h.
Referenced by initializeG4().
|
private |
Definition at line 102 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 91 of file RunManagerMTWorker.h.
Referenced by generateEvent(), and produce().
|
private |
Definition at line 100 of file RunManagerMTWorker.h.
Referenced by initializeTLS(), initializeUserActions(), and RunManagerMTWorker().
|
private |
Definition at line 92 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 93 of file RunManagerMTWorker.h.
Referenced by generateEvent(), and RunManagerMTWorker().
|
private |
Definition at line 101 of file RunManagerMTWorker.h.
Referenced by generateEvent(), and RunManagerMTWorker().
|
private |
Definition at line 95 of file RunManagerMTWorker.h.
Referenced by beginRun(), and RunManagerMTWorker().
|
private |
Definition at line 98 of file RunManagerMTWorker.h.
Referenced by generateEvent().
|
private |
Definition at line 111 of file RunManagerMTWorker.h.
Referenced by initializeG4(), initializeTLS(), and RunManagerMTWorker().
|
private |
Definition at line 110 of file RunManagerMTWorker.h.
Referenced by initializeG4().
|
private |
Definition at line 106 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 104 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 105 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 107 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 109 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 108 of file RunManagerMTWorker.h.
Referenced by initializeUserActions().
|
private |
Definition at line 99 of file RunManagerMTWorker.h.
Referenced by beginRun(), initializeG4(), and RunManagerMTWorker().
|
private |
Definition at line 119 of file RunManagerMTWorker.h.
Referenced by beginRun(), initializeG4(), and RunManagerMTWorker().
|
private |
Definition at line 117 of file RunManagerMTWorker.h.
Referenced by generateEvent(), produce(), simEvent(), and terminateRun().
|
private |
Definition at line 118 of file RunManagerMTWorker.h.
Referenced by initializeG4(), and initializeUserActions().
|
private |
Definition at line 94 of file RunManagerMTWorker.h.
Referenced by resetGenParticleId().
|
staticprivate |
Definition at line 113 of file RunManagerMTWorker.h.
Referenced by abortEvent(), abortRun(), Connect(), generateEvent(), GetSimTrackManager(), initializeG4(), initializeRun(), initializeTLS(), initializeUserActions(), produce(), producers(), resetGenParticleId(), resetTLS(), sensCaloDetectors(), sensTkDetectors(), and terminateRun().