#include <Run.h>
Public Types | |
typedef PrincipalGetAdapter | Base |
typedef unsigned long | CacheIdentifier_t |
Public Member Functions | |
CacheIdentifier_t | cacheIdentifier () const |
template<typename PROD , typename... Args> | |
void | emplace (EDPutTokenT< PROD > token, Args &&... args) |
puts a new product More... | |
template<typename PROD , typename... Args> | |
void | emplace (EDPutToken token, Args &&... args) |
template<typename PROD > | |
PROD const & | get (EDGetTokenT< PROD > token) const noexcept(false) |
void | getAllStableProvenance (std::vector< StableProvenance const *> &provenances) const |
template<typename PROD > | |
bool | getByLabel (std::string const &label, Handle< PROD > &result) const |
template<typename PROD > | |
bool | getByLabel (std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const |
template<typename PROD > | |
bool | getByLabel (InputTag const &tag, Handle< PROD > &result) const |
same as above, but using the InputTag class More... | |
template<typename PROD > | |
bool | getByToken (EDGetToken token, Handle< PROD > &result) const |
template<typename PROD > | |
bool | getByToken (EDGetTokenT< PROD > token, Handle< PROD > &result) const |
template<typename PROD > | |
Handle< PROD > | getHandle (EDGetTokenT< PROD > token) const |
template<typename PROD > | |
void | getManyByType (std::vector< Handle< PROD >> &results) const |
Provenance const & | getProvenance (BranchID const &theID) const |
StableProvenance const & | getStableProvenance (BranchID const &theID) const |
RunIndex | index () const |
void | labelsForToken (EDGetToken const &iToken, ProductLabels &oLabels) const |
ModuleCallingContext const * | moduleCallingContext () const |
ProcessHistory const & | processHistory () const |
ProcessHistoryID const & | processHistoryID () const |
template<typename PROD > | |
void | put (std::unique_ptr< PROD > product) |
Put a new product. More... | |
template<typename PROD > | |
void | put (std::unique_ptr< PROD > product, std::string const &productInstanceName) |
Put a new product with a 'product instance name'. More... | |
template<typename PROD > | |
void | put (EDPutToken token, std::unique_ptr< PROD > product) |
template<typename PROD > | |
void | put (EDPutTokenT< PROD > token, std::unique_ptr< PROD > product) |
Run (RunTransitionInfo const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd) | |
Run (RunPrincipal const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd) | |
RunAuxiliary const & | runAuxiliary () const override |
void | setConsumer (EDConsumerBase const *iConsumer) |
void | setProducer (ProducerBase const *iProducer) |
void | setSharedResourcesAcquirer (SharedResourcesAcquirer *iResourceAcquirer) |
~Run () override | |
Public Member Functions inherited from edm::RunBase | |
Timestamp const & | beginTime () const |
Timestamp const & | endTime () const |
template<typename PROD > | |
bool | getByLabel (InputTag const &tag, Handle< PROD > &result) const |
same as above, but using the InputTag class More... | |
template<typename T > | |
bool | getByLabel (InputTag const &tag, Handle< T > &result) const |
RunID const & | id () const |
RunNumber_t | run () const |
RunBase () | |
virtual | ~RunBase () |
Private Types | |
typedef std::vector< edm::propagate_const< std::unique_ptr< WrapperBase > > > | ProductPtrVec |
Private Member Functions | |
void | commit_ (std::vector< edm::ProductResolverIndex > const &iShouldPut) |
template<typename PROD , typename... Args> | |
void | emplaceImpl (EDPutToken::value_type token, Args &&... args) |
BasicHandle | getByLabelImpl (std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const override |
template<typename PROD > | |
void | putImpl (EDPutToken::value_type token, std::unique_ptr< PROD > product) |
ProductPtrVec & | putProducts () |
ProductPtrVec const & | putProducts () const |
RunPrincipal const & | runPrincipal () const |
Private Attributes | |
RunAuxiliary const & | aux_ |
ModuleCallingContext const * | moduleCallingContext_ |
PrincipalGetAdapter | provRecorder_ |
ProductPtrVec | putProducts_ |
SharedResourcesAcquirer * | sharedResourcesAcquirer_ |
Static Private Attributes | |
static const std::string | emptyString_ |
Friends | |
class | ProducerBase |
class | RawInputSource |
template<typename T > | |
class | stream::ProducingModuleAdaptorBase |
typedef PrincipalGetAdapter edm::Run::Base |
typedef unsigned long edm::Run::CacheIdentifier_t |
|
private |
Run::Run | ( | RunTransitionInfo const & | info, |
ModuleDescription const & | md, | ||
ModuleCallingContext const * | mcc, | ||
bool | isAtEnd | ||
) |
Definition at line 13 of file Run.cc.
Run::Run | ( | RunPrincipal const & | rp, |
ModuleDescription const & | md, | ||
ModuleCallingContext const * | moduleCallingContext, | ||
bool | isAtEnd | ||
) |
Run::CacheIdentifier_t Run::cacheIdentifier | ( | ) | const |
Definition at line 24 of file Run.cc.
References edm::Principal::cacheIdentifier(), and runPrincipal().
|
private |
Definition at line 83 of file Run.cc.
References runTheMatrix::const, edm::get_underlying_safe(), mps_fire::i, index(), edm::isEndTransition(), eostools::move(), AlCaHLTBitMon_ParallelJobs::p, edm::PrincipalGetAdapter::principal(), provRecorder_, edm::RunPrincipal::put(), putProducts(), edm::PrincipalGetAdapter::putTokenIndexToProductResolverIndex(), runPrincipal(), and edm::PrincipalGetAdapter::transition().
Referenced by edm::stream::ProducingModuleAdaptorBase< EDProducerBase >::commit().
void Run::emplace | ( | EDPutTokenT< PROD > | token, |
Args &&... | args | ||
) |
puts a new product
Definition at line 248 of file Run.h.
References writedatasetfile::args, PROD, edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), unpackBuffers-CaloStage2::token, and UNLIKELY.
Referenced by ParameterSetBlobProducer::globalBeginRunProduce(), and ExternalGeneratorFilter::globalEndRunProduce().
void Run::emplace | ( | EDPutToken | token, |
Args &&... | args | ||
) |
Definition at line 256 of file Run.h.
References writedatasetfile::args, emplaceImpl(), edm::PrincipalGetAdapter::getTypeIDForPutTokenIndex(), PROD, provRecorder_, edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), edm::principal_get_adapter_detail::throwOnPutOfWrongType(), unpackBuffers-CaloStage2::token, and UNLIKELY.
|
private |
Definition at line 269 of file Run.h.
References writedatasetfile::args, cms::cuda::assert(), index(), eostools::move(), putProducts(), findQualityFiles::size, relativeConstraints::value, and pfClustersFromHGC3DClusters_cfi::wp.
Referenced by emplace().
|
noexcept |
Definition at line 355 of file Run.h.
References eostools::move(), PROD, edm::PRODUCT_TYPE, edm::principal_get_adapter_detail::throwOnPrematureRead(), and unpackBuffers-CaloStage2::token.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), CompareGeneratorResultsAnalyzer::globalEndRun(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
void Run::getAllStableProvenance | ( | std::vector< StableProvenance const *> & | provenances | ) | const |
Definition at line 36 of file Run.cc.
References edm::Principal::getAllStableProvenance(), and runPrincipal().
Referenced by GlobalHitsProdHistStripper::beginRun().
bool Run::getByLabel | ( | std::string const & | label, |
Handle< PROD > & | result | ||
) | const |
Definition at line 283 of file Run.h.
References emptyString_, label, and mps_fire::result.
Referenced by RivetAnalyzer::beginRun(), HTXSRivetProducer::beginRun(), LHE2HepMCConverter::beginRun(), FWFFLooper::beginRun(), pat::PATTriggerProducer::beginRun(), LheWeightValidation::bookHistograms(), LumiCalculator::endLuminosityBlock(), L1GtBeamModeFilter::filter(), and GenWeightsTableProducer::globalBeginRun().
bool Run::getByLabel | ( | std::string const & | label, |
std::string const & | productInstanceName, | ||
Handle< PROD > & | result | ||
) | const |
Definition at line 288 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), emptyString_, edm::PrincipalGetAdapter::getByLabel_(), label, moduleCallingContext_, eostools::move(), PROD, provRecorder_, mps_fire::result, and edm::principal_get_adapter_detail::throwOnPrematureRead().
bool Run::getByLabel | ( | InputTag const & | tag, |
Handle< PROD > & | result | ||
) | const |
same as above, but using the InputTag class
Definition at line 304 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getByLabel_(), moduleCallingContext_, eostools::move(), PROD, provRecorder_, mps_fire::result, makeGlobalPositionRcd_cfg::tag, and edm::principal_get_adapter_detail::throwOnPrematureRead().
|
overrideprivatevirtual |
Implements edm::RunBase.
Definition at line 115 of file Run.cc.
References edm::PrincipalGetAdapter::getByLabel_(), h, moduleCallingContext_, and provRecorder_.
bool Run::getByToken | ( | EDGetToken | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 318 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, mps_fire::result, edm::principal_get_adapter_detail::throwOnPrematureRead(), and unpackBuffers-CaloStage2::token.
Referenced by L1GtAnalyzer::analyzeConditionsInRunBlock(), L1GtAnalyzer::analyzeL1GtTriggerMenuLite(), GenParticles2HepMCConverter::beginRun(), HLTPrescaleRecorder::beginRun(), pat::PATTriggerEventProducer::beginRun(), RunHistogramManager::beginRun(), LheWeightValidation::dqmEndRun(), EDMtoMEConverter::Tokens< T >::getData(), GenXSecAnalyzer::globalEndRun(), and L1GtUtils::retrieveL1GtTriggerMenuLite().
bool Run::getByToken | ( | EDGetTokenT< PROD > | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 332 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, mps_fire::result, edm::principal_get_adapter_detail::throwOnPrematureRead(), and unpackBuffers-CaloStage2::token.
Handle< PROD > Run::getHandle | ( | EDGetTokenT< PROD > | token | ) | const |
Definition at line 346 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, eostools::move(), PROD, edm::PRODUCT_TYPE, provRecorder_, edm::principal_get_adapter_detail::throwOnPrematureRead(), and unpackBuffers-CaloStage2::token.
Referenced by LHE2HepMCConverter::beginRun(), and ExternalLHEAsciiDumper::endRun().
Definition at line 364 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getManyByType(), moduleCallingContext_, PROD, provRecorder_, bookConverter::results, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by GlobalHitsProdHistStripper::endRun().
Provenance const & Run::getProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 30 of file Run.cc.
References edm::Principal::getProvenance(), and runPrincipal().
StableProvenance const & Run::getStableProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 32 of file Run.cc.
References edm::Principal::getStableProvenance(), and runPrincipal().
RunIndex Run::index | ( | ) | const |
Definition at line 26 of file Run.cc.
References edm::RunPrincipal::index(), and runPrincipal().
Referenced by commit_(), emplaceImpl(), GenXSecAnalyzer::globalEndLuminosityBlock(), L1TStage2CaloLayer1::globalEndLuminosityBlockSummary(), AlCaHcalHBHEMuonFilter::globalEndRun(), AlCaHcalHEMuonFilter::globalEndRun(), AlCaHcalIsotrkFilter::globalEndRun(), AlCaDiJetsProducer::globalEndRun(), GenXSecAnalyzer::globalEndRun(), ExternalGeneratorFilter::globalEndRunProduce(), L1TStage2CaloLayer1::globalEndRunSummary(), BeautifulSoup.PageElement::insert(), GenParticleProducer::produce(), GenPUProtonProducer::produce(), put(), putImpl(), and ExternalGeneratorFilter::streamEndRun().
|
inline |
Definition at line 152 of file Run.h.
References edm::PrincipalGetAdapter::labelsForToken(), and provRecorder_.
|
inline |
Definition at line 150 of file Run.h.
References moduleCallingContext_.
ProcessHistory const & Run::processHistory | ( | ) | const |
Definition at line 113 of file Run.cc.
References edm::PrincipalGetAdapter::processHistory(), and provRecorder_.
Referenced by trackerDTC::ProducerED::beginRun(), pat::PATTriggerEventProducer::beginRun(), pat::PATTriggerProducer::beginRun(), and HLTConfigProvider::init().
ProcessHistoryID const & Run::processHistoryID | ( | ) | const |
Definition at line 111 of file Run.cc.
References edm::Principal::processHistoryID(), and runPrincipal().
|
inline |
Put a new product.
Definition at line 109 of file Run.h.
References eostools::move(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1GtTriggerMenuLiteProducer::beginRunProduce(), HLTPrescaleRecorder::endRunProduce(), EDMtoMEConverter::endRunProduce(), LaserAlignment::endRunProduce(), GlobalHitsProdHist::endRunProduce(), UniqueStringProducer::globalBeginRunProduce(), SiStripLorentzAngleRunInfoTableProducer::globalBeginRunProduce(), and GenWeightsTableProducer::globalEndRunProduce().
void Run::put | ( | std::unique_ptr< PROD > | product, |
std::string const & | productInstanceName | ||
) |
Put a new product with a 'product instance name'.
Definition at line 209 of file Run.h.
References edm::PrincipalGetAdapter::getPutTokenIndex(), index(), eostools::move(), PROD, provRecorder_, putImpl(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and UNLIKELY.
void Run::put | ( | EDPutToken | token, |
std::unique_ptr< PROD > | product | ||
) |
Definition at line 231 of file Run.h.
References edm::PrincipalGetAdapter::getTypeIDForPutTokenIndex(), eostools::move(), PROD, edm::PrincipalGetAdapter::productInstanceLabel(), provRecorder_, putImpl(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), edm::principal_get_adapter_detail::throwOnPutOfWrongType(), unpackBuffers-CaloStage2::token, and UNLIKELY.
void Run::put | ( | EDPutTokenT< PROD > | token, |
std::unique_ptr< PROD > | product | ||
) |
Definition at line 219 of file Run.h.
References eostools::move(), PROD, edm::PrincipalGetAdapter::productInstanceLabel(), provRecorder_, putImpl(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), unpackBuffers-CaloStage2::token, and UNLIKELY.
|
private |
Definition at line 196 of file Run.h.
References cms::cuda::assert(), index(), eostools::move(), putProducts(), findQualityFiles::size, relativeConstraints::value, and pfClustersFromHGC3DClusters_cfi::wp.
Referenced by put().
|
inlineprivate |
Definition at line 171 of file Run.h.
References putProducts_.
Referenced by commit_(), emplaceImpl(), and putImpl().
|
inlineprivate |
|
inlineoverridevirtual |
Implements edm::RunBase.
Definition at line 62 of file Run.h.
References aux_.
Referenced by L1GtUtils::getL1GtRunCache(), EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), and L1GtUtils::retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 28 of file Run.cc.
References runTheMatrix::const, edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by cacheIdentifier(), commit_(), getAllStableProvenance(), getProvenance(), getStableProvenance(), index(), and processHistoryID().
|
inline |
Definition at line 52 of file Run.h.
References provRecorder_, and edm::PrincipalGetAdapter::setConsumer().
void Run::setProducer | ( | ProducerBase const * | iProducer | ) |
Definition at line 77 of file Run.cc.
References provRecorder_, putProducts_, edm::PrincipalGetAdapter::putTokenIndexToProductResolverIndex(), and edm::PrincipalGetAdapter::setProducer().
Referenced by edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginRun(), and edm::stream::ProducingModuleAdaptor< T, M, B >::doEndRun().
|
inline |
Definition at line 54 of file Run.h.
References provRecorder_, and edm::PrincipalGetAdapter::setSharedResourcesAcquirer().
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 187 of file Run.h.
Referenced by runAuxiliary().
|
staticprivate |
Definition at line 192 of file Run.h.
Referenced by getByLabel().
|
private |
Definition at line 188 of file Run.h.
Referenced by getByLabel(), getByLabelImpl(), getByToken(), getHandle(), getManyByType(), and moduleCallingContext().
|
private |
Definition at line 185 of file Run.h.
Referenced by commit_(), emplace(), getByLabel(), getByLabelImpl(), getByToken(), getHandle(), getManyByType(), labelsForToken(), processHistory(), put(), runPrincipal(), setConsumer(), setProducer(), and setSharedResourcesAcquirer().
|
private |
Definition at line 186 of file Run.h.
Referenced by putProducts(), and setProducer().
|
private |