CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::Provenance Class Reference

#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
 
std::shared_ptr< BranchDescription const > const & constBranchDescriptionPtr () const
 
std::string const & friendlyClassName () const
 
bool getProcessConfiguration (ProcessConfiguration &pc) const
 
std::string const & moduleLabel () const
 
std::string const & moduleName () const
 
BranchID const & originalBranchID () const
 
ProcessHistory const & processHistory () const
 
ProcessHistory const * processHistoryPtr () const
 
std::string const & processName () const
 
ProductID const & productID () const
 
std::string const & productInstanceName () const
 
ProductProvenance const * productProvenance () const
 
 Provenance ()
 
 Provenance (std::shared_ptr< BranchDescription const > const &p, ProductID const &pid)
 
 Provenance (StableProvenance const &)
 
ReleaseVersion releaseVersion () const
 
void setBranchDescription (std::shared_ptr< BranchDescription const > const &p)
 
void setProcessHistory (ProcessHistory const &ph)
 
void setProductID (ProductID const &pid)
 
void setStore (ProductProvenanceRetriever const *store)
 
StableProvenance const & stable () const
 
StableProvenancestable ()
 
ProductProvenanceRetriever const * store () const
 
void swap (Provenance &)
 
void write (std::ostream &os) const
 

Private Attributes

StableProvenance stableProvenance_
 
ProductProvenanceRetriever const * store_
 

Detailed Description

Definition at line 32 of file Provenance.h.

Constructor & Destructor Documentation

edm::Provenance::Provenance ( )

Definition at line 17 of file Provenance.cc.

17  : Provenance{StableProvenance()} {
18  }
edm::Provenance::Provenance ( std::shared_ptr< BranchDescription const > const &  p,
ProductID const &  pid 
)

Definition at line 20 of file Provenance.cc.

20  :
22  store_() {
23  }
ProductProvenanceRetriever const * store_
Definition: Provenance.h:90
StableProvenance stableProvenance_
Definition: Provenance.h:89
edm::Provenance::Provenance ( StableProvenance const &  stable)

Definition at line 25 of file Provenance.cc.

25  :
27  store_() {
28  }
StableProvenance const & stable() const
Definition: Provenance.h:40
ProductProvenanceRetriever const * store_
Definition: Provenance.h:90
StableProvenance stableProvenance_
Definition: Provenance.h:89

Member Function Documentation

std::set<std::string> const& edm::Provenance::branchAliases ( ) const
inline

Definition at line 60 of file Provenance.h.

References edm::StableProvenance::branchAliases(), and stable().

60 {return stable().branchAliases();}
std::set< std::string > const & branchAliases() const
StableProvenance const & stable() const
Definition: Provenance.h:40
BranchDescription const& edm::Provenance::branchDescription ( ) const
inline
BranchID const& edm::Provenance::branchID ( ) const
inline

Definition at line 47 of file Provenance.h.

References edm::StableProvenance::branchID(), and stable().

47 {return stable().branchID();}
StableProvenance const & stable() const
Definition: Provenance.h:40
BranchID const & branchID() const
std::string const& edm::Provenance::branchName ( ) const
inline

Definition at line 48 of file Provenance.h.

References edm::StableProvenance::branchName(), and stable().

Referenced by HLTJetTagWithMatching< T >::hltFilter(), and HLTJetTag< T >::hltFilter().

48 {return stable().branchName();}
StableProvenance const & stable() const
Definition: Provenance.h:40
std::string const & branchName() const
std::string const& edm::Provenance::className ( ) const
inline

Definition at line 49 of file Provenance.h.

References edm::StableProvenance::className(), and stable().

49 {return stable().className();}
std::string const & className() const
StableProvenance const & stable() const
Definition: Provenance.h:40
std::shared_ptr<BranchDescription const> const& edm::Provenance::constBranchDescriptionPtr ( ) const
inline

Definition at line 44 of file Provenance.h.

References edm::StableProvenance::constBranchDescriptionPtr(), productProvenance(), and stable().

Referenced by edm::ProductData::branchDescription(), and edm::getProducerParameterSet().

std::shared_ptr< BranchDescription const > const & constBranchDescriptionPtr() const
StableProvenance const & stable() const
Definition: Provenance.h:40
std::string const& edm::Provenance::friendlyClassName ( ) const
inline

Definition at line 54 of file Provenance.h.

References edm::StableProvenance::friendlyClassName(), and stable().

Referenced by OniaVtxReProducer::OniaVtxReProducer().

54 {return stable().friendlyClassName();}
StableProvenance const & stable() const
Definition: Provenance.h:40
std::string const & friendlyClassName() const
bool edm::Provenance::getProcessConfiguration ( ProcessConfiguration pc) const
inline

Definition at line 58 of file Provenance.h.

References edm::StableProvenance::getProcessConfiguration(), and stable().

Referenced by edm::parameterSet().

58 {return stable().getProcessConfiguration(pc);}
StableProvenance const & stable() const
Definition: Provenance.h:40
bool getProcessConfiguration(ProcessConfiguration &pc) const
std::string const& edm::Provenance::moduleLabel ( ) const
inline
std::string const& edm::Provenance::moduleName ( ) const
inline

Definition at line 51 of file Provenance.h.

References edm::StableProvenance::moduleName(), and stable().

51 {return stable().moduleName();}
StableProvenance const & stable() const
Definition: Provenance.h:40
std::string const & moduleName() const
BranchID const& edm::Provenance::originalBranchID ( ) const
inline

Definition at line 72 of file Provenance.h.

References edm::StableProvenance::originalBranchID(), stable(), and write().

