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 Attributes
fwlite::internal::BranchMapReaderStrategyV1 Class Reference
Inheritance diagram for fwlite::internal::BranchMapReaderStrategyV1:
fwlite::internal::Strategy fwlite::internal::BMRStrategy fwlite::internal::BranchMapReaderStrategyV7

Public Member Functions

virtual edm::BranchListIndexes
const & 
branchListIndexes () const
 
 BranchMapReaderStrategyV1 (TFile *file, int fileVersion)
 
virtual bool updateFile (TFile *file)
 
virtual bool updateMap ()
 
- Public Member Functions inherited from fwlite::internal::Strategy
virtual std::vector
< edm::BranchDescription >
const & 
getBranchDescriptions ()
 
TBranch * getBranchRegistry (edm::ProductRegistry **pReg)
 
virtual edm::BranchDescription
const & 
productToBranch (edm::ProductID const &pid)
 
virtual edm::BranchID productToBranchID (edm::ProductID const &pid)
 
 Strategy (TFile *file, int fileVersion)
 
virtual bool updateEvent (Long_t eventEntry)
 
virtual bool updateLuminosityBlock (Long_t luminosityBlockEntry)
 
virtual bool updateRun (Long_t runEntry)
 
virtual ~Strategy ()
 
- Public Member Functions inherited from fwlite::internal::BMRStrategy
 BMRStrategy (TFile *file, int fileVersion)
 
virtual ~BMRStrategy ()
 

Private Attributes

edm::BranchListIndexes dummyBranchListIndexes_
 

Additional Inherited Members

- Public Types inherited from fwlite::internal::Strategy
typedef std::map
< edm::BranchID,
edm::BranchDescription
bidToDesc
 
- Public Attributes inherited from fwlite::internal::Strategy
std::vector
< edm::BranchDescription
bDesc_
 
bidToDesc branchDescriptionMap_
 
bool mapperFilled_
 
- Public Attributes inherited from fwlite::internal::BMRStrategy
TFile * currentFile_
 
Long_t eventEntry_
 
TTree * eventTree_
 
TUUID fileUUID_
 
int fileVersion_
 
Long_t luminosityBlockEntry_
 
TTree * luminosityBlockTree_
 
Long_t runEntry_
 
TTree * runTree_
 

Detailed Description

Definition at line 135 of file BranchMapReader.cc.

Constructor & Destructor Documentation

fwlite::internal::BranchMapReaderStrategyV1::BranchMapReaderStrategyV1 ( TFile *  file,
int  fileVersion 
)

Definition at line 145 of file BranchMapReader.cc.

References updateFile().

146  : Strategy(file, fileVersion) {
147  updateFile(file);
148  }
Strategy(TFile *file, int fileVersion)

Member Function Documentation

virtual edm::BranchListIndexes const& fwlite::internal::BranchMapReaderStrategyV1::branchListIndexes ( ) const
inlinevirtual
bool fwlite::internal::BranchMapReaderStrategyV1::updateFile ( TFile *  file)
virtual
bool fwlite::internal::BranchMapReaderStrategyV1::updateMap ( )
virtual

Reimplemented from fwlite::internal::Strategy.

Definition at line 158 of file BranchMapReader.cc.

References fwlite::internal::Strategy::bDesc_, scaleCards::br, fwlite::internal::Strategy::branchDescriptionMap_, fwlite::internal::Strategy::getBranchRegistry(), edm::InEvent, fwlite::internal::Strategy::mapperFilled_, and edm::ProductRegistry::productList().

158  {
159  if(mapperFilled_) {
160  return true;
161  }
162 
163  branchDescriptionMap_.clear();
164  bDesc_.clear();
165 
167  edm::ProductRegistry* pReg = &reg;
168  TBranch* br = getBranchRegistry(&pReg);
169 
170  if(0 != br) {
171  edm::ProductRegistry::ProductList const& prodList = reg.productList();
172 
173  for(edm::ProductRegistry::ProductList::const_iterator it = prodList.begin(), itEnd = prodList.end(); it != itEnd; ++it) {
174  if(edm::InEvent == it->second.branchType()) {
175  // call to regenerate branchName
176  it->second.init();
177  branchDescriptionMap_.insert(bidToDesc::value_type(it->second.branchID(), it->second));
178  }
179  }
180  mapperFilled_ = true;
181  }
182  return 0 != br;
183  }
std::map< BranchKey, BranchDescription > ProductList
std::vector< edm::BranchDescription > bDesc_
ProductList const & productList() const
tuple br
Definition: scaleCards.py:54
TBranch * getBranchRegistry(edm::ProductRegistry **pReg)
Container::value_type value_type
author Stefano ARGIRO author Bill Tanenbaum

Member Data Documentation

edm::BranchListIndexes fwlite::internal::BranchMapReaderStrategyV1::dummyBranchListIndexes_
private

Definition at line 142 of file BranchMapReader.cc.

Referenced by branchListIndexes().