Public Member Functions | |
BranchMapReaderStrategyV8 (TFile *file, int fileVersion) | |
virtual bool | updateEvent (Long_t eventEntry) |
virtual bool | updateFile (TFile *file) |
virtual bool | updateLuminosityBlock (Long_t luminosityBlockEntry) |
virtual bool | updateMap () |
virtual bool | updateRun (Long_t runEntry) |
Private Attributes | |
TBranch * | entryInfoBranch_ |
edm::EventEntryInfoVector | eventEntryInfoVector_ |
edm::EventEntryInfoVector * | pEventEntryInfoVector_ |
Definition at line 194 of file BranchMapReader.cc.
fwlite::internal::BranchMapReaderStrategyV8::BranchMapReaderStrategyV8 | ( | TFile * | file, |
int | fileVersion | ||
) |
Definition at line 208 of file BranchMapReader.cc.
References updateFile().
: Strategy(file, fileVersion), eventEntryInfoVector_(), pEventEntryInfoVector_(&eventEntryInfoVector_) { updateFile(file); }
bool fwlite::internal::BranchMapReaderStrategyV8::updateEvent | ( | Long_t | eventEntry | ) | [virtual] |
Reimplemented from fwlite::internal::Strategy.
Definition at line 214 of file BranchMapReader.cc.
References fwlite::internal::BMRStrategy::eventEntry_, and fwlite::internal::Strategy::mapperFilled_.
{ // std::cout << "v8 updateevent " << newevent << std::endl; if(newevent != eventEntry_) { eventEntry_ = newevent; mapperFilled_ = false; } return true; }
bool fwlite::internal::BranchMapReaderStrategyV8::updateFile | ( | TFile * | file | ) | [virtual] |
Reimplemented from fwlite::internal::Strategy.
Definition at line 239 of file BranchMapReader.cc.
References fwlite::internal::Strategy::bDesc_, beamvalidation::br, fwlite::internal::Strategy::branchDescriptionMap_, edm::BranchTypeToBranchEntryInfoBranchName(), fwlite::internal::BMRStrategy::currentFile_, entryInfoBranch_, eventEntryInfoVector_, edm::poolNames::eventMetaDataTreeName(), fwlite::internal::Strategy::getBranchRegistry(), edm::InEvent, fwlite::internal::Strategy::mapperFilled_, pEventEntryInfoVector_, and edm::ProductRegistry::productList().
Referenced by BranchMapReaderStrategyV8().
{ Strategy::updateFile(file); mapperFilled_ = false; entryInfoBranch_ = 0; TTree* metaDataTree = dynamic_cast<TTree*>(currentFile_->Get(edm::poolNames::eventMetaDataTreeName().c_str())); if(0 != metaDataTree) { entryInfoBranch_ = metaDataTree->GetBranch(BranchTypeToBranchEntryInfoBranchName(edm::InEvent).c_str()); // std::cout << "entryInfoBranch for " << BranchTypeToBranchEntryInfoBranchName(edm::InEvent) << " " << entryInfoBranch_ << std::endl; } else { return false; } pEventEntryInfoVector_ = &eventEntryInfoVector_; entryInfoBranch_->SetAddress(&pEventEntryInfoVector_); 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)); } } } return 0 != br; }
bool fwlite::internal::BranchMapReaderStrategyV8::updateLuminosityBlock | ( | Long_t | luminosityBlockEntry | ) | [virtual] |
Reimplemented from fwlite::internal::Strategy.
Definition at line 223 of file BranchMapReader.cc.
References fwlite::internal::BMRStrategy::luminosityBlockEntry_, and fwlite::internal::Strategy::mapperFilled_.
{ if(newLumi != luminosityBlockEntry_) { luminosityBlockEntry_ = newLumi; mapperFilled_ = false; } return true; }
bool fwlite::internal::BranchMapReaderStrategyV8::updateMap | ( | ) | [virtual] |
Reimplemented from fwlite::internal::Strategy.
Definition at line 274 of file BranchMapReader.cc.
References entryInfoBranch_, fwlite::internal::BMRStrategy::eventEntry_, fwlite::internal::Strategy::mapperFilled_, and pEventEntryInfoVector_.
{ if(mapperFilled_) { return true; } assert(entryInfoBranch_); entryInfoBranch_->GetEntry(eventEntry_); for(std::vector<edm::EventEntryInfo>::const_iterator it = pEventEntryInfoVector_->begin(), itEnd = pEventEntryInfoVector_->end(); it != itEnd; ++it) { // eventInfoMap_.insert(*it); } mapperFilled_ = true; return true; }
bool fwlite::internal::BranchMapReaderStrategyV8::updateRun | ( | Long_t | runEntry | ) | [virtual] |
Reimplemented from fwlite::internal::Strategy.
Definition at line 231 of file BranchMapReader.cc.
References fwlite::internal::Strategy::mapperFilled_, and fwlite::internal::BMRStrategy::runEntry_.
{ if(newRun != runEntry_) { runEntry_ = newRun; mapperFilled_ = false; } return true; }
TBranch* fwlite::internal::BranchMapReaderStrategyV8::entryInfoBranch_ [private] |
Definition at line 203 of file BranchMapReader.cc.
Referenced by updateFile(), and updateMap().
edm::EventEntryInfoVector fwlite::internal::BranchMapReaderStrategyV8::eventEntryInfoVector_ [private] |
Definition at line 204 of file BranchMapReader.cc.
Referenced by updateFile().
edm::EventEntryInfoVector* fwlite::internal::BranchMapReaderStrategyV8::pEventEntryInfoVector_ [private] |
Definition at line 205 of file BranchMapReader.cc.
Referenced by updateFile(), and updateMap().