Referenced by edm::Event::addToGotBranchIDs(), and productProvenance().

72 {return stable().originalBranchID();}
StableProvenance const & stable() const
Definition: Provenance.h:40
BranchID const & originalBranchID() const
ProcessHistory const& edm::Provenance::processHistory ( ) const
inline

Definition at line 56 of file Provenance.h.

References edm::StableProvenance::processHistory(), and stable().

56 {return stable().processHistory();}
StableProvenance const & stable() const
Definition: Provenance.h:40
ProcessHistory const & processHistory() const
ProcessHistory const* edm::Provenance::processHistoryPtr ( ) const
inline

Definition at line 57 of file Provenance.h.

References edm::StableProvenance::processHistoryPtr(), and stable().

Referenced by edm::getProducerParameterSet().

57 {return stable().processHistoryPtr();}
StableProvenance const & stable() const
Definition: Provenance.h:40
ProcessHistory const * processHistoryPtr() const
std::string const& edm::Provenance::processName ( ) const
inline
ProductID const& edm::Provenance::productID ( ) const
inline

Definition at line 80 of file Provenance.h.

References edm::StableProvenance::productID(), and stable().

Referenced by edm::HandleBase::id(), and edm::ProductResolverBase::productID().

80 {return stable().productID();}
StableProvenance const & stable() const
Definition: Provenance.h:40
ProductID const & productID() const
std::string const& edm::Provenance::productInstanceName ( ) const
inline
ProductProvenance const * edm::Provenance::productProvenance ( ) const
ReleaseVersion edm::Provenance::releaseVersion ( ) const
inline

Definition at line 59 of file Provenance.h.

References edm::StableProvenance::releaseVersion(), and stable().

59 {return stable().releaseVersion();}
ReleaseVersion releaseVersion() const
StableProvenance const & stable() const
Definition: Provenance.h:40
void edm::Provenance::setBranchDescription ( std::shared_ptr< BranchDescription const > const &  p)
inline

Definition at line 84 of file Provenance.h.

References edm::StableProvenance::setBranchDescription(), stable(), and swap().

Referenced by edm::ProductData::resetBranchDescription().

StableProvenance const & stable() const
Definition: Provenance.h:40
void setBranchDescription(std::shared_ptr< BranchDescription const > const &p)
void edm::Provenance::setProcessHistory ( ProcessHistory const &  ph)
inline

Definition at line 78 of file Provenance.h.

References edm::StableProvenance::setProcessHistory(), and stable().

Referenced by edm::ProductData::setProcessHistory(), and edm::ProductData::setProvenance().

StableProvenance const & stable() const
Definition: Provenance.h:40
void setProcessHistory(ProcessHistory const &ph)
void edm::Provenance::setProductID ( ProductID const &  pid)
inline

Definition at line 82 of file Provenance.h.

References edm::StableProvenance::setProductID(), and stable().

Referenced by edm::ProductData::setProvenance().

StableProvenance const & stable() const
Definition: Provenance.h:40
void setProductID(ProductID const &pid)
void edm::Provenance::setStore ( ProductProvenanceRetriever const *  store)
inline

Definition at line 76 of file Provenance.h.

References store(), and store_.

Referenced by edm::ProductData::setProvenance().

76 {store_ = store;}
ProductProvenanceRetriever const * store() const
Definition: Provenance.h:55
ProductProvenanceRetriever const * store_
Definition: Provenance.h:90
StableProvenance const& edm::Provenance::stable ( ) const
inline
StableProvenance& edm::Provenance::stable ( )
inline

Definition at line 41 of file Provenance.h.

References stableProvenance_.

41 {return stableProvenance_;}
StableProvenance stableProvenance_
Definition: Provenance.h:89
ProductProvenanceRetriever const* edm::Provenance::store ( ) const
inline

Definition at line 55 of file Provenance.h.

References store_.

Referenced by setStore().

55 {return store_;}
ProductProvenanceRetriever const * store_
Definition: Provenance.h:90
void edm::Provenance::swap ( Provenance iOther)

Definition at line 55 of file Provenance.cc.

References stableProvenance_, store_, edm::StableProvenance::swap(), and std::swap().

Referenced by setBranchDescription(), and edm::ProductData::swap().

55  {
56  stableProvenance_.swap(iOther.stableProvenance_);
57  std::swap(store_,iOther.store_);
58  }
ProductProvenanceRetriever const * store_
Definition: Provenance.h:90
void swap(StableProvenance &)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
StableProvenance stableProvenance_
Definition: Provenance.h:89
void edm::Provenance::write ( std::ostream &  os) const

Definition at line 39 of file Provenance.cc.

References createTree::pp, productProvenance(), stable(), and edm::StableProvenance::write().

Referenced by pkg.AbstractPkg::generate(), edm::operator<<(), and originalBranchID().

39  {
40  // This is grossly inadequate, but it is not critical for the
41  // first pass.
42  stable().write(os);
43  auto pp = productProvenance();
44  if (pp != nullptr) {
45  pp->write(os);
46  }
47  }
StableProvenance const & stable() const
Definition: Provenance.h:40
void write(std::ostream &os) const
ProductProvenance const * productProvenance() const
Definition: Provenance.cc:31

Member Data Documentation

StableProvenance edm::Provenance::stableProvenance_
private

Definition at line 89 of file Provenance.h.

Referenced by stable(), and swap().

ProductProvenanceRetriever const* edm::Provenance::store_
private

Definition at line 90 of file Provenance.h.

Referenced by productProvenance(), setStore(), store(), and swap().