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::StableProvenance Class Reference

#include <StableProvenance.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
 
ProcessHistory const & processHistory () const
 
std::string const & processName () const
 
ProductID const & productID () const
 
std::string const & productInstanceName () const
 
ReleaseVersion releaseVersion () const
 
void setBranchDescription (std::shared_ptr< BranchDescription const > const &p)
 
void setProcessHistory (ProcessHistory const &ph)
 
void setProductID (ProductID const &pid)
 
 StableProvenance ()
 
 StableProvenance (std::shared_ptr< BranchDescription const > const &p, ProductID const &pid)
 
void swap (StableProvenance &)
 
void write (std::ostream &os) const
 

Private Attributes

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

Detailed Description

Definition at line 30 of file StableProvenance.h.

Constructor & Destructor Documentation

edm::StableProvenance::StableProvenance ( )

Definition at line 14 of file StableProvenance.cc.

14  : StableProvenance{std::shared_ptr<BranchDescription const>(), ProductID()} {
15  }
edm::StableProvenance::StableProvenance ( std::shared_ptr< BranchDescription const > const &  p,
ProductID const &  pid 
)

Definition at line 17 of file StableProvenance.cc.

17  :
19  productID_(pid),
20  processHistory_() {
21  }
tuple pid
Definition: sysUtil.py:22
ProcessHistory const * processHistory_
std::shared_ptr< BranchDescription const > branchDescription_

Member Function Documentation

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

Definition at line 50 of file StableProvenance.h.

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

Referenced by edm::Provenance::branchAliases().

50 {return branchDescription().branchAliases();}
BranchDescription const & branchDescription() const
std::set< std::string > const & branchAliases() const
BranchDescription const& edm::StableProvenance::branchDescription ( ) const
inline
BranchID const& edm::StableProvenance::branchID ( ) const
inline

Definition at line 39 of file StableProvenance.h.

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

Referenced by edm::Provenance::branchID().

39 {return branchDescription().branchID();}
BranchDescription const & branchDescription() const
BranchID const & branchID() const
std::string const& edm::StableProvenance::branchName ( ) const
inline

Definition at line 40 of file StableProvenance.h.

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

Referenced by edm::Provenance::branchName().

40 {return branchDescription().branchName();}
std::string const & branchName() const
BranchDescription const & branchDescription() const
std::string const& edm::StableProvenance::className ( ) const
inline

Definition at line 41 of file StableProvenance.h.

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

Referenced by edm::Provenance::className().

41 {return branchDescription().className();}
BranchDescription const & branchDescription() const
std::string const & className() const
std::shared_ptr<BranchDescription const> const& edm::StableProvenance::constBranchDescriptionPtr ( ) const
inline

Definition at line 37 of file StableProvenance.h.

References branchDescription_.

Referenced by edm::Provenance::constBranchDescriptionPtr().

37 {return branchDescription_;}
std::shared_ptr< BranchDescription const > branchDescription_
std::string const& edm::StableProvenance::friendlyClassName ( ) const
inline

Definition at line 46 of file StableProvenance.h.

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

Referenced by edm::Provenance::friendlyClassName().

BranchDescription const & branchDescription() const
std::string const & friendlyClassName() const
bool edm::StableProvenance::getProcessConfiguration ( ProcessConfiguration pc) const

Definition at line 24 of file StableProvenance.cc.

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

Referenced by edm::Provenance::getProcessConfiguration(), and releaseVersion().

24  {
26  }
bool getConfigurationForProcess(std::string const &name, ProcessConfiguration &config) const
std::string const & processName() const
ProcessHistory const * processHistory_
std::string const& edm::StableProvenance::moduleLabel ( ) const
inline

Definition at line 42 of file StableProvenance.h.

References branchDescription(), and edm::BranchDescription::moduleLabel().

Referenced by EcalDeadCellTriggerPrimitiveFilter::loadEventInfoForFilter(), and edm::Provenance::moduleLabel().

