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

#include <ProductProvenance.h>

Public Member Functions

BranchID const & branchID () const
 
ProductProvenance makeProductProvenance () const
 
Parentage const & parentage () const
 
ParentageID const & parentageID () const
 
 ProductProvenance ()
 
 ProductProvenance (BranchID const &bid)
 
 ProductProvenance (BranchID const &bid, ParentageID const &id)
 
 ProductProvenance (BranchID const &bid, std::vector< BranchID > const &parents)
 
 ProductProvenance (BranchID const &bid, std::vector< BranchID > &&parents)
 
void write (std::ostream &os) const
 
 ~ProductProvenance ()
 

Private Attributes

BranchID branchID_
 
ParentageID parentageID_
 

Detailed Description

Definition at line 24 of file ProductProvenance.h.

Constructor & Destructor Documentation

edm::ProductProvenance::ProductProvenance ( )

Definition at line 15 of file ProductProvenance.cc.

15  :
16  branchID_(),
17  parentageID_()
18  {}
edm::ProductProvenance::ProductProvenance ( BranchID const &  bid)
explicit

Definition at line 20 of file ProductProvenance.cc.

20  :
21  branchID_(bid),
22  parentageID_()
23  {}
edm::ProductProvenance::ProductProvenance ( BranchID const &  bid,
ParentageID const &  id 
)

Definition at line 25 of file ProductProvenance.cc.

26  :
27  branchID_(bid),
28  parentageID_(edid)
29  {}
edm::ProductProvenance::ProductProvenance ( BranchID const &  bid,
std::vector< BranchID > const &  parents 
)
edm::ProductProvenance::ProductProvenance ( BranchID const &  bid,
std::vector< BranchID > &&  parents 
)
edm::ProductProvenance::~ProductProvenance ( )
inline

Definition at line 37 of file ProductProvenance.h.

37 {}

Member Function Documentation

BranchID const& edm::ProductProvenance::branchID ( ) const
inline
ProductProvenance edm::ProductProvenance::makeProductProvenance ( ) const

Definition at line 52 of file ProductProvenance.cc.

52  {
53  return *this;
54  }
Parentage const & edm::ProductProvenance::parentage ( ) const

Definition at line 57 of file ProductProvenance.cc.

References edm::ParentageRegistry::getMapped(), edm::ParentageRegistry::instance(), AlCaHLTBitMon_ParallelJobs::p, and parentageID_.

Referenced by edm::RootOutputFile::insertAncestors(), and OniaVtxReProducer::OniaVtxReProducer().

57  {
59  if(p) {
60  return *p;
61  }
62  return s_emptyParentage;
63  }
bool getMapped(key_type const &k, value_type &result) const
static ParentageRegistry * instance()
ParentageID const& edm::ProductProvenance::parentageID ( ) const
inline
void edm::ProductProvenance::write ( std::ostream &  os) const

Definition at line 66 of file ProductProvenance.cc.

References branchID(), and parentageID().

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

66  {
67  os << "branch ID = " << branchID() << '\n';
68  os << "entry description ID = " << parentageID() << '\n';
69  }
BranchID const & branchID() const
ParentageID const & parentageID() const

Member Data Documentation

BranchID edm::ProductProvenance::branchID_
private

Definition at line 49 of file ProductProvenance.h.

Referenced by branchID().

ParentageID edm::ProductProvenance::parentageID_
private

Definition at line 50 of file ProductProvenance.h.

Referenced by parentage(), parentageID(), and ProductProvenance().