#include <LuminosityBlock.h>
Public Types | |
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 |
Run const & | getRun () const |
LuminosityBlockIndex | index () const |
void | labelsForToken (EDGetToken const &iToken, ProductLabels &oLabels) const |
LuminosityBlock (LuminosityBlockPrincipal &lbp, ModuleDescription const &md, ModuleCallingContext const *) | |
LuminosityBlockAuxiliary const & | luminosityBlockAuxiliary () 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::unique_ptr< PROD > product) |
template<typename PROD > | |
void | put (std::auto_ptr< PROD > product, std::string const &productInstanceName) |
Put a new product with a 'product instance name'. More... | |
template<typename PROD > | |
void | put (std::unique_ptr< PROD > product, std::string const &productInstanceName) |
void | setConsumer (EDConsumerBase const *iConsumer) |
void | setSharedResourcesAcquirer (SharedResourcesAcquirer *iResourceAcquirer) |
~LuminosityBlock () | |
Public Member Functions inherited from edm::LuminosityBlockBase | |
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<class T > | |
bool | getByLabel (const InputTag &tag, Handle< T > &result) const |
LuminosityBlockID | id () const |
LuminosityBlockNumber_t | luminosityBlock () const |
LuminosityBlockBase () | |
RunNumber_t | run () const |
virtual | ~LuminosityBlockBase () |
Private Types | |
typedef std::set< BranchID > | BranchIDSet |
typedef std::vector< std::pair < std::unique_ptr< WrapperBase > , 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 |
LuminosityBlockPrincipal const & | luminosityBlockPrincipal () const |
LuminosityBlockPrincipal & | luminosityBlockPrincipal () |
ProductPtrVec & | putProducts () |
ProductPtrVec const & | putProducts () const |
Private Attributes | |
LuminosityBlockAuxiliary const & | aux_ |
BranchIDSet | gotBranchIDs_ |
ModuleCallingContext const * | moduleCallingContext_ |
PrincipalGetAdapter | provRecorder_ |
ProductPtrVec | putProducts_ |
std::shared_ptr< Run const > const | run_ |
Static Private Attributes | |
static const std::string | emptyString_ |
Friends | |
class | InputSource |
class | ProducerBase |
class | RawInputSource |
template<typename T > | |
class | stream::ProducingModuleAdaptorBase |
Definition at line 45 of file LuminosityBlock.h.
|
private |
Definition at line 170 of file LuminosityBlock.h.
typedef unsigned long edm::LuminosityBlock::CacheIdentifier_t |
If you are caching data from the LuminosityBlock, you should also keep this number. If this number changes then you know that the data you have cached is invalid. The value of '0' will never be returned so you can use that to denote that you have not yet checked the value.
Definition at line 64 of file LuminosityBlock.h.
|
private |
Definition at line 149 of file LuminosityBlock.h.
LuminosityBlock::LuminosityBlock | ( | LuminosityBlockPrincipal & | lbp, |
ModuleDescription const & | md, | ||
ModuleCallingContext const * | moduleCallingContext | ||
) |
Definition at line 11 of file LuminosityBlock.cc.
LuminosityBlock::~LuminosityBlock | ( | ) |
Definition at line 19 of file LuminosityBlock.cc.
|
private |
Definition at line 92 of file LuminosityBlock.cc.
References edm::Provenance::branchID(), and gotBranchIDs_.
Referenced by getByLabelImpl().
LuminosityBlock::CacheIdentifier_t LuminosityBlock::cacheIdentifier | ( | ) | const |
Definition at line 28 of file LuminosityBlock.cc.
References edm::Principal::cacheIdentifier(), and luminosityBlockPrincipal().
|
private |
Definition at line 67 of file LuminosityBlock.cc.
References begin, end, luminosityBlockPrincipal(), edm::LuminosityBlockPrincipal::put(), and putProducts().
Referenced by edm::stream::ProducingModuleAdaptorBase< EDProducerBase >::commit(), edm::InputSource::doBeginLumi(), and edm::InputSource::doEndLumi().
void LuminosityBlock::getAllProvenance | ( | std::vector< Provenance const * > & | provenances | ) | const |
Definition at line 62 of file LuminosityBlock.cc.
References edm::Principal::getAllProvenance(), and luminosityBlockPrincipal().
bool LuminosityBlock::getByLabel | ( | std::string const & | label, |
Handle< PROD > & | result | ||
) | const |
Definition at line 210 of file LuminosityBlock.h.
References emptyString_.
Referenced by LogErrorEventFilter::beginLuminosityBlock(), pat::PATTriggerProducer::beginLuminosityBlock(), LumiCalculator::endLuminosityBlock(), and edm::service::RandomNumberGeneratorService::readFromLuminosityBlock().
bool LuminosityBlock::getByLabel | ( | std::string const & | label, |
std::string const & | productInstanceName, | ||
Handle< PROD > & | result | ||
) | const |
Definition at line 216 of file LuminosityBlock.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 LuminosityBlock::getByLabel | ( | InputTag const & | tag, |
Handle< PROD > & | result | ||
) | const |
same as above, but using the InputTag class
Definition at line 234 of file LuminosityBlock.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::LuminosityBlockBase.
Definition at line 97 of file LuminosityBlock.cc.
References addToGotBranchIDs(), edm::PrincipalGetAdapter::getByLabel_(), h, edm::BasicHandle::isValid(), moduleCallingContext_, edm::BasicHandle::provenance(), and provRecorder_.
bool LuminosityBlock::getByToken | ( | EDGetToken | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 249 of file LuminosityBlock.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 EventHeader::analyze(), StudyHLT::analyze(), TrackCount::analyze(), IsoTrig::analyze(), IsoTrackCalib::analyze(), L1GtAnalyzer::analyzeConditionsInLumiBlock(), HLTPrescaleRecorder::beginLuminosityBlock(), pat::PATTriggerEventProducer::beginLuminosityBlock(), FTSLuminosityFromLumiSummary::doStreamBeginLuminosityBlock_(), GenFilterEfficiencyAnalyzer::endLuminosityBlock(), DQMLumiMonitor::endLuminosityBlock(), GenXSecAnalyzer::endLuminosityBlock(), VertexHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), edm::GetterOfProducts< trigger::HLTPrescaleTable >::fillHandles(), EDMtoMEConverter::Tokens< T >::getData(), GetLumi::getRawValue(), and AlcaBeamSpotManager::readLumi().
bool LuminosityBlock::getByToken | ( | EDGetTokenT< PROD > | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 264 of file LuminosityBlock.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().
void LuminosityBlock::getManyByType | ( | std::vector< Handle< PROD > > & | results | ) | const |
Definition at line 280 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getManyByType(), moduleCallingContext_, PROD, provRecorder_, python.entryComment::results, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Provenance LuminosityBlock::getProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 57 of file LuminosityBlock.cc.
References edm::Principal::getProvenance(), luminosityBlockPrincipal(), and moduleCallingContext_.
|
inline |
Definition at line 102 of file LuminosityBlock.h.
References run_.
Referenced by LumiCalculator::endLuminosityBlock(), and edm::Event::getRun().
LuminosityBlockIndex LuminosityBlock::index | ( | ) | const |
Definition at line 23 of file LuminosityBlock.cc.
References edm::LuminosityBlockPrincipal::index(), and luminosityBlockPrincipal().
Referenced by BeautifulSoup.PageElement::_invert(), edm::CosMuoGenProducer::beginLuminosityBlock(), edm::BeamHaloProducer::beginLuminosityBlock(), gen::Pythia6Gun::beginLuminosityBlock(), edm::GeneratorFilter< HAD, DEC >::beginLuminosityBlock(), EcalDigiProducer::beginLuminosityBlock(), edm::HadronizerFilter< HAD, DEC >::beginLuminosityBlock(), RandomEngineStateProducer::globalBeginLuminosityBlockProduce(), edm::service::RandomNumberGeneratorService::preBeginLumi(), and edm::service::RandomNumberGeneratorService::readFromLuminosityBlock().
|
inline |
Definition at line 137 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::labelsForToken(), and provRecorder_.
|
inlinevirtual |
Implements edm::LuminosityBlockBase.
Definition at line 52 of file LuminosityBlock.h.
References aux_.
Referenced by edm::PileUp::beginLuminosityBlock(), PixelLumiDQM::beginLuminosityBlock(), and PixelLumiDQM::endLuminosityBlock().
|
private |
Definition at line 52 of file LuminosityBlock.cc.
References compareJSON::const, edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by cacheIdentifier(), commit_(), getAllProvenance(), getProvenance(), index(), and processHistoryID().
|
private |
Definition at line 32 of file LuminosityBlock.cc.
References edm::PrincipalGetAdapter::principal(), and provRecorder_.
|
inline |
Definition at line 135 of file LuminosityBlock.h.
References moduleCallingContext_.
Referenced by edm::PileUp::beginLuminosityBlock(), edm::PileUp::endLuminosityBlock(), and DQMEDAnalyzer::endLuminosityBlockSummary().
ProcessHistory const & LuminosityBlock::processHistory | ( | ) | const |
Definition at line 87 of file LuminosityBlock.cc.
References edm::PrincipalGetAdapter::processHistory(), and provRecorder_.
ProcessHistoryID const & LuminosityBlock::processHistoryID | ( | ) | const |
Definition at line 82 of file LuminosityBlock.cc.
References luminosityBlockPrincipal(), and edm::Principal::processHistoryID().
|
inline |
Put a new product.
Definition at line 109 of file LuminosityBlock.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LumiProducer::beginLuminosityBlockProduce(), AlcaBeamSpotFromDB::endLuminosityBlockProduce(), AlcaBeamSpotProducer::endLuminosityBlockProduce(), EventCountProducer::endLuminosityBlockProduce(), LogErrorEventFilter::endLuminosityBlockProduce(), GenFilterEfficiencyProducer::endLuminosityBlockProduce(), ConditionDumperInEdm::endLuminosityBlockProduce(), HLTPrescaleRecorder::endLuminosityBlockProduce(), edm::GeneratorFilter< HAD, DEC >::endLuminosityBlockProduce(), edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce(), RandomEngineStateProducer::globalBeginLuminosityBlockProduce(), put(), ExpressLumiProducer::writeEmptyProductForEntry(), ExpressLumiProducer::writeProductsForEntry(), and LumiProducer::writeProductsForEntry().
|
inline |
Definition at line 113 of file LuminosityBlock.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
void LuminosityBlock::put | ( | std::auto_ptr< PROD > | product, |
std::string const & | productInstanceName | ||
) |
Put a new product with a 'product instance name'.
Definition at line 179 of file LuminosityBlock.h.
References put().
void LuminosityBlock::put | ( | std::unique_ptr< PROD > | product, |
std::string const & | productInstanceName | ||
) |
Definition at line 185 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::getBranchDescription(), PROD, provRecorder_, putProducts(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and relativeConstraints::value.
|
inlineprivate |
Definition at line 150 of file LuminosityBlock.h.
References putProducts_.
Referenced by commit_(), and put().
|
inlineprivate |
void LuminosityBlock::setConsumer | ( | EDConsumerBase const * | iConsumer | ) |
Definition at line 37 of file LuminosityBlock.cc.
References provRecorder_, run_, and edm::PrincipalGetAdapter::setConsumer().
Referenced by edm::EDAnalyzer::doBeginLuminosityBlock(), edm::EDProducer::doBeginLuminosityBlock(), edm::EDFilter::doBeginLuminosityBlock(), edm::one::EDFilterBase::doBeginLuminosityBlock(), edm::one::EDProducerBase::doBeginLuminosityBlock(), edm::one::EDAnalyzerBase::doBeginLuminosityBlock(), edm::global::EDAnalyzerBase::doBeginLuminosityBlock(), edm::global::EDFilterBase::doBeginLuminosityBlock(), edm::global::EDProducerBase::doBeginLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doBeginLuminosityBlock(), edm::stream::ProducingModuleAdaptor< T, M, B >::doBeginLuminosityBlock(), edm::EDAnalyzer::doEndLuminosityBlock(), edm::EDProducer::doEndLuminosityBlock(), edm::EDFilter::doEndLuminosityBlock(), edm::one::EDFilterBase::doEndLuminosityBlock(), edm::one::EDProducerBase::doEndLuminosityBlock(), edm::one::EDAnalyzerBase::doEndLuminosityBlock(), edm::global::EDAnalyzerBase::doEndLuminosityBlock(), edm::global::EDFilterBase::doEndLuminosityBlock(), edm::global::EDProducerBase::doEndLuminosityBlock(), edm::stream::EDAnalyzerAdaptor< T >::doEndLuminosityBlock(), edm::stream::ProducingModuleAdaptor< T, M, B >::doEndLuminosityBlock(), edm::global::EDAnalyzerBase::doStreamBeginLuminosityBlock(), edm::global::EDFilterBase::doStreamBeginLuminosityBlock(), edm::global::EDProducerBase::doStreamBeginLuminosityBlock(), edm::global::EDAnalyzerBase::doStreamEndLuminosityBlock(), edm::global::EDFilterBase::doStreamEndLuminosityBlock(), edm::global::EDProducerBase::doStreamEndLuminosityBlock(), edm::stream::EDAnalyzerAdaptorBase::doStreamEndLuminosityBlock(), and edm::stream::ProducingModuleAdaptorBase< T >::doStreamEndLuminosityBlock().
void LuminosityBlock::setSharedResourcesAcquirer | ( | SharedResourcesAcquirer * | iResourceAcquirer | ) |
Definition at line 45 of file LuminosityBlock.cc.
References provRecorder_, run_, and edm::PrincipalGetAdapter::setSharedResourcesAcquirer().
|
friend |
Definition at line 157 of file LuminosityBlock.h.
|
friend |
Definition at line 159 of file LuminosityBlock.h.
|
friend |
Definition at line 158 of file LuminosityBlock.h.
|
friend |
Definition at line 160 of file LuminosityBlock.h.
|
private |
Definition at line 168 of file LuminosityBlock.h.
Referenced by luminosityBlockAuxiliary().
|
staticprivate |
Definition at line 174 of file LuminosityBlock.h.
Referenced by getByLabel().
|
mutableprivate |
Definition at line 171 of file LuminosityBlock.h.
Referenced by addToGotBranchIDs().
|
private |
Definition at line 172 of file LuminosityBlock.h.
Referenced by getByLabel(), getByLabelImpl(), getByToken(), getManyByType(), getProvenance(), and moduleCallingContext().
|
private |
Definition at line 166 of file LuminosityBlock.h.
Referenced by getByLabel(), getByLabelImpl(), getByToken(), getManyByType(), labelsForToken(), luminosityBlockPrincipal(), processHistory(), put(), setConsumer(), and setSharedResourcesAcquirer().
|
private |
Definition at line 167 of file LuminosityBlock.h.
Referenced by putProducts().
|
private |
Definition at line 169 of file LuminosityBlock.h.
Referenced by getRun(), setConsumer(), and setSharedResourcesAcquirer().