Public Member Functions | |
virtual edm::BranchListIndexes const & | branchListIndexes () const |
BranchMapReaderStrategyV1 (TFile *file, int fileVersion) | |
virtual bool | updateFile (TFile *file) |
virtual bool | updateMap () |
Private Attributes | |
edm::BranchListIndexes | dummyBranchListIndexes_ |
Definition at line 135 of file BranchMapReader.cc.
fwlite::internal::BranchMapReaderStrategyV1::BranchMapReaderStrategyV1 | ( | TFile * | file, |
int | fileVersion | ||
) |
Definition at line 145 of file BranchMapReader.cc.
References updateFile().
: Strategy(file, fileVersion) { updateFile(file); }
virtual edm::BranchListIndexes const& fwlite::internal::BranchMapReaderStrategyV1::branchListIndexes | ( | ) | const [inline, virtual] |
Implements fwlite::internal::BMRStrategy.
Reimplemented in fwlite::internal::BranchMapReaderStrategyV7.
Definition at line 140 of file BranchMapReader.cc.
References dummyBranchListIndexes_.
{return dummyBranchListIndexes_;}
bool fwlite::internal::BranchMapReaderStrategyV1::updateFile | ( | TFile * | file | ) | [virtual] |
Reimplemented from fwlite::internal::Strategy.
Definition at line 150 of file BranchMapReader.cc.
References fwlite::internal::Strategy::mapperFilled_, and fwlite::internal::Strategy::updateFile().
Referenced by BranchMapReaderStrategyV1(), and fwlite::internal::BranchMapReaderStrategyV7::BranchMapReaderStrategyV7().
{ if(Strategy::updateFile(file)) { mapperFilled_ = false; return true; } return false; }
bool fwlite::internal::BranchMapReaderStrategyV1::updateMap | ( | ) | [virtual] |
Reimplemented from fwlite::internal::Strategy.
Definition at line 158 of file BranchMapReader.cc.
References fwlite::internal::Strategy::bDesc_, beamvalidation::br, fwlite::internal::Strategy::branchDescriptionMap_, fwlite::internal::Strategy::getBranchRegistry(), edm::InEvent, fwlite::internal::Strategy::mapperFilled_, and edm::ProductRegistry::productList().
{ if(mapperFilled_) { return true; } branchDescriptionMap_.clear(); bDesc_.clear(); edm::ProductRegistry reg; edm::ProductRegistry* pReg = ® TBranch* br = getBranchRegistry(&pReg); if(0 != br) { edm::ProductRegistry::ProductList const& prodList = reg.productList(); for(edm::ProductRegistry::ProductList::const_iterator it = prodList.begin(), itEnd = prodList.end(); it != itEnd; ++it) { if(edm::InEvent == it->second.branchType()) { // call to regenerate branchName it->second.init(); branchDescriptionMap_.insert(bidToDesc::value_type(it->second.branchID(), it->second)); } } mapperFilled_ = true; } return 0 != br; }
edm::BranchListIndexes fwlite::internal::BranchMapReaderStrategyV1::dummyBranchListIndexes_ [private] |
Reimplemented in fwlite::internal::BranchMapReaderStrategyV7.
Definition at line 142 of file BranchMapReader.cc.
Referenced by branchListIndexes().