test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
BranchDescription const & constBranchDescription () const
 
std::shared_ptr
< BranchDescription const >
const & 
constBranchDescriptionPtr () const
 
std::string const & friendlyClassName () const
 
bool getProcessConfiguration (ProcessConfiguration &pc) const
 
std::string const & moduleLabel () const
 
ProcessHistory const & processHistory () const
 
std::string const & processName () const
 
BranchDescription const & product () 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)
 
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)
 
ProductProvenanceRetriever const * store () const
 
void swap (Provenance &)
 
void write (std::ostream &os) const
 

Private Attributes

std::shared_ptr
< BranchDescription const > 
branchDescription_
 
ProcessHistory const * processHistory_
 
ProductID productID_
 
ProductProvenanceRetriever const * store_
 

Detailed Description

Definition at line 35 of file Provenance.h.

Constructor & Destructor Documentation

edm::Provenance::Provenance ( )

Definition at line 17 of file Provenance.cc.

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

Definition at line 20 of file Provenance.cc.

20  :
22  productID_(pid),
24  store_() {
25  }
ProductID productID_
Definition: Provenance.h:81
std::shared_ptr< BranchDescription const > branchDescription_
Definition: Provenance.h:80
ProductProvenanceRetriever const * store_
Definition: Provenance.h:83
ProcessHistory const * processHistory_
Definition: Provenance.h:82
tuple pid
Definition: sysUtil.py:22

Member Function Documentation

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

Definition at line 59 of file Provenance.h.

References edm::BranchDescription::branchAliases(), and product().

59 {return product().branchAliases();}
BranchDescription const & product() const
Definition: Provenance.h:41
std::set< std::string > const & branchAliases() const
BranchDescription const& edm::Provenance::branchDescription ( ) const
inline

Definition at line 43 of file Provenance.h.

References branchDescription_.

Referenced by FWFFMetadataManager::doUpdate(), and FWFFMetadataManager::hasModuleLabel().

43 {return *branchDescription_;}
std::shared_ptr< BranchDescription const > branchDescription_
Definition: Provenance.h:80
BranchID const& edm::Provenance::branchID ( ) const
inline

Definition at line 48 of file Provenance.h.

References edm::BranchDescription::branchID(), and product().

Referenced by edm::LuminosityBlock::addToGotBranchIDs(), edm::Run::addToGotBranchIDs(), and edm::Event::addToGotBranchIDs().

48 {return product().branchID();}
BranchID const & branchID() const
BranchDescription const & product() const
Definition: Provenance.h:41
std::string const& edm::Provenance::branchName ( ) const
inline

Definition at line 49 of file Provenance.h.

References edm::BranchDescription::branchName(), and product().

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

49 {return product().branchName();}
std::string const & branchName() const
BranchDescription const & product() const
Definition: Provenance.h:41
std::string const& edm::Provenance::className ( ) const
inline

Definition at line 50 of file Provenance.h.

References edm::BranchDescription::className(), and product().

50 {return product().className();}
std::string const & className() const
BranchDescription const & product() const
Definition: Provenance.h:41
BranchDescription const& edm::Provenance::constBranchDescription ( ) const
inline

Definition at line 44 of file Provenance.h.

References branchDescription_.

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

44 {return *branchDescription_;}
std::shared_ptr< BranchDescription const > branchDescription_
Definition: Provenance.h:80
std::shared_ptr<BranchDescription const> const& edm::Provenance::constBranchDescriptionPtr ( ) const
inline

Definition at line 45 of file Provenance.h.

References branchDescription_.

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

45 {return branchDescription_;}
std::shared_ptr< BranchDescription const > branchDescription_
Definition: Provenance.h:80
std::string const& edm::Provenance::friendlyClassName ( ) const
inline

Definition at line 54 of file Provenance.h.

References edm::BranchDescription::friendlyClassName(), and product().

Referenced by OniaVtxReProducer::OniaVtxReProducer().

54 {return product().friendlyClassName();}
std::string const & friendlyClassName() const
BranchDescription const & product() const
Definition: Provenance.h:41
bool edm::Provenance::getProcessConfiguration ( ProcessConfiguration pc) const

Definition at line 36 of file Provenance.cc.

References edm::ProcessHistory::getConfigurationForProcess(), processHistory_, and processName().

Referenced by edm::parameterSet(), and releaseVersion().

36  {
38  }
std::string const & processName() const
Definition: Provenance.h:52
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
ProcessHistory const * processHistory_
Definition: Provenance.h:82
std::string const& edm::Provenance::moduleLabel ( ) const
inline
ProcessHistory const& edm::Provenance::processHistory ( ) const
inline

Definition at line 56 of file Provenance.h.

References processHistory_.

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