42 {return branchDescription().moduleLabel();}
BranchDescription const & branchDescription() const
std::string const & moduleLabel() const
std::string const& edm::StableProvenance::moduleName ( ) const
inline

Definition at line 43 of file StableProvenance.h.

References branchDescription(), and edm::BranchDescription::moduleName().

Referenced by edm::Provenance::moduleName().

43 {return branchDescription().moduleName();}
BranchDescription const & branchDescription() const
std::string const & moduleName() const
ProcessHistory const& edm::StableProvenance::processHistory ( ) const
inline

Definition at line 47 of file StableProvenance.h.

References processHistory_.

Referenced by edm::Provenance::processHistory().

47 {return *processHistory_;}
ProcessHistory const * processHistory_
std::string const& edm::StableProvenance::processName ( ) const
inline

Definition at line 44 of file StableProvenance.h.

References branchDescription(), and edm::BranchDescription::processName().

Referenced by getProcessConfiguration(), and edm::Provenance::processName().

44 {return branchDescription().processName();}
BranchDescription const & branchDescription() const
std::string const & processName() const
ProductID const& edm::StableProvenance::productID ( ) const
inline

Definition at line 56 of file StableProvenance.h.

References productID_.

Referenced by edm::Provenance::productID().

56 {return productID_;}
std::string const& edm::StableProvenance::productInstanceName ( ) const
inline

Definition at line 45 of file StableProvenance.h.

References branchDescription(), and edm::BranchDescription::productInstanceName().

Referenced by edm::Provenance::productInstanceName().

BranchDescription const & branchDescription() const
std::string const & productInstanceName() const
ReleaseVersion edm::StableProvenance::releaseVersion ( ) const

Definition at line 29 of file StableProvenance.cc.

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

Referenced by edm::Provenance::releaseVersion().

29  {
30  ProcessConfiguration pc;
32  return pc.releaseVersion();
33  }
assert(m_qm.get())
bool getProcessConfiguration(ProcessConfiguration &pc) const
void edm::StableProvenance::setBranchDescription ( std::shared_ptr< BranchDescription const > const &  p)
inline

Definition at line 62 of file StableProvenance.h.

References branchDescription_, and AlCaHLTBitMon_ParallelJobs::p.

Referenced by edm::Provenance::setBranchDescription().

62  {
64  }
std::shared_ptr< BranchDescription const > branchDescription_
void edm::StableProvenance::setProcessHistory ( ProcessHistory const &  ph)
inline

Definition at line 54 of file StableProvenance.h.

References processHistory_.

Referenced by edm::Provenance::setProcessHistory().

54 {processHistory_ = &ph;}
ProcessHistory const * processHistory_
void edm::StableProvenance::setProductID ( ProductID const &  pid)
inline

Definition at line 58 of file StableProvenance.h.

References sysUtil::pid, and productID_.

Referenced by edm::Provenance::setProductID().

58  {
59  productID_ = pid;
60  }
tuple pid
Definition: sysUtil.py:22
void edm::StableProvenance::swap ( StableProvenance iOther)

Definition at line 47 of file StableProvenance.cc.

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

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

47  {
48  branchDescription_.swap(iOther.branchDescription_);
49  productID_.swap(iOther.productID_);
50  std::swap(processHistory_, iOther.processHistory_);
51  }
void swap(ProductID &other)
Definition: ProductID.cc:17
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
ProcessHistory const * processHistory_
std::shared_ptr< BranchDescription const > branchDescription_
void edm::StableProvenance::write ( std::ostream &  os) const

Definition at line 36 of file StableProvenance.cc.

References branchDescription(), and edm::BranchDescription::write().

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

36  {
37  // This is grossly inadequate, but it is not critical for the first pass.
39  }
BranchDescription const & branchDescription() const
void write(std::ostream &os) const

Member Data Documentation

std::shared_ptr<BranchDescription const> edm::StableProvenance::branchDescription_
private
ProcessHistory const* edm::StableProvenance::processHistory_
private
ProductID edm::StableProvenance::productID_
private

Definition at line 70 of file StableProvenance.h.

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