CMS 3D CMS Logo

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 > &&parents)
 
 ProductProvenance (BranchID bid, std::vector< BranchID > const &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

◆ ProductProvenance() [1/5]

edm::ProductProvenance::ProductProvenance ( )

Definition at line 15 of file ProductProvenance.cc.

15 : branchID_(), parentageID_() {}

◆ ProductProvenance() [2/5]

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

Definition at line 17 of file ProductProvenance.cc.

17 : branchID_(bid), parentageID_() {}

◆ ProductProvenance() [3/5]

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

Definition at line 19 of file ProductProvenance.cc.

20  : branchID_(bid), parentageID_(std::move(edid)) {}

◆ ProductProvenance() [4/5]

edm::ProductProvenance::ProductProvenance ( BranchID  bid,
std::vector< BranchID > const &  parents 
)

◆ ProductProvenance() [5/5]

edm::ProductProvenance::ProductProvenance ( BranchID  bid,
std::vector< BranchID > &&  parents 
)

Member Function Documentation

◆ branchID()

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

◆ makeProductProvenance()

ProductProvenance edm::ProductProvenance::makeProductProvenance ( ) const

Definition at line 37 of file ProductProvenance.cc.

37 { return *this; }

◆ moveParentageID()

ParentageID edm::ProductProvenance::moveParentageID ( )
inline

Definition at line 43 of file ProductProvenance.h.

43 { return std::move(parentageID_); }

References eostools::move(), and parentageID_.

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

◆ parentage()

Parentage const & edm::ProductProvenance::parentage ( ) const

Definition at line 39 of file ProductProvenance.cc.

39  {
41  if (p) {
42  return *p;
43  }
44  return s_emptyParentage;
45  }

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

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

◆ parentageID()

ParentageID const& edm::ProductProvenance::parentageID ( ) const
inline

◆ set()

void edm::ProductProvenance::set ( ParentageID  id)
inline

◆ write()

void edm::ProductProvenance::write ( std::ostream &  os) const

Definition at line 47 of file ProductProvenance.cc.

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

References branchID(), and parentageID().

Referenced by pkg.AbstractPkg::generate().

Member Data Documentation

◆ branchID_

BranchID edm::ProductProvenance::branchID_
private

Definition at line 46 of file ProductProvenance.h.

Referenced by branchID().

◆ parentageID_

ParentageID edm::ProductProvenance::parentageID_
private

Definition at line 47 of file ProductProvenance.h.

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

edm::ParentageRegistry::instance
static ParentageRegistry * instance()
Definition: ParentageRegistry.cc:5
edm::ProductProvenance::parentageID_
ParentageID parentageID_
Definition: ProductProvenance.h:47
edm::ProductProvenance::branchID
BranchID const & branchID() const
Definition: ProductProvenance.h:38
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::ParentageRegistry::getMapped
bool getMapped(key_type const &k, value_type &result) const
Definition: ParentageRegistry.cc:10
edm::ProductProvenance::parentageID
ParentageID const & parentageID() const
Definition: ProductProvenance.h:39
edm::ProductProvenance::branchID_
BranchID branchID_
Definition: ProductProvenance.h:46
edm::ParentageRegistry::insertMapped
bool insertMapped(value_type const &v)
Definition: ParentageRegistry.cc:25
eostools.move
def move(src, dest)
Definition: eostools.py:511
parents
TPRegexp parents
Definition: eve_filter.cc:21