#include <Provenance.h>
Public Member Functions | |
std::set< std::string > const & | branchAliases () const |
BranchDescription const & | branchDescription () const |
BranchID const & | branchID () const |
std::string const & | branchName () const |
std::string const & | className () const |
ConstBranchDescription const & | constBranchDescription () const |
boost::shared_ptr < ConstBranchDescription > const & | constBranchDescriptionPtr () const |
Parentage const & | event () const |
std::string const & | friendlyClassName () const |
std::string const & | moduleLabel () const |
std::string | moduleName () const |
std::map < ProcessConfigurationID, std::string > const & | moduleNames () const |
std::map < ProcessConfigurationID, ParameterSetID > const & | parameterSetIDs () const |
Parentage const & | parentage () const |
std::vector< BranchID > const & | parents () const |
ProcessConfigurationID | processConfigurationID () const |
ProcessHistoryID const & | processHistoryID () const |
std::string const & | processName () const |
BranchDescription const & | product () const |
ProductID const & | productID () const |
std::string const & | productInstanceName () const |
ProductProvenance * | productProvenance () const |
bool | productProvenanceValid () const |
Provenance (boost::shared_ptr< ConstBranchDescription > const &p, ProductID const &pid) | |
Provenance () | |
ParameterSetID | psetID () const |
ReleaseVersion | releaseVersion () const |
void | resetProductProvenance () const |
ProductProvenance * | resolve () const |
void | setBranchDescription (boost::shared_ptr< ConstBranchDescription > const &p) |
void | setProcessHistoryID (ProcessHistoryID const &phid) |
void | setProductID (ProductID const &pid) |
void | setProductProvenance (ProductProvenance const &prov) const |
void | setStore (boost::shared_ptr< BranchMapper > store) const |
boost::shared_ptr < BranchMapper > const & | store () const |
void | swap (Provenance &) |
void | write (std::ostream &os) const |
Private Attributes | |
boost::shared_ptr < ConstBranchDescription > | branchDescription_ |
ProcessHistoryID const * | processHistoryID_ |
ProductID | productID_ |
boost::shared_ptr < ProductProvenance > | productProvenancePtr_ |
bool | productProvenanceValid_ |
boost::shared_ptr< BranchMapper > | store_ |
Definition at line 37 of file Provenance.h.
edm::Provenance::Provenance | ( | ) |
Definition at line 15 of file Provenance.cc.
: Provenance{boost::shared_ptr<ConstBranchDescription>(), ProductID()} {
edm::Provenance::Provenance | ( | boost::shared_ptr< ConstBranchDescription > const & | p, |
ProductID const & | pid | ||
) |
std::set<std::string> const& edm::Provenance::branchAliases | ( | ) | const [inline] |
Definition at line 78 of file Provenance.h.
References edm::BranchDescription::branchAliases(), and product().
{return product().branchAliases();}
BranchDescription const& edm::Provenance::branchDescription | ( | ) | const [inline] |
Definition at line 46 of file Provenance.h.
References branchDescription_.
Referenced by FWFFMetadataManager::doUpdate().
{return branchDescription_->me();}
BranchID const& edm::Provenance::branchID | ( | ) | const [inline] |
Definition at line 59 of file Provenance.h.
References edm::BranchDescription::branchID(), and product().
Referenced by edm::Event::addToGotBranchIDs(), edm::LuminosityBlock::addToGotBranchIDs(), and edm::Run::addToGotBranchIDs().
{return product().branchID();}
std::string const& edm::Provenance::branchName | ( | ) | const [inline] |
Definition at line 60 of file Provenance.h.
References edm::BranchDescription::branchName(), and product().
Referenced by HLTJetTag< T >::hltFilter().
{return product().branchName();}
std::string const& edm::Provenance::className | ( | ) | const [inline] |
Definition at line 61 of file Provenance.h.
References edm::BranchDescription::className(), and product().
{return product().className();}
ConstBranchDescription const& edm::Provenance::constBranchDescription | ( | ) | const [inline] |
Definition at line 47 of file Provenance.h.
References branchDescription_.
Referenced by HLTJetTag< T >::hltFilter().
{return *branchDescription_;}
boost::shared_ptr<ConstBranchDescription> const& edm::Provenance::constBranchDescriptionPtr | ( | ) | const [inline] |
Definition at line 48 of file Provenance.h.
References branchDescription_.
Referenced by edm::ProductData::branchDescription().
{return branchDescription_;}
Parentage const& edm::Provenance::event | ( | ) | const [inline] |
std::string const& edm::Provenance::friendlyClassName | ( | ) | const [inline] |
Definition at line 65 of file Provenance.h.
References edm::BranchDescription::friendlyClassName(), and product().
{return product().friendlyClassName();}
std::string const& edm::Provenance::moduleLabel | ( | ) | const [inline] |
Definition at line 62 of file Provenance.h.
References edm::BranchDescription::moduleLabel(), and product().
Referenced by TriggerSummaryProducerAOD::fillFilterObjectMembers(), TriggerSummaryProducerAOD::fillTriggerObjectCollections(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), EcalDeadCellTriggerPrimitiveFilter::loadEventInfoForFilter(), PFCandidateMixer::mix(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::produce(), reco::modules::DuplicateListMerger::produce(), and L3TkMuonProducer::produce().
{return product().moduleLabel();}
std::string edm::Provenance::moduleName | ( | ) | const |
Definition at line 88 of file Provenance.cc.
References relativeConstraints::empty, end, edm::BranchDescription::moduleName(), moduleNames(), processConfigurationID(), product(), findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.
{ if (!product().moduleName().empty()) { return product().moduleName(); } if (moduleNames().size() == 1) { return moduleNames().begin()->second; } std::map<ProcessConfigurationID, std::string>::const_iterator it = moduleNames().find(processConfigurationID()); if (it == moduleNames().end()) { return std::string(); } return it->second; }
std::map<ProcessConfigurationID, std::string> const& edm::Provenance::moduleNames | ( | ) | const [inline] |
Definition at line 75 of file Provenance.h.
References edm::BranchDescription::moduleNames(), and product().
Referenced by moduleName(), and processConfigurationID().
{ return product().moduleNames(); }
std::map<ProcessConfigurationID, ParameterSetID> const& edm::Provenance::parameterSetIDs | ( | ) | const [inline] |
Definition at line 72 of file Provenance.h.
References edm::BranchDescription::parameterSetIDs(), and product().
Referenced by processConfigurationID(), and psetID().
{ return product().parameterSetIDs(); }
Parentage const& edm::Provenance::parentage | ( | ) | const [inline] |
Definition at line 58 of file Provenance.h.
References edm::ProductProvenance::parentage(), and productProvenance().
Referenced by event(), and parents().
{return productProvenance()->parentage();}
std::vector<BranchID> const& edm::Provenance::parents | ( | ) | const [inline] |
Definition at line 80 of file Provenance.h.
References parentage(), and edm::Parentage::parents().
{return parentage().parents();}
ProcessConfigurationID edm::Provenance::processConfigurationID | ( | ) | const |
Definition at line 43 of file Provenance.cc.
References HDQMDatabaseProducer::config, edm::ProcessHistory::getConfigurationForProcess(), edm::detail::ThreadSafeRegistry< KEY, T, E >::getMapped(), edm::ProcessConfiguration::id(), instance, moduleNames(), parameterSetIDs(), processHistoryID(), processName(), and findQualityFiles::size.
Referenced by moduleName(), psetID(), and releaseVersion().
{ if (parameterSetIDs().size() == 1) { return parameterSetIDs().begin()->first; } if (moduleNames().size() == 1) { return moduleNames().begin()->first; } // Get the ProcessHistory for this event. ProcessHistoryRegistry* phr = ProcessHistoryRegistry::instance(); ProcessHistory ph; if (!phr->getMapped(processHistoryID(), ph)) { return ProcessConfigurationID(); } ProcessConfiguration config; if (!ph.getConfigurationForProcess(processName(), config)) { return ProcessConfigurationID(); } return config.id(); }
ProcessHistoryID const& edm::Provenance::processHistoryID | ( | ) | const [inline] |
Definition at line 67 of file Provenance.h.
References processHistoryID_.
Referenced by processConfigurationID(), and edm::SubProcess::propagateProducts().
{return *processHistoryID_;}
std::string const& edm::Provenance::processName | ( | ) | const [inline] |
Definition at line 63 of file Provenance.h.
References edm::BranchDescription::processName(), and product().
Referenced by TriggerSummaryProducerAOD::fillFilterObjectMembers(), TriggerSummaryProducerAOD::fillTriggerObjectCollections(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), PFCandidateMixer::mix(), processConfigurationID(), cms::TrackListMerger::produce(), cms::SimpleTrackListMerger::produce(), reco::modules::DuplicateListMerger::produce(), and L3TkMuonProducer::produce().
{return product().processName();}
BranchDescription const& edm::Provenance::product | ( | ) | const [inline] |
Definition at line 44 of file Provenance.h.
References branchDescription_.
Referenced by branchAliases(), branchID(), branchName(), className(), friendlyClassName(), edm::ProductData::getInterface(), moduleLabel(), moduleName(), moduleNames(), edm::operator==(), parameterSetIDs(), processName(), productInstanceName(), psetID(), and write().
{return branchDescription_->me();}
ProductID const& edm::Provenance::productID | ( | ) | const [inline] |
Definition at line 88 of file Provenance.h.
References productID_.
Referenced by edm::HandleBase::id(), edm::Handle< GenericObject >::id(), edm::Handle< FWGenericObject >::id(), edm::BasicHandle::id(), edm::ProductHolderBase::productID(), and edm::SubProcess::propagateProducts().
{return productID_;}
std::string const& edm::Provenance::productInstanceName | ( | ) | const [inline] |
Definition at line 64 of file Provenance.h.
References product(), and edm::BranchDescription::productInstanceName().
Referenced by TriggerSummaryProducerAOD::fillFilterObjectMembers(), TriggerSummaryProducerAOD::fillTriggerObjectCollections(), HLTDoubletDZ< T1, T2 >::hltFilter(), HLTDoublet< T1, T2 >::hltFilter(), PFCandidateMixer::mix(), cms::TrackListMerger::produce(), cms::SimpleTrackListMerger::produce(), reco::modules::DuplicateListMerger::produce(), and L3TkMuonProducer::produce().
{return product().productInstanceName();}
ProductProvenance* edm::Provenance::productProvenance | ( | ) | const [inline] |
Definition at line 51 of file Provenance.h.
References productProvenancePtr_, productProvenanceValid_, and resolve().
Referenced by parentage(), edm::InputProductHolder::productProvenancePtr_(), edm::ProducedProductHolder::productProvenancePtr_(), edm::AliasProductHolder::productProvenancePtr_(), edm::SubProcess::propagateProducts(), and write().
{ if (productProvenanceValid_) return productProvenancePtr_.get(); return resolve(); }
bool edm::Provenance::productProvenanceValid | ( | ) | const [inline] |
Definition at line 55 of file Provenance.h.
References productProvenanceValid_.
Referenced by edm::SubProcess::propagateProducts().
{ return productProvenanceValid_; }
ParameterSetID edm::Provenance::psetID | ( | ) | const |
Definition at line 72 of file Provenance.cc.
References end, edm::BranchDescription::parameterSetID(), parameterSetIDs(), processConfigurationID(), product(), and findQualityFiles::size.
Referenced by ClusterAnalyzer::analyze(), HLTInfo::analyze(), and EcalSelectiveReadoutProducer::getBinOfMax().
{ if (product().parameterSetID().isValid()) { return product().parameterSetID(); } if (parameterSetIDs().size() == 1) { return parameterSetIDs().begin()->second; } std::map<ProcessConfigurationID, ParameterSetID>::const_iterator it = parameterSetIDs().find(processConfigurationID()); if (it == parameterSetIDs().end()) { return ParameterSetID(); } return it->second; }
ReleaseVersion edm::Provenance::releaseVersion | ( | ) | const |
Definition at line 65 of file Provenance.cc.
References instance, processConfigurationID(), and edm::ProcessConfiguration::releaseVersion().
{ ProcessConfiguration pc; ProcessConfigurationRegistry::instance()->getMapped(processConfigurationID(), pc); return pc.releaseVersion(); }
void edm::Provenance::resetProductProvenance | ( | ) | const |
Definition at line 119 of file Provenance.cc.
References productProvenancePtr_, and productProvenanceValid_.
Referenced by edm::SubProcess::propagateProducts(), and edm::ProductData::resetProductData().
{ *productProvenancePtr_ = ProductProvenance(); productProvenanceValid_ = false; }
ProductProvenance * edm::Provenance::resolve | ( | ) | const |
Definition at line 28 of file Provenance.cc.
References branchDescription_, productProvenancePtr_, productProvenanceValid_, and store_.
Referenced by productProvenance().
{ if(!store_) { return 0; } if (!productProvenanceValid_) { ProductProvenance const* prov = store_->branchIDToProvenance(branchDescription_->branchID()); if (prov) { *productProvenancePtr_ = *prov; productProvenanceValid_ = true; } } return productProvenancePtr_.get(); }
void edm::Provenance::setBranchDescription | ( | boost::shared_ptr< ConstBranchDescription > const & | p | ) | [inline] |
Definition at line 96 of file Provenance.h.
References branchDescription_, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by edm::ProductData::resetBranchDescription().
{ branchDescription_ = p; }
void edm::Provenance::setProcessHistoryID | ( | ProcessHistoryID const & | phid | ) | [inline] |
Definition at line 86 of file Provenance.h.
References processHistoryID_.
Referenced by edm::SubProcess::propagateProducts(), edm::AliasProductHolder::setProcessHistoryID_(), edm::ProducedProductHolder::setProcessHistoryID_(), edm::InputProductHolder::setProcessHistoryID_(), edm::InputProductHolder::setProvenance_(), edm::ProducedProductHolder::setProvenance_(), and edm::AliasProductHolder::setProvenance_().
{processHistoryID_ = &phid;}
void edm::Provenance::setProductID | ( | ProductID const & | pid | ) | [inline] |
Definition at line 92 of file Provenance.h.
References evf::utils::pid, and productID_.
Referenced by edm::SubProcess::propagateProducts(), edm::InputProductHolder::setProvenance_(), edm::ProducedProductHolder::setProvenance_(), and edm::AliasProductHolder::setProvenance_().
{ productID_ = pid; }
void edm::Provenance::setProductProvenance | ( | ProductProvenance const & | prov | ) | const |
Definition at line 125 of file Provenance.cc.
References productProvenancePtr_, and productProvenanceValid_.
Referenced by edm::SubProcess::propagateProducts(), and edm::ProductHolderBase::setProductProvenance().
{ *productProvenancePtr_ = prov; productProvenanceValid_ = true; }
void edm::Provenance::setStore | ( | boost::shared_ptr< BranchMapper > | store | ) | const [inline] |
Definition at line 84 of file Provenance.h.
References store(), and store_.
Referenced by edm::SubProcess::propagateProducts(), edm::InputProductHolder::setProvenance_(), edm::ProducedProductHolder::setProvenance_(), and edm::AliasProductHolder::setProvenance_().
boost::shared_ptr<BranchMapper> const& edm::Provenance::store | ( | ) | const [inline] |
Definition at line 66 of file Provenance.h.
References store_.
Referenced by edm::SubProcess::propagateProducts(), and setStore().
{return store_;}
void edm::Provenance::swap | ( | Provenance & | iOther | ) |
Definition at line 131 of file Provenance.cc.
References branchDescription_, processHistoryID_, productID_, productProvenancePtr_, productProvenanceValid_, store_, and edm::ProductID::swap().
Referenced by edm::ProductData::swap().
{ branchDescription_.swap(iOther.branchDescription_); productID_.swap(iOther.productID_); std::swap(processHistoryID_, iOther.processHistoryID_); std::swap(productProvenanceValid_, iOther.productProvenanceValid_); productProvenancePtr_.swap(iOther.productProvenancePtr_); store_.swap(iOther.store_); }
void edm::Provenance::write | ( | std::ostream & | os | ) | const |
Definition at line 104 of file Provenance.cc.
References createTree::pp, product(), productProvenance(), edm::BranchDescription::write(), and edm::ProductProvenance::write().
Referenced by edm::operator<<().
{ // This is grossly inadequate, but it is not critical for the // first pass. product().write(os); ProductProvenance* pp = productProvenance(); if (pp != 0) { pp->write(os); } }
boost::shared_ptr<ConstBranchDescription> edm::Provenance::branchDescription_ [private] |
Definition at line 105 of file Provenance.h.
Referenced by branchDescription(), constBranchDescription(), constBranchDescriptionPtr(), product(), resolve(), setBranchDescription(), and swap().
ProcessHistoryID const* edm::Provenance::processHistoryID_ [private] |
Definition at line 107 of file Provenance.h.
Referenced by processHistoryID(), setProcessHistoryID(), and swap().
ProductID edm::Provenance::productID_ [private] |
Definition at line 106 of file Provenance.h.
Referenced by productID(), setProductID(), and swap().
boost::shared_ptr<ProductProvenance> edm::Provenance::productProvenancePtr_ [mutable, private] |
Definition at line 109 of file Provenance.h.
Referenced by productProvenance(), resetProductProvenance(), resolve(), setProductProvenance(), and swap().
bool edm::Provenance::productProvenanceValid_ [mutable, private] |
Definition at line 108 of file Provenance.h.
Referenced by productProvenance(), productProvenanceValid(), resetProductProvenance(), resolve(), setProductProvenance(), and swap().
boost::shared_ptr<BranchMapper> edm::Provenance::store_ [mutable, private] |
Definition at line 110 of file Provenance.h.
Referenced by resolve(), setStore(), store(), and swap().