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 Member Functions | Private Attributes
edm::FullProvenanceReader Class Reference
Inheritance diagram for edm::FullProvenanceReader:
edm::ProvenanceReaderBase

Public Member Functions

 FullProvenanceReader (RootTree *rootTree, DaqProvenanceHelper const *daqProvenanceHelper)
 
virtual ~FullProvenanceReader ()
 
- Public Member Functions inherited from edm::ProvenanceReaderBase
 ProvenanceReaderBase ()
 
virtual ~ProvenanceReaderBase ()
 

Private Member Functions

virtual void readProvenance (BranchMapper const &mapper) const
 

Private Attributes

DaqProvenanceHelper const * daqProvenanceHelper_
 
ProductProvenanceVector infoVector_
 
ProductProvenanceVectorpInfoVector_
 
RootTreerootTree_
 

Detailed Description

Definition at line 1814 of file RootFile.cc.

Constructor & Destructor Documentation

edm::FullProvenanceReader::FullProvenanceReader ( RootTree rootTree,
DaqProvenanceHelper const *  daqProvenanceHelper 
)
explicit

Definition at line 1826 of file RootFile.cc.

1826  :
1828  rootTree_(rootTree),
1829  infoVector_(),
1831  daqProvenanceHelper_(daqProvenanceHelper) {
1832  }
ProductProvenanceVector infoVector_
Definition: RootFile.cc:1821
DaqProvenanceHelper const * daqProvenanceHelper_
Definition: RootFile.cc:1823
ProductProvenanceVector * pInfoVector_
Definition: RootFile.cc:1822
virtual edm::FullProvenanceReader::~FullProvenanceReader ( )
inlinevirtual

Definition at line 1817 of file RootFile.cc.

1817 {}

Member Function Documentation

void edm::FullProvenanceReader::readProvenance ( BranchMapper const &  mapper) const
privatevirtual

Implements edm::ProvenanceReaderBase.

Definition at line 1835 of file RootFile.cc.

References edm::RootTree::branchEntryInfoBranch(), daqProvenanceHelper_, edm::RootTree::fillBranchEntryMeta(), infoVector_, edm::BranchMapper::insertIntoSet(), edm::DaqProvenanceHelper::mapBranchID(), edm::DaqProvenanceHelper::mapParentageID(), pInfoVector_, rootTree_, and edm::setRefCoreStreamer().

1835  {
1837  setRefCoreStreamer(true);
1838  if(daqProvenanceHelper_) {
1839  for(ProductProvenanceVector::const_iterator it = infoVector_.begin(), itEnd = infoVector_.end();
1840  it != itEnd; ++it) {
1841  mapper.insertIntoSet(ProductProvenance(daqProvenanceHelper_->mapBranchID(it->branchID()),
1842  daqProvenanceHelper_->mapParentageID(it->parentageID())));
1843  }
1844  } else {
1845  for(ProductProvenanceVector::const_iterator it = infoVector_.begin(), itEnd = infoVector_.end();
1846  it != itEnd; ++it) {
1847  mapper.insertIntoSet(*it);
1848  }
1849  }
1850  }
ProductProvenanceVector infoVector_
Definition: RootFile.cc:1821
DaqProvenanceHelper const * daqProvenanceHelper_
Definition: RootFile.cc:1823
BranchID const & mapBranchID(BranchID const &branchID) const
ProductProvenanceVector * pInfoVector_
Definition: RootFile.cc:1822
void setRefCoreStreamer(bool resetAll=false)
void fillBranchEntryMeta(TBranch *branch, T *&pbuf)
Definition: RootTree.h:95
TBranch * branchEntryInfoBranch() const
Definition: RootTree.h:117
ParentageID const & mapParentageID(ParentageID const &phid) const

Member Data Documentation

DaqProvenanceHelper const* edm::FullProvenanceReader::daqProvenanceHelper_
private

Definition at line 1823 of file RootFile.cc.

Referenced by readProvenance().

ProductProvenanceVector edm::FullProvenanceReader::infoVector_
private

Definition at line 1821 of file RootFile.cc.

Referenced by readProvenance().

ProductProvenanceVector* edm::FullProvenanceReader::pInfoVector_
mutableprivate

Definition at line 1822 of file RootFile.cc.

Referenced by readProvenance().

RootTree* edm::FullProvenanceReader::rootTree_
private

Definition at line 1820 of file RootFile.cc.

Referenced by readProvenance().