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::OldProvenanceReader Class Reference
Inheritance diagram for edm::OldProvenanceReader:
edm::ProvenanceReaderBase

Public Member Functions

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

Private Member Functions

virtual void readProvenance (ProductProvenanceRetriever const &provRetriever, unsigned int transitionIndex) const override
 

Private Attributes

DaqProvenanceHelper const * daqProvenanceHelper_
 
EntryDescriptionMap const & entryDescriptionMap_
 
std::vector< EventEntryInfoinfoVector_
 
std::vector< EventEntryInfo > * pInfoVector_
 
RootTreerootTree_
 

Detailed Description

Definition at line 1838 of file RootFile.cc.

Constructor & Destructor Documentation

edm::OldProvenanceReader::OldProvenanceReader ( RootTree rootTree,
EntryDescriptionMap const &  theMap,
DaqProvenanceHelper const *  daqProvenanceHelper 
)
explicit

Definition at line 1851 of file RootFile.cc.

1851  :
1853  rootTree_(rootTree),
1854  infoVector_(),
1856  entryDescriptionMap_(theMap),
1857  daqProvenanceHelper_(daqProvenanceHelper) {
1858  }
EntryDescriptionMap const & entryDescriptionMap_
Definition: RootFile.cc:1847
std::vector< EventEntryInfo > * pInfoVector_
Definition: RootFile.cc:1846
std::vector< EventEntryInfo > infoVector_
Definition: RootFile.cc:1845
DaqProvenanceHelper const * daqProvenanceHelper_
Definition: RootFile.cc:1848
virtual edm::OldProvenanceReader::~OldProvenanceReader ( )
inlinevirtual

Definition at line 1841 of file RootFile.cc.

1841 {}

Member Function Documentation

void edm::OldProvenanceReader::readProvenance ( ProductProvenanceRetriever const &  provRetriever,
unsigned int  transitionIndex 
) const
overrideprivatevirtual

Implements edm::ProvenanceReaderBase.

Definition at line 1861 of file RootFile.cc.

References edm::RootTree::branchEntryInfoBranch(), daqProvenanceHelper_, entryDescriptionMap_, edm::RootTree::entryNumberForIndex(), edm::roottree::getEntry(), info(), infoVector_, edm::ProductProvenanceRetriever::insertIntoSet(), edm::DaqProvenanceHelper::mapBranchID(), edm::DaqProvenanceHelper::mapParentageID(), pInfoVector_, rootTree_, and edm::setRefCoreStreamer().

1861  {
1862  rootTree_->branchEntryInfoBranch()->SetAddress(&pInfoVector_);
1864  setRefCoreStreamer(true);
1865  for(auto const& info : infoVector_) {
1866  EntryDescriptionMap::const_iterator iter = entryDescriptionMap_.find(info.entryDescriptionID());
1867  assert(iter != entryDescriptionMap_.end());
1868  Parentage parentage(iter->second.parents());
1869  if(daqProvenanceHelper_) {
1870  ProductProvenance entry(daqProvenanceHelper_->mapBranchID(info.branchID()),
1871  daqProvenanceHelper_->mapParentageID(parentage.id()));
1872  provRetriever.insertIntoSet(entry);
1873  } else {
1874  ProductProvenance entry(info.branchID(), parentage.id());
1875  provRetriever.insertIntoSet(entry);
1876  }
1877 
1878  }
1879  }
Int_t getEntry(TBranch *branch, EntryNumber entryNumber)
Definition: RootTree.cc:460
static const TGPicture * info(bool iBackgroundIsBlack)
BranchID const & mapBranchID(BranchID const &branchID) const
void setRefCoreStreamer(bool resetAll=false)
EntryDescriptionMap const & entryDescriptionMap_
Definition: RootFile.cc:1847
TBranch * branchEntryInfoBranch() const
Definition: RootTree.h:143
EntryNumber const & entryNumberForIndex(unsigned int index) const
Definition: RootTree.cc:91
std::vector< EventEntryInfo > * pInfoVector_
Definition: RootFile.cc:1846
ParentageID const & mapParentageID(ParentageID const &phid) const
std::vector< EventEntryInfo > infoVector_
Definition: RootFile.cc:1845
DaqProvenanceHelper const * daqProvenanceHelper_
Definition: RootFile.cc:1848

Member Data Documentation

DaqProvenanceHelper const* edm::OldProvenanceReader::daqProvenanceHelper_
private

Definition at line 1848 of file RootFile.cc.

Referenced by readProvenance().

EntryDescriptionMap const& edm::OldProvenanceReader::entryDescriptionMap_
private

Definition at line 1847 of file RootFile.cc.

Referenced by readProvenance().

std::vector<EventEntryInfo> edm::OldProvenanceReader::infoVector_
private

Definition at line 1845 of file RootFile.cc.

Referenced by readProvenance().

std::vector<EventEntryInfo>* edm::OldProvenanceReader::pInfoVector_
mutableprivate

Definition at line 1846 of file RootFile.cc.

Referenced by readProvenance().

RootTree* edm::OldProvenanceReader::rootTree_
private

Definition at line 1844 of file RootFile.cc.

Referenced by readProvenance().