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 ~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 158 of file BranchMapReader.cc.

Constructor & Destructor Documentation

◆ BranchMapReaderStrategyV1()

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

Definition at line 169 of file BranchMapReader.cc.

169  : Strategy(file, fileVersion) {
170  updateFile(file);
171  }

References FrontierConditions_GlobalTag_cff::file, and updateFile().

Member Function Documentation

◆ branchListIndexes()

edm::BranchListIndexes const& fwlite::internal::BranchMapReaderStrategyV1::branchListIndexes ( ) const
inlineoverridevirtual

Implements fwlite::internal::BMRStrategy.

Reimplemented in fwlite::internal::BranchMapReaderStrategyV7.

Definition at line 163 of file BranchMapReader.cc.

163 { return dummyBranchListIndexes_; }

References dummyBranchListIndexes_.

◆ updateFile()

bool fwlite::internal::BranchMapReaderStrategyV1::updateFile ( TFile *  file)
overridevirtual

◆ updateMap()

bool fwlite::internal::BranchMapReaderStrategyV1::updateMap ( )
overridevirtual

Reimplemented from fwlite::internal::Strategy.

Definition at line 181 of file BranchMapReader.cc.

181  {
182  if (mapperFilled_) {
183  return true;
184  }
185 
186  branchDescriptionMap_.clear();
187  bDesc_.clear();
188 
190  edm::ProductRegistry* pReg = &reg;
191  TBranch* br = getBranchRegistry(&pReg);
192 
193  if (nullptr != br) {
195 
196  for (auto& item : prodList) {
197  edm::BranchDescription& prod = item.second;
198  if (edm::InEvent == prod.branchType()) {
199  // call to regenerate branchName
200  prod.init();
202  }
203  }
204  mapperFilled_ = true;
205  }
206  reg.setFrozen(false);
207  return nullptr != br;
208  }

References fwlite::internal::Strategy::bDesc_, beamvalidation::br, fwlite::internal::Strategy::branchDescriptionMap_, fwlite::internal::Strategy::getBranchRegistry(), edm::InEvent, B2GTnPMonitor_cfi::item, fwlite::internal::Strategy::mapperFilled_, dumpMFGeometry_cfg::prod, edm::ProductRegistry::productListUpdator(), and edm::ProductRegistry::setFrozen().

Member Data Documentation

◆ dummyBranchListIndexes_

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

Definition at line 166 of file BranchMapReader.cc.

Referenced by branchListIndexes().

fwlite::internal::Strategy::updateFile
bool updateFile(TFile *file) override
Definition: BranchMapReader.cc:105
fwlite::internal::BranchMapReaderStrategyV1::updateFile
bool updateFile(TFile *file) override
Definition: BranchMapReader.cc:173
fwlite::internal::Strategy::branchDescriptionMap_
bidToDesc branchDescriptionMap_
Definition: BranchMapReader.cc:87
edm::ProductRegistry::setFrozen
void setFrozen(bool initializeLookupInfo=true)
Definition: ProductRegistry.cc:165
fwlite::internal::Strategy::mapperFilled_
bool mapperFilled_
Definition: BranchMapReader.cc:89
fwlite::internal::Strategy::bDesc_
std::vector< edm::BranchDescription > bDesc_
Definition: BranchMapReader.cc:88
fwlite::internal::Strategy::Strategy
Strategy(TFile *file, int fileVersion)
Definition: BranchMapReader.cc:93
edm::ProductRegistry
Definition: ProductRegistry.h:34
edm::ProductRegistry::productListUpdator
ProductList & productListUpdator()
Definition: ProductRegistry.h:78
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
fwlite::internal::BranchMapReaderStrategyV1::dummyBranchListIndexes_
edm::BranchListIndexes dummyBranchListIndexes_
Definition: BranchMapReader.cc:166
edm::InEvent
Definition: BranchType.h:11
edm::ProductRegistry::ProductList
std::map< BranchKey, BranchDescription > ProductList
Definition: ProductRegistry.h:36
beamvalidation.br
br
Definition: beamvalidation.py:398
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
fwlite::internal::Strategy::getBranchRegistry
TBranch * getBranchRegistry(edm::ProductRegistry **pReg)
Definition: BranchMapReader.cc:116
edm::BranchDescription
Definition: BranchDescription.h:32