CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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
 
ParentageID moveParentageID ()
 
Parentage const & parentage () const
 
ParentageID const & parentageID () const
 
 ProductProvenance ()
 
 ProductProvenance (BranchID bid)
 
 ProductProvenance (BranchID bid, ParentageID id)
 
 ProductProvenance (BranchID bid, std::vector< BranchID > const &parents)
 
 ProductProvenance (BranchID bid, std::vector< BranchID > &&parents)
 
void set (ParentageID id)
 
void write (std::ostream &os) const
 

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.

edm::ProductProvenance::ProductProvenance ( BranchID  bid)
explicit

Definition at line 17 of file ProductProvenance.cc.

edm::ProductProvenance::ProductProvenance ( BranchID  bid,
ParentageID  id 
)

Definition at line 19 of file ProductProvenance.cc.

20  : branchID_(bid), parentageID_(std::move(edid)) {}
def move
Definition: eostools.py:511
edm::ProductProvenance::ProductProvenance ( BranchID  bid,
std::vector< BranchID > const &  parents 
)
edm::ProductProvenance::ProductProvenance ( BranchID  bid,
std::vector< BranchID > &&  parents 
)

Member Function Documentation

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

Definition at line 37 of file ProductProvenance.cc.

37 { return *this; }
ParentageID edm::ProductProvenance::moveParentageID ( )
inline

Definition at line 43 of file ProductProvenance.h.

References eostools::move(), and parentageID_.

Referenced by edm::ProductProvenanceLookup::insertIntoSet().

43 { return std::move(parentageID_); }
def move
Definition: eostools.py:511
Parentage const & edm::ProductProvenance::parentage ( ) const

Definition at line 39 of file ProductProvenance.cc.

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

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

39  {
41  if (p) {
42  return *p;
43  }
44  return s_emptyParentage;
45  }
bool getMapped(key_type const &k, value_type &result) const
static ParentageRegistry * instance()
ParentageID const& edm::ProductProvenance::parentageID ( ) const
inline
void edm::ProductProvenance::set ( ParentageID  id)
inline
void edm::ProductProvenance::write ( std::ostream &  os) const

Definition at line 47 of file ProductProvenance.cc.

References branchID(), and parentageID().

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

47  {
48  os << "branch ID = " << branchID() << '\n';
49  os << "entry description ID = " << parentageID() << '\n';
50  }
BranchID const & branchID() const
ParentageID const & parentageID() const

Member Data Documentation

BranchID edm::ProductProvenance::branchID_
private

Definition at line 46 of file ProductProvenance.h.

Referenced by branchID().

ParentageID edm::ProductProvenance::parentageID_
private

Definition at line 47 of file ProductProvenance.h.

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