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 std::set
< ProductProvenance
readProvenance (unsigned int transitionIndex) const override
 

Private Attributes

DaqProvenanceHelper const * daqProvenanceHelper_
 
ProductProvenanceVector infoVector_
 
ProductProvenanceVectorpInfoVector_
 
SharedResourcesAcquirer resourceAcquirer_
 
RootTreerootTree_
 

Detailed Description

Definition at line 1879 of file RootFile.cc.

Constructor & Destructor Documentation

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

Definition at line 1892 of file RootFile.cc.

1892  :
1894  rootTree_(rootTree),
1895  infoVector_(),
1897  daqProvenanceHelper_(daqProvenanceHelper),
1898  resourceAcquirer_(SharedResourcesRegistry::instance()->createAcquirerForSourceDelayedReader()) {
1899  }
ProductProvenanceVector infoVector_
Definition: RootFile.cc:1886
DaqProvenanceHelper const * daqProvenanceHelper_
Definition: RootFile.cc:1888
ProductProvenanceVector * pInfoVector_
Definition: RootFile.cc:1887
static SharedResourcesRegistry * instance()
SharedResourcesAcquirer resourceAcquirer_
Definition: RootFile.cc:1889
virtual edm::FullProvenanceReader::~FullProvenanceReader ( )
inlinevirtual

Definition at line 1882 of file RootFile.cc.

1882 {}

Member Function Documentation

std::set< ProductProvenance > edm::FullProvenanceReader::readProvenance ( unsigned int  transitionIndex) const
overrideprivatevirtual

Implements edm::ProvenanceReaderBase.

Definition at line 1902 of file RootFile.cc.

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

1902  {
1903  {
1904  std::lock_guard<SharedResourcesAcquirer> guard(resourceAcquirer_);
1906  setRefCoreStreamer(true);
1907  }
1908  std::set<ProductProvenance> retValue;
1909  if(daqProvenanceHelper_) {
1910  for(auto const& info : infoVector_) {
1911  retValue.emplace(daqProvenanceHelper_->mapBranchID(info.branchID()),
1912  daqProvenanceHelper_->mapParentageID(info.parentageID()));
1913  }
1914  } else {
1915  for(auto const& info : infoVector_) {
1916  retValue.emplace(info);
1917  }
1918  }
1919  return retValue;
1920  }
static const TGPicture * info(bool iBackgroundIsBlack)
ProductProvenanceVector infoVector_
Definition: RootFile.cc:1886
DaqProvenanceHelper const * daqProvenanceHelper_
Definition: RootFile.cc:1888
BranchID const & mapBranchID(BranchID const &branchID) const
ProductProvenanceVector * pInfoVector_
Definition: RootFile.cc:1887
void setRefCoreStreamer(bool resetAll=false)
void fillBranchEntryMeta(TBranch *branch, T *&pbuf)
Definition: RootTree.h:107
TBranch * branchEntryInfoBranch() const
Definition: RootTree.h:146
EntryNumber const & entryNumberForIndex(unsigned int index) const
Definition: RootTree.cc:92
SharedResourcesAcquirer resourceAcquirer_
Definition: RootFile.cc:1889
ParentageID const & mapParentageID(ParentageID const &phid) const

Member Data Documentation

DaqProvenanceHelper const* edm::FullProvenanceReader::daqProvenanceHelper_
private

Definition at line 1888 of file RootFile.cc.

Referenced by readProvenance().

ProductProvenanceVector edm::FullProvenanceReader::infoVector_
private

Definition at line 1886 of file RootFile.cc.

Referenced by readProvenance().

ProductProvenanceVector* edm::FullProvenanceReader::pInfoVector_
mutableprivate

Definition at line 1887 of file RootFile.cc.

Referenced by readProvenance().

SharedResourcesAcquirer edm::FullProvenanceReader::resourceAcquirer_
mutableprivate

Definition at line 1889 of file RootFile.cc.

Referenced by readProvenance().

RootTree* edm::FullProvenanceReader::rootTree_
private

Definition at line 1885 of file RootFile.cc.

Referenced by readProvenance().