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 (ProductProvenanceRetriever const &provRetriever, unsigned int transitionIndex) const override
 

Private Attributes

DaqProvenanceHelper const * daqProvenanceHelper_
 
ProductProvenanceVector infoVector_
 
ProductProvenanceVectorpInfoVector_
 
SharedResourcesAcquirer resourceAcquirer_
 
RootTreerootTree_
 

Detailed Description

Definition at line 1905 of file RootFile.cc.

Constructor & Destructor Documentation

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

Definition at line 1918 of file RootFile.cc.

1918  :
1920  rootTree_(rootTree),
1921  infoVector_(),
1923  daqProvenanceHelper_(daqProvenanceHelper),
1924  resourceAcquirer_(SharedResourcesRegistry::instance()->createAcquirerForSourceDelayedReader()) {
1925  }
ProductProvenanceVector infoVector_
Definition: RootFile.cc:1912
DaqProvenanceHelper const * daqProvenanceHelper_
Definition: RootFile.cc:1914
ProductProvenanceVector * pInfoVector_
Definition: RootFile.cc:1913
static SharedResourcesRegistry * instance()
SharedResourcesAcquirer resourceAcquirer_
Definition: RootFile.cc:1915
virtual edm::FullProvenanceReader::~FullProvenanceReader ( )
inlinevirtual

Definition at line 1908 of file RootFile.cc.

1908 {}

Member Function Documentation

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

Implements edm::ProvenanceReaderBase.

Definition at line 1928 of file RootFile.cc.

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

1928  {
1929  {
1930  std::lock_guard<SharedResourcesAcquirer> guard(resourceAcquirer_);
1932  setRefCoreStreamer(true);
1933  }
1934  if(daqProvenanceHelper_) {
1935  for(auto const& info : infoVector_) {
1936  provRetriever.insertIntoSet(ProductProvenance(daqProvenanceHelper_->mapBranchID(info.branchID()),
1937  daqProvenanceHelper_->mapParentageID(info.parentageID())));
1938  }
1939  } else {
1940  for(auto const& info : infoVector_) {
1941  provRetriever.insertIntoSet(info);
1942  }
1943  }
1944  }
static const TGPicture * info(bool iBackgroundIsBlack)
ProductProvenanceVector infoVector_
Definition: RootFile.cc:1912
DaqProvenanceHelper const * daqProvenanceHelper_
Definition: RootFile.cc:1914
BranchID const & mapBranchID(BranchID const &branchID) const
ProductProvenanceVector * pInfoVector_
Definition: RootFile.cc:1913
void setRefCoreStreamer(bool resetAll=false)
void fillBranchEntryMeta(TBranch *branch, T *&pbuf)
Definition: RootTree.h:106
TBranch * branchEntryInfoBranch() const
Definition: RootTree.h:145
EntryNumber const & entryNumberForIndex(unsigned int index) const
Definition: RootTree.cc:92
SharedResourcesAcquirer resourceAcquirer_
Definition: RootFile.cc:1915
ParentageID const & mapParentageID(ParentageID const &phid) const

Member Data Documentation

DaqProvenanceHelper const* edm::FullProvenanceReader::daqProvenanceHelper_
private

Definition at line 1914 of file RootFile.cc.

Referenced by readProvenance().

ProductProvenanceVector edm::FullProvenanceReader::infoVector_
private

Definition at line 1912 of file RootFile.cc.

Referenced by readProvenance().

ProductProvenanceVector* edm::FullProvenanceReader::pInfoVector_
mutableprivate

Definition at line 1913 of file RootFile.cc.

Referenced by readProvenance().

SharedResourcesAcquirer edm::FullProvenanceReader::resourceAcquirer_
mutableprivate

Definition at line 1915 of file RootFile.cc.

Referenced by readProvenance().

RootTree* edm::FullProvenanceReader::rootTree_
private

Definition at line 1911 of file RootFile.cc.

Referenced by readProvenance().