56 {return *processHistory_;}
ProcessHistory const * processHistory_
Definition: Provenance.h:82
std::string const& edm::Provenance::processName ( ) const
inline
BranchDescription const& edm::Provenance::product ( ) const
inline
ProductID const& edm::Provenance::productID ( ) const
inline
std::string const& edm::Provenance::productInstanceName ( ) const
inline
ProductProvenance const * edm::Provenance::productProvenance ( ) const

Definition at line 28 of file Provenance.cc.

References branchDescription_, edm::ProductProvenanceRetriever::branchIDToProvenance(), and store_.

Referenced by OniaVtxReProducer::OniaVtxReProducer(), edm::InputProductHolder::productProvenancePtr_(), edm::ProducedProductHolder::productProvenancePtr_(), edm::AliasProductHolder::productProvenancePtr_(), and write().

28  {
29  if(!store_) {
30  return nullptr;
31  }
32  return store_->branchIDToProvenance(branchDescription_->branchID());
33  }
std::shared_ptr< BranchDescription const > branchDescription_
Definition: Provenance.h:80
ProductProvenanceRetriever const * store_
Definition: Provenance.h:83
ProductProvenance const * branchIDToProvenance(BranchID const &bid) const
ReleaseVersion edm::Provenance::releaseVersion ( ) const

Definition at line 41 of file Provenance.cc.

References assert(), getProcessConfiguration(), and edm::ProcessConfiguration::releaseVersion().

41  {
42  ProcessConfiguration pc;
44  return pc.releaseVersion();
45  }
assert(m_qm.get())
bool getProcessConfiguration(ProcessConfiguration &pc) const
Definition: Provenance.cc:36
void edm::Provenance::setBranchDescription ( std::shared_ptr< BranchDescription const > const &  p)
inline

Definition at line 73 of file Provenance.h.

References branchDescription_, and AlCaHLTBitMon_ParallelJobs::p.

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

73  {
75  }
std::shared_ptr< BranchDescription const > branchDescription_
Definition: Provenance.h:80
void edm::Provenance::setProcessHistory ( ProcessHistory const &  ph)
inline

Definition at line 65 of file Provenance.h.

References processHistory_.

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

65 {processHistory_ = &ph;}
ProcessHistory const * processHistory_
Definition: Provenance.h:82
void edm::Provenance::setProductID ( ProductID const &  pid)
inline

Definition at line 69 of file Provenance.h.

References sysUtil::pid, and productID_.

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

69  {
70  productID_ = pid;
71  }
ProductID productID_
Definition: Provenance.h:81
tuple pid
Definition: sysUtil.py:22
void edm::Provenance::setStore ( ProductProvenanceRetriever const *  store)
inline

Definition at line 63 of file Provenance.h.

References store(), and store_.

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

63 {store_ = store;}
ProductProvenanceRetriever const * store() const
Definition: Provenance.h:55
ProductProvenanceRetriever const * store_
Definition: Provenance.h:83
ProductProvenanceRetriever const* edm::Provenance::store ( ) const
inline

Definition at line 55 of file Provenance.h.

References store_.

Referenced by edm::ProductData::connectTo(), and setStore().

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

Definition at line 64 of file Provenance.cc.

References branchDescription_, processHistory_, productID_, store_, edm::ProductID::swap(), and std::swap().

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

64  {
65  branchDescription_.swap(iOther.branchDescription_);
66  productID_.swap(iOther.productID_);
67  std::swap(processHistory_, iOther.processHistory_);
68  std::swap(store_,iOther.store_);
69  }
ProductID productID_
Definition: Provenance.h:81
std::shared_ptr< BranchDescription const > branchDescription_
Definition: Provenance.h:80
void swap(ProductID &other)
Definition: ProductID.cc:17
ProductProvenanceRetriever const * store_
Definition: Provenance.h:83
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
ProcessHistory const * processHistory_
Definition: Provenance.h:82
void edm::Provenance::write ( std::ostream &  os) const

Definition at line 48 of file Provenance.cc.

References createTree::pp, product(), productProvenance(), and edm::BranchDescription::write().

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

48  {
49  // This is grossly inadequate, but it is not critical for the
50  // first pass.
51  product().write(os);
52  auto pp = productProvenance();
53  if (pp != nullptr) {
54  pp->write(os);
55  }
56  }
tuple pp
Definition: createTree.py:15
ProductProvenance const * productProvenance() const
Definition: Provenance.cc:28
void write(std::ostream &os) const
BranchDescription const & product() const
Definition: Provenance.h:41

Member Data Documentation

std::shared_ptr<BranchDescription const> edm::Provenance::branchDescription_
private
ProcessHistory const* edm::Provenance::processHistory_
private

Definition at line 82 of file Provenance.h.

Referenced by getProcessConfiguration(), processHistory(), setProcessHistory(), and swap().

ProductID edm::Provenance::productID_
private

Definition at line 81 of file Provenance.h.

Referenced by productID(), setProductID(), and swap().

ProductProvenanceRetriever const* edm::Provenance::store_
private

Definition at line 83 of file Provenance.h.

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