#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 (EDPutToken token, Args &&... args) |
template<typename PROD , typename... Args> | |
void | emplace (EDPutTokenT< PROD > token, Args &&... args) |
puts a new product More... | |
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 (InputTag const &tag, Handle< PROD > &result) const |
same as above, but using the InputTag class More... | |
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 | 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 | getProvenance (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 (EDPutToken token, std::unique_ptr< PROD > product) |
template<typename PROD > | |
void | put (EDPutTokenT< PROD > token, std::unique_ptr< PROD > product) |
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... | |
Run (RunPrincipal const &, ModuleDescription const &, ModuleCallingContext const *, bool isAtEnd) | |
Run (RunTransitionInfo 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 | ||
) |
Run::Run | ( | RunPrincipal const & | rp, |
ModuleDescription const & | md, | ||
ModuleCallingContext const * | moduleCallingContext, | ||
bool | isAtEnd | ||
) |
Run::CacheIdentifier_t Run::cacheIdentifier | ( | ) | const |
Definition at line 23 of file Run.cc.
References edm::Principal::cacheIdentifier(), and runPrincipal().
|
private |
Definition at line 80 of file Run.cc.
References 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 | ( | EDPutToken | token, |
Args &&... | args | ||
) |
Definition at line 254 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.
void Run::emplace | ( | EDPutTokenT< PROD > | token, |
Args &&... | args | ||
) |
puts a new product
Definition at line 246 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().
|
private |
Definition at line 267 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 353 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 33 of file Run.cc.
References edm::Principal::getAllStableProvenance(), and runPrincipal().
Referenced by GlobalHitsProdHistStripper::beginRun().
bool Run::getByLabel | ( | InputTag const & | tag, |
Handle< PROD > & | result | ||
) | const |
same as above, but using the InputTag class
Definition at line 302 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getByLabel_(), moduleCallingContext_, eostools::move(), PROD, provRecorder_, mps_fire::result, GlobalPosition_Frontier_DevDB_cff::tag, and edm::principal_get_adapter_detail::throwOnPrematureRead().
bool Run::getByLabel | ( | std::string const & | label, |
Handle< PROD > & | result | ||
) | const |
Definition at line 281 of file Run.h.
References emptyString_, label, and mps_fire::result.
Referenced by RivetAnalyzer::beginRun(), HTXSRivetProducer::beginRun(), LHE2HepMCConverter::beginRun(), FWFFLooper::beginRun(), pat::PATTriggerProducer::beginRun(), LumiCalculator::endLuminosityBlock(), L1GtBeamModeFilter::filter(), GenWeightsTableProducer::globalBeginRun(), and FWFFService::postBeginRun().
bool Run::getByLabel | ( | std::string const & | label, |
std::string const & | productInstanceName, | ||
Handle< PROD > & | result | ||
) | const |
Definition at line 286 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().
|
overrideprivatevirtual |
Implements edm::RunBase.
Definition at line 112 of file Run.cc.
References edm::PrincipalGetAdapter::getByLabel_(), h, moduleCallingContext_, and provRecorder_.
bool Run::getByToken | ( | EDGetToken | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 316 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(), ExternalLHEAsciiDumper::endRun(), EDMtoMEConverter::Tokens< T >::getData(), GenXSecAnalyzer::globalEndRun(), and L1GtUtils::retrieveL1GtTriggerMenuLite().
bool Run::getByToken | ( | EDGetTokenT< PROD > | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 330 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 344 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.
Definition at line 362 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 Run::getProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 29 of file Run.cc.
References edm::Principal::getProvenance(), moduleCallingContext_, and runPrincipal().
RunIndex Run::index | ( | ) | const |
Definition at line 25 of file Run.cc.
References edm::RunPrincipal::index(), and runPrincipal().
Referenced by commit_(), emplaceImpl(), GenXSecAnalyzer::globalEndLuminosityBlock(), L1TStage2CaloLayer1::globalEndLuminosityBlockSummary(), GenXSecAnalyzer::globalEndRun(), ExternalGeneratorFilter::globalEndRunProduce(), L1TStage2CaloLayer1::globalEndRunSummary(), BeautifulSoup.PageElement::insert(), GenParticleProducer::produce(), GenPUProtonProducer::produce(), put(), putImpl(), and ExternalGeneratorFilter::streamEndRun().
|
inline |
Definition at line 150 of file Run.h.
References edm::PrincipalGetAdapter::labelsForToken(), and provRecorder_.
|
inline |
ProcessHistory const & Run::processHistory | ( | ) | const |
Definition at line 110 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 108 of file Run.cc.
References edm::Principal::processHistoryID(), and runPrincipal().
void Run::put | ( | EDPutToken | token, |
std::unique_ptr< PROD > | product | ||
) |
Definition at line 229 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 217 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.
|
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(), 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 207 of file Run.h.
References edm::PrincipalGetAdapter::getPutTokenIndex(), index(), eostools::move(), PROD, provRecorder_, putImpl(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and UNLIKELY.
|
private |
Definition at line 194 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 169 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 27 of file Run.cc.
References edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by cacheIdentifier(), commit_(), getAllStableProvenance(), getProvenance(), 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 74 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 185 of file Run.h.
Referenced by runAuxiliary().
|
staticprivate |
Definition at line 190 of file Run.h.
Referenced by getByLabel().
|
private |
Definition at line 186 of file Run.h.
Referenced by getByLabel(), getByLabelImpl(), getByToken(), getHandle(), getManyByType(), getProvenance(), and moduleCallingContext().
|
private |
Definition at line 183 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 184 of file Run.h.
Referenced by putProducts(), and setProducer().
|
private |