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
fwlite::BranchMapReader Class Reference

#include <BranchMapReader.h>

Public Member Functions

const edm::BranchDescriptionbranchIDToBranch (const edm::BranchID &bid) const
 
const edm::BranchListIndexesbranchListIndexes () const
 
 BranchMapReader (TFile *file)
 
 BranchMapReader ()
 
const std::vector
< edm::BranchDescription > & 
getBranchDescriptions ()
 
Long_t getEventEntry () const
 
TTree const * getEventTree () const
 
TTree * getEventTree ()
 
TFile const * getFile () const
 
TFile * getFile ()
 
TUUID getFileUUID () const
 
int getFileVersion (TFile *file)
 
int getFileVersion () const
 
Long_t getLuminosityBlockEntry () const
 
TTree const * getLuminosityBlockTree () const
 
TTree * getLuminosityBlockTree ()
 
Long_t getRunEntry () const
 
TTree const * getRunTree () const
 
TTree * getRunTree ()
 
const edm::BranchDescriptionproductToBranch (const edm::ProductID &pid)
 
edm::BranchID productToBranchID (const edm::ProductID &pid)
 
const
edm::ThinnedAssociationsHelper
thinnedAssociationsHelper () const
 
bool updateEvent (Long_t eventEntry)
 
bool updateFile (TFile *file)
 
bool updateLuminosityBlock (Long_t luminosityBlockEntry)
 
bool updateRun (Long_t runEntry)
 

Private Member Functions

std::unique_ptr
< internal::BMRStrategy
newStrategy (TFile *file, int fileVersion)
 

Private Attributes

int fileVersion_
 
std::unique_ptr
< internal::BMRStrategy
strategy_
 

Detailed Description

Definition at line 70 of file BranchMapReader.h.

Constructor & Destructor Documentation

BranchMapReader::BranchMapReader ( TFile *  file)

Definition at line 570 of file BranchMapReader.cc.

fwlite::BranchMapReader::BranchMapReader ( )
inline

Definition at line 73 of file BranchMapReader.h.

73 : strategy_(nullptr),fileVersion_(0) {}
std::unique_ptr< internal::BMRStrategy > strategy_

Member Function Documentation

const edm::BranchDescription& fwlite::BranchMapReader::branchIDToBranch ( const edm::BranchID bid) const
inline

Definition at line 86 of file BranchMapReader.h.

References strategy_.

86 { return strategy_->branchIDToBranch(bid); }
std::unique_ptr< internal::BMRStrategy > strategy_
const edm::BranchListIndexes& fwlite::BranchMapReader::branchListIndexes ( ) const
inline

Definition at line 103 of file BranchMapReader.h.

References strategy_.

103 { strategy_->updateMap(); return strategy_->branchListIndexes(); }
std::unique_ptr< internal::BMRStrategy > strategy_
std::vector< edm::BranchDescription > const & BranchMapReader::getBranchDescriptions ( )

Definition at line 642 of file BranchMapReader.cc.

Long_t fwlite::BranchMapReader::getEventEntry ( ) const
inline

Definition at line 99 of file BranchMapReader.h.

References strategy_.

99 { return strategy_->eventEntry_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TTree const* fwlite::BranchMapReader::getEventTree ( ) const
inline

Definition at line 92 of file BranchMapReader.h.

References strategy_.

Referenced by fwlite::EntryFinder::fillIndex().

92 { return strategy_->eventTree_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TTree* fwlite::BranchMapReader::getEventTree ( )
inline

Definition at line 93 of file BranchMapReader.h.

References strategy_.

93 { return strategy_->eventTree_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TFile const* fwlite::BranchMapReader::getFile ( ) const
inline

Definition at line 90 of file BranchMapReader.h.

References strategy_.

Referenced by fwlite::EntryFinder::fillIndex().

90 { return strategy_->currentFile_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TFile* fwlite::BranchMapReader::getFile ( )
inline

Definition at line 91 of file BranchMapReader.h.

References strategy_.

91 { return strategy_->currentFile_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TUUID fwlite::BranchMapReader::getFileUUID ( ) const
inline

Definition at line 98 of file BranchMapReader.h.

References strategy_.

98 { return strategy_->fileUUID_; }
std::unique_ptr< internal::BMRStrategy > strategy_
int BranchMapReader::getFileVersion ( TFile *  file)

Definition at line 582 of file BranchMapReader.cc.

int fwlite::BranchMapReader::getFileVersion ( ) const
inline

Definition at line 88 of file BranchMapReader.h.

References fileVersion_.

Long_t fwlite::BranchMapReader::getLuminosityBlockEntry ( ) const
inline

Definition at line 100 of file BranchMapReader.h.

References strategy_.

100 { return strategy_->luminosityBlockEntry_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TTree const* fwlite::BranchMapReader::getLuminosityBlockTree ( ) const
inline

Definition at line 94 of file BranchMapReader.h.

References strategy_.

94 { return strategy_->luminosityBlockTree_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TTree* fwlite::BranchMapReader::getLuminosityBlockTree ( )
inline

Definition at line 95 of file BranchMapReader.h.

References strategy_.

95 { return strategy_->luminosityBlockTree_; }
std::unique_ptr< internal::BMRStrategy > strategy_
Long_t fwlite::BranchMapReader::getRunEntry ( ) const
inline

Definition at line 101 of file BranchMapReader.h.

References strategy_.

101 { return strategy_->runEntry_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TTree const* fwlite::BranchMapReader::getRunTree ( ) const
inline

Definition at line 96 of file BranchMapReader.h.

References strategy_.

96 { return strategy_->runTree_; }
std::unique_ptr< internal::BMRStrategy > strategy_
TTree* fwlite::BranchMapReader::getRunTree ( )
inline

Definition at line 97 of file BranchMapReader.h.

References strategy_.

97 { return strategy_->runTree_; }
std::unique_ptr< internal::BMRStrategy > strategy_
std::unique_ptr< internal::BMRStrategy > BranchMapReader::newStrategy ( TFile *  file,
int  fileVersion 
)
private

Definition at line 648 of file BranchMapReader.cc.

edm::BranchDescription const & BranchMapReader::productToBranch ( const edm::ProductID pid)

Definition at line 637 of file BranchMapReader.cc.

edm::BranchID fwlite::BranchMapReader::productToBranchID ( const edm::ProductID pid)
inline

Definition at line 84 of file BranchMapReader.h.

References strategy_.

84 { return strategy_->productToBranchID(pid); }
std::unique_ptr< internal::BMRStrategy > strategy_
const edm::ThinnedAssociationsHelper& fwlite::BranchMapReader::thinnedAssociationsHelper ( ) const
inline

Definition at line 104 of file BranchMapReader.h.

References strategy_.

104 { return strategy_->thinnedAssociationsHelper(); }
std::unique_ptr< internal::BMRStrategy > strategy_
bool BranchMapReader::updateEvent ( Long_t  eventEntry)

Definition at line 597 of file BranchMapReader.cc.

bool BranchMapReader::updateFile ( TFile *  file)

Definition at line 609 of file BranchMapReader.cc.

bool BranchMapReader::updateLuminosityBlock ( Long_t  luminosityBlockEntry)

Definition at line 601 of file BranchMapReader.cc.

bool BranchMapReader::updateRun ( Long_t  runEntry)

Definition at line 605 of file BranchMapReader.cc.

Member Data Documentation

int fwlite::BranchMapReader::fileVersion_
private

Definition at line 110 of file BranchMapReader.h.

Referenced by getFileVersion().

std::unique_ptr<internal::BMRStrategy> fwlite::BranchMapReader::strategy_
private