CMS 3D CMS Logo

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

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

Private Attributes

edm::BranchListIndexes dummyBranchListIndexes_
 

Additional Inherited Members

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

Detailed Description

Definition at line 150 of file BranchMapReader.cc.

Constructor & Destructor Documentation

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

Definition at line 160 of file BranchMapReader.cc.

References updateFile().

161  : Strategy(file, fileVersion) {
162  updateFile(file);
163  }
Strategy(TFile *file, int fileVersion)

Member Function Documentation

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

Reimplemented from fwlite::internal::Strategy.

Definition at line 173 of file BranchMapReader.cc.

References fwlite::internal::Strategy::bDesc_, beamvalidation::br, fwlite::internal::Strategy::branchDescriptionMap_, edm::BranchDescription::branchID(), edm::BranchDescription::branchType(), fwlite::internal::Strategy::getBranchRegistry(), edm::InEvent, edm::BranchDescription::init(), fwlite::internal::Strategy::mapperFilled_, parseEventContent::prod, edm::ProductRegistry::productListUpdator(), and edm::ProductRegistry::setFrozen().

173  {
174  if(mapperFilled_) {
175  return true;
176  }
177 
178  branchDescriptionMap_.clear();
179  bDesc_.clear();
180 
182  edm::ProductRegistry* pReg = &reg;
183  TBranch* br = getBranchRegistry(&pReg);
184 
185  if(nullptr != br) {
187 
188  for(auto& item : prodList) {
189  edm::BranchDescription& prod = item.second;
190  if(edm::InEvent == prod.branchType()) {
191  // call to regenerate branchName
192  prod.init();
194  }
195  }
196  mapperFilled_ = true;
197  }
198  reg.setFrozen(false);
199  return nullptr != br;
200  }
BranchType const & branchType() const
std::map< BranchKey, BranchDescription > ProductList
std::vector< edm::BranchDescription > bDesc_
TBranch * getBranchRegistry(edm::ProductRegistry **pReg)
BranchID const & branchID() const
void setFrozen(bool initializeLookupInfo=true)
ProductList & productListUpdator()

Member Data Documentation

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