#include <LuminosityBlock.h>
Public Member Functions | |
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 |
LuminosityBlock (LuminosityBlockPrincipal &lbp, ModuleDescription const &md) | |
LuminosityBlockAuxiliary const & | luminosityBlockAuxiliary () 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... | |
void | setConsumer (EDConsumerBase const *iConsumer) |
~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 < WrapperOwningHolder, ConstBranchDescription 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_ |
PrincipalGetAdapter | provRecorder_ |
ProductPtrVec | putProducts_ |
boost::shared_ptr< Run const > const | run_ |
Static Private Attributes | |
static const std::string | emptyString_ |
Friends | |
class | DaqSource |
class | InputSource |
class | ProducerBase |
class | RawInputSource |
Definition at line 41 of file LuminosityBlock.h.
|
private |
Definition at line 135 of file LuminosityBlock.h.
|
private |
Definition at line 115 of file LuminosityBlock.h.
LuminosityBlock::LuminosityBlock | ( | LuminosityBlockPrincipal & | lbp, |
ModuleDescription const & | md | ||
) |
Definition at line 11 of file LuminosityBlock.cc.
LuminosityBlock::~LuminosityBlock | ( | ) |
Definition at line 17 of file LuminosityBlock.cc.
References edm::for_all(), and putProducts_.
|
private |
Definition at line 79 of file LuminosityBlock.cc.
References edm::Provenance::branchID(), and gotBranchIDs_.
Referenced by getByLabelImpl().
|
private |
Definition at line 52 of file LuminosityBlock.cc.
References begin, end, luminosityBlockPrincipal(), edm::LuminosityBlockPrincipal::put(), and putProducts().
Referenced by edm::InputSource::doBeginLumi(), and edm::InputSource::doEndLumi().
void LuminosityBlock::getAllProvenance | ( | std::vector< Provenance const * > & | provenances | ) | const |
Definition at line 47 of file LuminosityBlock.cc.
References edm::Principal::getAllProvenance(), and luminosityBlockPrincipal().
bool LuminosityBlock::getByLabel | ( | std::string const & | label, |
Handle< PROD > & | result | ||
) | const |
Definition at line 168 of file LuminosityBlock.h.
References emptyString_.
Referenced by EventHeader::analyze(), StudyHLT::analyze(), IsoTrig::analyze(), L1GtAnalyzer::analyzeConditionsInLumiBlock(), LogErrorEventFilter::beginLuminosityBlock(), HLTPrescaleRecorder::beginLuminosityBlock(), pat::PATTriggerEventProducer::beginLuminosityBlock(), pat::PATTriggerProducer::beginLuminosityBlock(), DQMLumiMonitor::endLuminosityBlock(), GenFilterEfficiencyAnalyzer::endLuminosityBlock(), LumiCalculator::endLuminosityBlock(), BPhysicsOniaDQM::endLuminosityBlock(), VertexHistogramMaker::fill(), DigiLumiCorrHistogramMaker::fill(), edm::GetterOfProducts< l1extra::L1EtMissParticleCollection >::fillHandles(), GetLumi::getRawValue(), edm::service::RandomNumberGeneratorService::readFromLuminosityBlock(), and AlcaBeamSpotManager::readLumi().
bool LuminosityBlock::getByLabel | ( | std::string const & | label, |
std::string const & | productInstanceName, | ||
Handle< PROD > & | result | ||
) | const |
Definition at line 174 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), emptyString_, edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getByLabel_(), 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 192 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getByLabel_(), edm::InputTag::instance(), edm::InputTag::label(), PROD, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
|
privatevirtual |
Implements edm::LuminosityBlockBase.
Definition at line 84 of file LuminosityBlock.cc.
References addToGotBranchIDs(), edm::PrincipalGetAdapter::getByLabel_(), h, edm::BasicHandle::isValid(), edm::BasicHandle::provenance(), and provRecorder_.
bool LuminosityBlock::getByToken | ( | EDGetToken | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 207 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
bool LuminosityBlock::getByToken | ( | EDGetTokenT< PROD > | token, |
Handle< PROD > & | result | ||
) | const |
Definition at line 222 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::HandleBase::clear(), edm::convert_handle(), edm::BasicHandle::failedToGet(), edm::PrincipalGetAdapter::getByToken_(), PROD, edm::PRODUCT_TYPE, provRecorder_, and edm::principal_get_adapter_detail::throwOnPrematureRead().
void LuminosityBlock::getManyByType | ( | std::vector< Handle< PROD > > & | results | ) | const |
Definition at line 238 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::checkIfComplete(), edm::PrincipalGetAdapter::getManyByType(), PROD, provRecorder_, python.entryComment::results, and edm::principal_get_adapter_detail::throwOnPrematureRead().
Provenance LuminosityBlock::getProvenance | ( | BranchID const & | theID | ) | const |
Definition at line 42 of file LuminosityBlock.cc.
References edm::Principal::getProvenance(), and luminosityBlockPrincipal().
|
inline |
Definition at line 80 of file LuminosityBlock.h.
References run_.
Referenced by LumiCalculator::endLuminosityBlock(), and edm::Event::getRun().
|
inlinevirtual |
Implements edm::LuminosityBlockBase.
Definition at line 47 of file LuminosityBlock.h.
References aux_.
|
private |
Definition at line 37 of file LuminosityBlock.cc.
References compareJSON::const, edm::PrincipalGetAdapter::principal(), and provRecorder_.
Referenced by commit_(), getAllProvenance(), getProvenance(), and processHistoryID().
|
private |
Definition at line 24 of file LuminosityBlock.cc.
References edm::PrincipalGetAdapter::principal(), and provRecorder_.
ProcessHistory const & LuminosityBlock::processHistory | ( | ) | const |
Definition at line 74 of file LuminosityBlock.cc.
References edm::PrincipalGetAdapter::processHistory(), and provRecorder_.
ProcessHistoryID const & LuminosityBlock::processHistoryID | ( | ) | const |
Definition at line 69 of file LuminosityBlock.cc.
References luminosityBlockPrincipal(), and edm::Principal::processHistoryID().
|
inline |
Put a new product.
Definition at line 87 of file LuminosityBlock.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by RandomEngineStateProducer::beginLuminosityBlockProduce(), LumiProducer::beginLuminosityBlockProduce(), AlcaBeamSpotFromDB::endLuminosityBlockProduce(), AlcaBeamSpotProducer::endLuminosityBlockProduce(), EventCountProducer::endLuminosityBlockProduce(), LogErrorEventFilter::endLuminosityBlockProduce(), GenFilterEfficiencyProducer::endLuminosityBlockProduce(), HLTPrescaleRecorder::endLuminosityBlockProduce(), ConditionDumperInEdm::endLuminosityBlockProduce(), ExpressLumiProducer::writeEmptyProductForEntry(), ExpressLumiProducer::writeProductsForEntry(), and LumiProducer::writeProductsForEntry().
void LuminosityBlock::put | ( | std::auto_ptr< PROD > | product, |
std::string const & | productInstanceName | ||
) |
Put a new product with a 'product instance name'.
Definition at line 143 of file LuminosityBlock.h.
References edm::PrincipalGetAdapter::getBranchDescription(), PROD, provRecorder_, putProducts(), edm::principal_get_adapter_detail::throwOnPutOfNullProduct(), and relativeConstraints::value.
|
inlineprivate |
Definition at line 116 of file LuminosityBlock.h.
References putProducts_.
Referenced by commit_(), and put().
|
inlineprivate |
void LuminosityBlock::setConsumer | ( | EDConsumerBase const * | iConsumer | ) |
Definition at line 29 of file LuminosityBlock.cc.
References provRecorder_, run_, and edm::PrincipalGetAdapter::setConsumer().
Referenced by edm::EDAnalyzer::doBeginLuminosityBlock(), edm::EDProducer::doBeginLuminosityBlock(), edm::EDFilter::doBeginLuminosityBlock(), edm::one::EDProducerBase::doBeginLuminosityBlock(), edm::one::EDFilterBase::doBeginLuminosityBlock(), edm::EDAnalyzer::doEndLuminosityBlock(), edm::EDProducer::doEndLuminosityBlock(), edm::EDFilter::doEndLuminosityBlock(), edm::one::EDFilterBase::doEndLuminosityBlock(), and edm::one::EDProducerBase::doEndLuminosityBlock().
|
friend |
Definition at line 124 of file LuminosityBlock.h.
|
friend |
Definition at line 123 of file LuminosityBlock.h.
|
friend |
Definition at line 126 of file LuminosityBlock.h.
|
friend |
Definition at line 125 of file LuminosityBlock.h.
|
private |
Definition at line 133 of file LuminosityBlock.h.
Referenced by luminosityBlockAuxiliary().
|
staticprivate |
Definition at line 138 of file LuminosityBlock.h.
Referenced by getByLabel().
|
mutableprivate |
Definition at line 136 of file LuminosityBlock.h.
Referenced by addToGotBranchIDs().
|
private |
Definition at line 131 of file LuminosityBlock.h.
Referenced by getByLabel(), getByLabelImpl(), getByToken(), getManyByType(), luminosityBlockPrincipal(), processHistory(), put(), and setConsumer().
|
private |
Definition at line 132 of file LuminosityBlock.h.
Referenced by putProducts(), and ~LuminosityBlock().
|
private |
Definition at line 134 of file LuminosityBlock.h.
Referenced by getRun(), and setConsumer().