#include <Run.h>
Public Types | |
typedef PrincipalGetAdapter | Base |
typedef unsigned long | CacheIdentifier_t |
Public Member Functions | |
CacheIdentifier_t | cacheIdentifier () const |
void | getAllProvenance (std::vector< Provenance 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 > | |
void | getManyByType (std::vector< Handle< PROD > > &results) const |
Provenance | getProvenance (BranchID const &theID) const |
RunIndex | index () const |
ModuleCallingContext const * | moduleCallingContext () const |
ProcessHistory const & | processHistory () const |
ProcessHistoryID const & | processHistoryID () const |
template<typename PROD > | |
void | put (std::auto_ptr< PROD > product) |
Put a new product. More... | |
template<typename PROD > | |
void | put (std::auto_ptr< PROD > product, std::string const &productInstanceName) |
Put a new product with a 'product instance name'. More... | |
Run (RunPrincipal &rp, ModuleDescription const &md, ModuleCallingContext const *) | |
RunAuxiliary const & | runAuxiliary () const |
void | setConsumer (EDConsumerBase const *iConsumer) |
~Run () | |
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::set< BranchID > | BranchIDSet |
typedef std::vector< std::pair < WrapperOwningHolder, BranchDescription const * > > | ProductPtrVec |
Private Member Functions | |
void | addToGotBranchIDs (Provenance const &prov) const |
void | commit_ () |
virtual BasicHandle | getByLabelImpl (std::type_info const &iWrapperType, std::type_info const &iProductType, InputTag const &iTag) const |
ProductPtrVec & | putProducts () |
ProductPtrVec const & | putProducts () const |
RunPrincipal const & | runPrincipal () const |
RunPrincipal & | runPrincipal () |
Private Attributes | |
RunAuxiliary const & | aux_ |
BranchIDSet | gotBranchIDs_ |
ModuleCallingContext const * | moduleCallingContext_ |
PrincipalGetAdapter | provRecorder_ |
ProductPtrVec | putProducts_ |
Static Private Attributes | |
static const std::string | emptyString_ |
Friends | |
class | InputSource |
class | ProducerBase |
class | RawInputSource |
template<typename T > | |
class | stream::ProducingModuleAdaptorBase |
typedef PrincipalGetAdapter edm::Run::Base |
|
private |
typedef unsigned long edm::Run::CacheIdentifier_t |
|
private |
Run::Run | ( | RunPrincipal & | rp, |
ModuleDescription const & | md, | ||
ModuleCallingContext const * | moduleCallingContext | ||
) |
Run::~Run | ( | ) |
Definition at line 17 of file Run.cc.
References edm::for_all(), and putProducts_.
|
private |
Definition at line 113 of file Run.cc.
References edm::Provenance::branchID(), and gotBranchIDs_.
Referenced by getByLabelImpl().
Run::CacheIdentifier_t Run::cacheIdentifier | ( | ) | const |
Definition at line 24 of file Run.cc.
References edm::Principal::cacheIdentifier(), and runPrincipal().
|
private |
Definition at line 86 of file Run.cc.
References begin, end, edm::RunPrincipal::put(), putProducts(), and runPrincipal().
Referenced by edm::stream::ProducingModuleAdaptorBase< EDProducerBase >::commit(), edm::InputSource::doBeginRun(), and edm::InputSource::doEndRun().
void Run::getAllProvenance | ( | std::vector< Provenance const * > & | provenances | ) | const |
Definition at line 44 of file Run.cc.
References edm::Principal::getAllProvenance(), and runPrincipal().
Referenced by GlobalHitsProdHistStripper::beginRun(), and L1GtUtils::getL1GtTriggerMenuLiteInputTag().
bool Run::getByLabel | ( | std::string const & | label, |
Handle< PROD > & | result | ||
) | const |
Definition at line 200 of file Run.h.
References emptyString_.
Referenced by L1GtAnalyzer::analyzeConditionsInRunBlock(), L1GtAnalyzer::analyzeL1GtTriggerMenuLite(), LHEWriter::beginRun(), LHECOMWeightProducer::beginRun(), LHEProducer::beginRun(), LHE2HepMCConverter::beginRun(), FWFFLooper::beginRun(), edm::HadronizerFilter< HAD, DEC >::beginRun(), pat::PATTriggerProducer::beginRun(), RunHistogramManager::beginRun(), LumiCalculator::endLuminosityBlock(), ExternalLHEAsciiDumper::endRun(), AlignmentProducer::endRun(), TkLasBeamFitter::endRunProduce(), L1GtBeamModeFilter::filter(), FWFFService::postBeginRun(), EveService::postBeginRun(), and L1GtUtils::retrieveL1GtTriggerMenuLite().
bool Run::getByLabel | ( | std::string const & | label, |
std::string const & | productInstanceName, | ||
Handle< PROD > & | result | ||
) | const |
Definition at line 206 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), emptyString_, edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByLabel_(), moduleCallingContext_, PROD, provRecorder_, 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 224 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByLabel_(), edm::InputTag::instance(), edm::InputTag::label(), moduleCallingContext_, PROD, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
|
privatevirtual |
Implements edm::RunBase.
Definition at line 118 of file Run.cc.
References addToGotBranchIDs(), edm::PrincipalGetAdapter::getByLabel_(), h, edm::BasicHandle::isValid(), moduleCallingContext_, edm::BasicHandle::provenance(), and provRecorder_.
bool Run::getByToken | ( | EDGetToken | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 239 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by HLTPrescaleRecorder::beginRun(), pat::PATTriggerEventProducer::beginRun(), edm::GetterOfProducts< l1extra::L1EtMissParticleCollection >::fillHandles(), and PrescaleWeightProvider::initRun().
bool Run::getByToken | ( | EDGetTokenT< PROD > | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 254 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), edm::HandleBase::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), moduleCallingContext_, PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Definition at line 269 of file Run.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getManyByType(), moduleCallingContext_, PROD, provRecorder_, python.entryComment::results, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Referenced by GlobalHitsProdHistStripper::endRun().
Provenance Run::getProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 39 of file Run.cc.
References edm::Principal::getProvenance(), moduleCallingContext_, and runPrincipal().
RunIndex Run::index | ( | ) | const |
Definition at line 26 of file Run.cc.
References edm::RunPrincipal::index(), and runPrincipal().
Referenced by BeautifulSoup.PageElement::_invert().
|
inline |
Definition at line 135 of file Run.h.
References moduleCallingContext_.
Referenced by DQMEDAnalyzer::beginRun(), edm::PileUp::beginRun(), edm::PileUp::endRun(), and DQMEDAnalyzer::endRunSummary().
ProcessHistory const & Run::processHistory | ( | ) | const |
Definition at line 108 of file Run.cc.
References edm::PrincipalGetAdapter::processHistory(), and provRecorder_.
Referenced by EcalTrigPrimProducer::beginRun(), pat::PATTriggerEventProducer::beginRun(), MEtoMEComparitor::beginRun(), pat::PATTriggerProducer::beginRun(), and HLTConfigProvider::init().
ProcessHistoryID const & Run::processHistoryID | ( | ) | const |
Definition at line 103 of file Run.cc.
References edm::Principal::processHistoryID(), and runPrincipal().
|
inline |
Put a new product.
Definition at line 107 of file Run.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by AlpgenSource::beginRun(), MCatNLOSource::beginRun(), L1GtTriggerMenuLiteProducer::beginRunProduce(), ExternalLHEProducer::beginRunProduce(), edm::CosMuoGenProducer::endRunProduce(), edm::FlatBaseThetaGunProducer::endRunProduce(), edm::BeamHaloProducer::endRunProduce(), edm::BaseFlatGunProducer::endRunProduce(), LHEProducer::endRunProduce(), edm::GeneratorFilter< HAD, DEC >::endRunProduce(), HLTPrescaleRecorder::endRunProduce(), ConditionDumperInEdm::endRunProduce(), edm::HadronizerFilter< HAD, DEC >::endRunProduce(), TkLasBeamFitter::endRunProduce(), ExternalLHEProducer::endRunProduce(), GlobalHitsProdHist::endRunProduce(), LaserAlignment::endRunProduce(), and LumiProducer::endRunProduce().
void Run::put | ( | std::auto_ptr< PROD > | product, |
std::string const & | productInstanceName | ||
) |
Put a new product with a 'product instance name'.
Definition at line 175 of file Run.h.
References edm::PrincipalGetAdapter::getBranchDescription(), PROD, provRecorder_, putProducts(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and relativeConstraints::value.
|
inlineprivate |
|
inlineprivate |
|
inlinevirtual |
Implements edm::RunBase.
Definition at line 55 of file Run.h.
References aux_.
Referenced by edm::PileUp::beginRun(), L1GtUtils::getL1GtRunCache(), L1GtUtils::getL1GtTriggerMenuLiteInputTag(), and L1GtUtils::retrieveL1GtTriggerMenuLite().
|
private |
Definition at line 34 of file Run.cc.
References compareJSON::const, edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by cacheIdentifier(), commit_(), getAllProvenance(), getProvenance(), index(), and processHistoryID().
|
private |
Definition at line 29 of file Run.cc.
References edm::PrincipalGetAdapter::principal(), and provRecorder_.
|
inline |
Definition at line 48 of file Run.h.
References provRecorder_, and edm::PrincipalGetAdapter::setConsumer().
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::global::EDFilterBase::doBeginRun(), edm::global::EDProducerBase::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::global::EDFilterBase::doEndRun(), edm::global::EDProducerBase::doEndRun(), edm::stream::ProducingModuleAdaptor< T, M, B >::doEndRun(), edm::stream::EDAnalyzerAdaptor< T >::doEndRun(), edm::global::EDAnalyzerBase::doStreamBeginRun(), edm::global::EDFilterBase::doStreamBeginRun(), edm::global::EDProducerBase::doStreamBeginRun(), edm::global::EDAnalyzerBase::doStreamEndRun(), edm::global::EDFilterBase::doStreamEndRun(), edm::global::EDProducerBase::doStreamEndRun(), edm::stream::EDAnalyzerAdaptorBase::doStreamEndRun(), and edm::stream::ProducingModuleAdaptorBase< T >::doStreamEndRun().
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 165 of file Run.h.
Referenced by runAuxiliary().
|
staticprivate |
Definition at line 170 of file Run.h.
Referenced by getByLabel().
|
mutableprivate |
Definition at line 167 of file Run.h.
Referenced by addToGotBranchIDs().
|
private |
Definition at line 168 of file Run.h.
Referenced by getByLabel(), getByLabelImpl(), getByToken(), getManyByType(), getProvenance(), and moduleCallingContext().
|
private |
Definition at line 163 of file Run.h.
Referenced by getByLabel(), getByLabelImpl(), getByToken(), getManyByType(), processHistory(), put(), runPrincipal(), and setConsumer().
|
private |
Definition at line 164 of file Run.h.
Referenced by putProducts(), and ~Run().