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 override
 
 BranchMapReaderStrategyV1 (TFile *file, int fileVersion)
 
virtual bool updateFile (TFile *file) override
 
virtual bool updateMap () override
 
- Public Member Functions inherited from fwlite::internal::Strategy
virtual edm::BranchDescription
const & 
branchIDToBranch (edm::BranchID const &bid) const override
 
virtual std::vector
< edm::BranchDescription >
const & 
getBranchDescriptions () override
 
TBranch * getBranchRegistry (edm::ProductRegistry **pReg)
 
virtual edm::BranchDescription
const & 
productToBranch (edm::ProductID const &pid) override
 
virtual edm::BranchID productToBranchID (edm::ProductID const &pid) override
 
 Strategy (TFile *file, int fileVersion)
 
virtual
edm::ThinnedAssociationsHelper
const & 
thinnedAssociationsHelper () const override
 
virtual bool updateEvent (Long_t eventEntry) override
 
virtual bool updateLuminosityBlock (Long_t luminosityBlockEntry) override
 
virtual bool updateRun (Long_t runEntry) override
 
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_
 
std::unique_ptr
< edm::ThinnedAssociationsHelper
thinnedAssociationsHelper_
 
- 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 149 of file BranchMapReader.cc.

Constructor & Destructor Documentation

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

Definition at line 159 of file BranchMapReader.cc.

References updateFile().

160  : Strategy(file, fileVersion) {
161  updateFile(file);
162  }
virtual bool updateFile(TFile *file) override
Strategy(TFile *file, int fileVersion)

Member Function Documentation

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

Reimplemented from fwlite::internal::Strategy.

Definition at line 164 of file BranchMapReader.cc.

References fwlite::internal::Strategy::mapperFilled_, and fwlite::internal::Strategy::updateFile().

Referenced by BranchMapReaderStrategyV1(), and fwlite::internal::BranchMapReaderStrategyV7::BranchMapReaderStrategyV7().

164  {
166  mapperFilled_ = false;
167  return true;
168  }
169  return false;
170  }
virtual bool updateFile(TFile *file) override
bool fwlite::internal::BranchMapReaderStrategyV1::updateMap ( )
overridevirtual

Reimplemented from fwlite::internal::Strategy.

Definition at line 172 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().

172  {
173  if(mapperFilled_) {
174  return true;
175  }
176 
177  branchDescriptionMap_.clear();
178  bDesc_.clear();
179 
181  edm::ProductRegistry* pReg = &reg;
182  TBranch* br = getBranchRegistry(&pReg);
183 
184  if(0 != br) {
186 
187  for(auto& item : prodList) {
188  edm::BranchDescription& prod = item.second;
189  if(edm::InEvent == prod.branchType()) {
190  // call to regenerate branchName
191  prod.init();
193  }
194  }
195  mapperFilled_ = true;
196  }
197  reg.setFrozen(false);
198  return 0 != br;
199  }
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)
Container::value_type value_type
ProductList & productListUpdator()

Member Data Documentation

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

Definition at line 156 of file BranchMapReader.cc.

Referenced by branchListIndexes().