#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 (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 | 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 (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 (RunPrincipal const &rp, ModuleDescription const &md, 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 | ( | RunPrincipal const & | rp, |
ModuleDescription const & | md, | ||
ModuleCallingContext const * | moduleCallingContext, | ||
bool | isAtEnd | ||
) |
Run::CacheIdentifier_t Run::cacheIdentifier | ( | ) | const |
Definition at line 19 of file Run.cc.
References edm::Principal::cacheIdentifier(), and runPrincipal().
|
private |
Definition at line 76 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 | ( | EDPutTokenT< PROD > | token, |
Args &&... | args | ||
) |
puts a new product
Definition at line 245 of file Run.h.
References writedatasetfile::args, edm::EDPutTokenT< T >::index(), edm::EDPutTokenT< T >::isUninitialized(), PROD, edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), and UNLIKELY.
Referenced by one::dqmimplementation::DQMRunEDProducer< edm::one::WatchLuminosityBlocks >::endRunProduce(), and ConditionDumperInEdm::endRunProduce().
void Run::emplace | ( | EDPutToken | token, |
Args &&... | args | ||
) |
Definition at line 253 of file Run.h.
References writedatasetfile::args, edm::EDPutToken::index(), edm::EDPutToken::isUninitialized(), PROD, edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), edm::principal_get_adapter_detail::throwOnPutOfWrongType(), and UNLIKELY.
|
private |
Definition at line 266 of file Run.h.
References writedatasetfile::args, eostools::move(), findQualityFiles::size, and relativeConstraints::value.
PROD const & Run::get | ( | EDGetTokenT< PROD > | token | ) | const |
Definition at line 352 of file Run.h.
References eostools::move(), edm::PRODUCT_TYPE, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), 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 29 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 280 of file Run.h.
Referenced by LHECOMWeightProducer::beginRun(), HTXSRivetProducer::beginRun(), LHE2HepMCConverter::beginRun(), FWFFLooper::beginRun(), pat::PATTriggerProducer::beginRun(), edm::HadronizerFilter< HAD, DEC >::beginRun(), LumiCalculator::endLuminosityBlock(), TkLasBeamFitter::endRunProduce(), AdHocNTupler::fill(), L1GtBeamModeFilter::filter(), AlignmentProducer::getTkFittedLasBeamCollection(), AlignmentProducer::getTsosVectorCollection(), GenWeightsTableProducer::globalBeginRun(), and FWFFService::postBeginRun().
bool Run::getByLabel | ( | std::string const & | label, |
std::string const & | productInstanceName, | ||
Handle< PROD > & | result | ||
) | const |
Definition at line 285 of file Run.h.
References edm::HandleBase::clear(), edm::HandleBase::failedToGet(), eostools::move(), 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 301 of file Run.h.
References edm::HandleBase::clear(), edm::HandleBase::failedToGet(), edm::InputTag::instance(), edm::InputTag::label(), eostools::move(), and edm::principal_get_adapter_detail::throwOnPrematureRead().
|
overrideprivatevirtual |
Implements edm::RunBase.
Definition at line 108 of file Run.cc.
References edm::PrincipalGetAdapter::getByLabel_(), h, moduleCallingContext_, and provRecorder_.
bool Run::getByToken | ( | EDGetToken | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 315 of file Run.h.
References edm::HandleBase::clear(), edm::HandleBase::failedToGet(), eostools::move(), edm::PRODUCT_TYPE, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by L1GtAnalyzer::analyzeConditionsInRunBlock(), L1GtAnalyzer::analyzeL1GtTriggerMenuLite(), HLTPrescaleRecorder::beginRun(), pat::PATTriggerEventProducer::beginRun(), RunHistogramManager::beginRun(), LHEWriter::endRun(), ExternalLHEAsciiDumper::endRun(), GenXSecAnalyzer::endRun(), EDMtoMEConverter::Tokens< T >::getData(), AlignmentProducerAsAnalyzer::getTkFittedLasBeamCollection(), AlignmentProducerAsAnalyzer::getTsosVectorCollection(), PrescaleWeightProvider::initRun(), and L1GtUtils::retrieveL1GtTriggerMenuLite().
bool Run::getByToken | ( | EDGetTokenT< PROD > | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 329 of file Run.h.
References edm::HandleBase::clear(), edm::HandleBase::failedToGet(), eostools::move(), edm::PRODUCT_TYPE, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Handle< PROD > Run::getHandle | ( | EDGetTokenT< PROD > | token | ) | const |
Definition at line 343 of file Run.h.
References eostools::move(), edm::PRODUCT_TYPE, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by edm::GetterOfProducts< trigger::HLTPrescaleTable >::fillHandles().
Definition at line 361 of file Run.h.
References mps_update::results, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by GlobalHitsProdHistStripper::endRun().
Provenance Run::getProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 25 of file Run.cc.
References edm::Principal::getProvenance(), moduleCallingContext_, and runPrincipal().
RunIndex Run::index | ( | ) | const |
Definition at line 21 of file Run.cc.
References edm::RunPrincipal::index(), and runPrincipal().
Referenced by DQMGlobalEDAnalyzer< H, Args >::analyze(), HLTriggerJSONMonitoring::analyze(), commit_(), ConditionDumperInEdm::endRunProduce(), LogErrorEventFilter::filter(), BeamConditionsMonitor::globalBeginLuminosityBlock(), LogErrorEventFilter::globalBeginLuminosityBlock(), HLTriggerJSONMonitoring::globalBeginLuminosityBlockSummary(), LogErrorEventFilter::globalEndLuminosityBlock(), L1TriggerJSONMonitoring::globalEndLuminosityBlockSummary(), HLTriggerJSONMonitoring::globalEndLuminosityBlockSummary(), LogErrorEventFilter::globalEndRun(), BeautifulSoup.PageElement::insert(), GEMDigiToRawModule::produce(), GEMRawToDigiModule::produce(), ConditionDumperInEdm::produce(), GenParticleProducer::produce(), GenPUProtonProducer::produce(), GenWeightsTableProducer::produce(), HLTriggerJSONMonitoring::streamBeginLuminosityBlock(), and HLTriggerJSONMonitoring::streamEndLuminosityBlockSummary().
|
inline |
Definition at line 149 of file Run.h.
References writedatasetfile::args, and PROD.
|
inline |
Definition at line 147 of file Run.h.
Referenced by edm::PileUp::beginRun(), and edm::PileUp::endRun().
ProcessHistory const & Run::processHistory | ( | ) | const |
Definition at line 106 of file Run.cc.
References edm::PrincipalGetAdapter::processHistory(), and provRecorder_.
Referenced by EcalTrigPrimProducer::beginRun(), MEtoMEComparitor::beginRun(), pat::PATTriggerEventProducer::beginRun(), pat::PATTriggerProducer::beginRun(), and HLTConfigProvider::init().
ProcessHistoryID const & Run::processHistoryID | ( | ) | const |
Definition at line 104 of file Run.cc.
References edm::Principal::processHistoryID(), and runPrincipal().
|
inline |
Put a new product.
Definition at line 108 of file Run.h.
References writedatasetfile::args, eostools::move(), PROD, put(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by AlpgenSource::beginRun(), MCatNLOSource::beginRun(), L1GtTriggerMenuLiteProducer::beginRunProduce(), ExternalLHEProducer::beginRunProduce(), EmbeddingLHEProducer::beginRunProduce(), DQMEDHarvester::endRunProduce(), edm::FlatBaseThetaGunProducer::endRunProduce(), edm::CosMuoGenProducer::endRunProduce(), edm::BaseRandomtXiGunProducer::endRunProduce(), edm::BaseFlatGunProducer::endRunProduce(), edm::BeamHaloProducer::endRunProduce(), HLTPrescaleRecorder::endRunProduce(), edm::GeneratorFilter< HAD, DEC >::endRunProduce(), TkLasBeamFitter::endRunProduce(), EDMtoMEConverter::endRunProduce(), edm::HadronizerFilter< HAD, DEC >::endRunProduce(), ExternalLHEProducer::endRunProduce(), GlobalHitsProdHist::endRunProduce(), LaserAlignment::endRunProduce(), LumiProducer::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 206 of file Run.h.
References eostools::move(), PROD, edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and UNLIKELY.
void Run::put | ( | EDPutToken | token, |
std::unique_ptr< PROD > | product | ||
) |
Definition at line 228 of file Run.h.
References edm::EDPutToken::index(), edm::EDPutToken::isUninitialized(), eostools::move(), PROD, edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), edm::principal_get_adapter_detail::throwOnPutOfWrongType(), and UNLIKELY.
void Run::put | ( | EDPutTokenT< PROD > | token, |
std::unique_ptr< PROD > | product | ||
) |
Definition at line 216 of file Run.h.
References edm::EDPutTokenT< T >::index(), edm::EDPutTokenT< T >::isUninitialized(), eostools::move(), PROD, edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken(), and UNLIKELY.
|
private |
Definition at line 193 of file Run.h.
References eostools::move(), findQualityFiles::size, and relativeConstraints::value.
|
inlineprivate |
|
inlineprivate |
|
inlineoverridevirtual |
Implements edm::RunBase.
Definition at line 61 of file Run.h.
Referenced by hcaldqm::DQHarvester::beginRun(), edm::PileUp::beginRun(), PedestalTask::bookHistograms(), LEDTask::bookHistograms(), QIE10Task::bookHistograms(), QIE11Task::bookHistograms(), UMNioTask::bookHistograms(), LaserTask::bookHistograms(), LEDTask::endRun(), PedestalTask::endRun(), UMNioTask::endRun(), LaserTask::endRun(), L1GtUtils::getL1GtRunCache(), and L1GtUtils::retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 23 of file Run.cc.
References edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by cacheIdentifier(), commit_(), getAllStableProvenance(), getProvenance(), index(), and processHistoryID().
|
inline |
Definition at line 51 of file Run.h.
Referenced by edm::EDAnalyzer::doBeginRun(), edm::EDProducer::doBeginRun(), edm::EDFilter::doBeginRun(), edm::one::EDProducerBase::doBeginRun(), edm::one::EDFilterBase::doBeginRun(), edm::one::EDAnalyzerBase::doBeginRun(), edm::global::EDAnalyzerBase::doBeginRun(), edm::limited::EDProducerBase::doBeginRun(), edm::global::EDProducerBase::doBeginRun(), edm::limited::EDFilterBase::doBeginRun(), edm::global::EDFilterBase::doBeginRun(), edm::limited::EDAnalyzerBase::doBeginRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginRun(), edm::stream::EDAnalyzerAdaptor< T >::doBeginRun(), edm::EDAnalyzer::doEndRun(), edm::EDProducer::doEndRun(), edm::EDFilter::doEndRun(), edm::one::EDProducerBase::doEndRun(), edm::one::EDFilterBase::doEndRun(), edm::one::EDAnalyzerBase::doEndRun(), edm::global::EDAnalyzerBase::doEndRun(), edm::limited::EDProducerBase::doEndRun(), edm::global::EDProducerBase::doEndRun(), edm::limited::EDFilterBase::doEndRun(), edm::global::EDFilterBase::doEndRun(), edm::limited::EDAnalyzerBase::doEndRun(), edm::stream::EDAnalyzerAdaptor< T >::doEndRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doEndRun(), edm::global::EDAnalyzerBase::doStreamBeginRun(), edm::limited::EDProducerBase::doStreamBeginRun(), edm::global::EDProducerBase::doStreamBeginRun(), edm::limited::EDFilterBase::doStreamBeginRun(), edm::global::EDFilterBase::doStreamBeginRun(), edm::limited::EDAnalyzerBase::doStreamBeginRun(), edm::global::EDAnalyzerBase::doStreamEndRun(), edm::limited::EDProducerBase::doStreamEndRun(), edm::global::EDProducerBase::doStreamEndRun(), edm::limited::EDFilterBase::doStreamEndRun(), edm::global::EDFilterBase::doStreamEndRun(), edm::limited::EDAnalyzerBase::doStreamEndRun(), edm::stream::EDAnalyzerAdaptorBase::doStreamEndRun(), and edm::stream::ProducingModuleAdaptorBase< T >::doStreamEndRun().
void Run::setProducer | ( | ProducerBase const * | iProducer | ) |
Definition at line 70 of file Run.cc.
References provRecorder_, putProducts_, edm::PrincipalGetAdapter::putTokenIndexToProductResolverIndex(), and edm::PrincipalGetAdapter::setProducer().
Referenced by edm::PuttableSourceBase::doBeginRun(), edm::one::EDFilterBase::doBeginRun(), edm::one::EDProducerBase::doBeginRun(), edm::limited::EDProducerBase::doBeginRun(), edm::global::EDProducerBase::doBeginRun(), edm::limited::EDFilterBase::doBeginRun(), edm::global::EDFilterBase::doBeginRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginRun(), edm::one::EDFilterBase::doEndRun(), edm::one::EDProducerBase::doEndRun(), edm::limited::EDProducerBase::doEndRun(), edm::global::EDProducerBase::doEndRun(), edm::limited::EDFilterBase::doEndRun(), edm::global::EDFilterBase::doEndRun(), and edm::stream::ProducingModuleAdaptor< T, M, B >::doEndRun().
|
inline |
Definition at line 53 of file Run.h.
|
friend |
|
friend |
|
friend |
|
private |
|
private |
Definition at line 185 of file Run.h.
Referenced by getByLabelImpl(), and getProvenance().
|
private |
Definition at line 182 of file Run.h.
Referenced by commit_(), getByLabelImpl(), processHistory(), runPrincipal(), and setProducer().
|
private |
Definition at line 183 of file Run.h.
Referenced by setProducer().
|
private |