#include <EntryFinder.h>
Public Types | |
typedef edm::IndexIntoFile::EntryNumber_t | EntryNumber_t |
Public Member Functions | |
bool | empty () const |
EntryFinder () | |
void | fillIndex (BranchMapReader &branchMap) |
EntryNumber_t | findEvent (edm::RunNumber_t const &run, edm::LuminosityBlockNumber_t const &lumi, edm::EventNumber_t const &event) const |
EntryNumber_t | findLumi (edm::RunNumber_t const &run, edm::LuminosityBlockNumber_t const &lumi) const |
EntryNumber_t | findRun (edm::RunNumber_t const &run) const |
~EntryFinder () | |
Static Public Attributes | |
static EntryNumber_t const | invalidEntry = -1LL |
Private Attributes | |
edm::FileIndex | fileIndex_ |
edm::IndexIntoFile | indexIntoFile_ |
Definition at line 29 of file EntryFinder.h.
Definition at line 33 of file EntryFinder.h.
fwlite::EntryFinder::EntryFinder | ( | ) |
Definition at line 53 of file EntryFinder.cc.
fwlite::EntryFinder::~EntryFinder | ( | ) |
Definition at line 54 of file EntryFinder.cc.
|
inline |
Definition at line 34 of file EntryFinder.h.
References edm::FileIndex::empty(), edm::IndexIntoFile::empty(), fileIndex_, fillIndex(), findEvent(), findLumi(), findRun(), indexIntoFile_, and writedatasetfile::run.
Referenced by fillIndex(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
void fwlite::EntryFinder::fillIndex | ( | BranchMapReader & | branchMap | ) |
Definition at line 108 of file EntryFinder.cc.
References b, edm::BranchTypeToAuxiliaryBranchName(), empty(), edm::poolNames::eventTreeName(), Exception, fileIndex_, edm::poolNames::fileIndexBranchName(), fwlite::BranchMapReader::getEventTree(), fwlite::BranchMapReader::getFile(), indexIntoFile_, edm::poolNames::indexIntoFileBranchName(), edm::InEvent, edm::poolNames::metaDataTreeName(), edm::IndexIntoFile::setEventFinder(), and edm::IndexIntoFile::setNumberOfEvents().
Referenced by empty(), fwlite::Event::indexFromEventId(), fwlite::Run::to(), fwlite::LuminosityBlock::to(), and fwlite::Event::to().
EntryFinder::EntryNumber_t fwlite::EntryFinder::findEvent | ( | edm::RunNumber_t const & | run, |
edm::LuminosityBlockNumber_t const & | lumi, | ||
edm::EventNumber_t const & | event | ||
) | const |
Definition at line 57 of file EntryFinder.cc.
References edm::IndexIntoFile::empty(), edm::FileIndex::end(), edm::IndexIntoFile::end(), edm::IndexIntoFile::IndexIntoFileItr::entry(), fileIndex_, edm::FileIndex::findEventPosition(), edm::IndexIntoFile::findEventPosition(), mps_fire::i, indexIntoFile_, invalidEntry, and edm::IndexIntoFile::numericalOrder.
Referenced by empty(), fwlite::Event::indexFromEventId(), and fwlite::Event::to().
EntryFinder::EntryNumber_t fwlite::EntryFinder::findLumi | ( | edm::RunNumber_t const & | run, |
edm::LuminosityBlockNumber_t const & | lumi | ||
) | const |
Definition at line 74 of file EntryFinder.cc.
References edm::IndexIntoFile::empty(), edm::FileIndex::end(), edm::IndexIntoFile::end(), edm::IndexIntoFile::IndexIntoFileItr::entry(), fileIndex_, edm::FileIndex::findLumiPosition(), edm::IndexIntoFile::findLumiPosition(), mps_fire::i, indexIntoFile_, invalidEntry, and edm::IndexIntoFile::numericalOrder.
Referenced by empty(), and fwlite::LuminosityBlock::to().
EntryFinder::EntryNumber_t fwlite::EntryFinder::findRun | ( | edm::RunNumber_t const & | run | ) | const |
Definition at line 91 of file EntryFinder.cc.
References edm::IndexIntoFile::empty(), edm::FileIndex::end(), edm::IndexIntoFile::end(), edm::IndexIntoFile::IndexIntoFileItr::entry(), fileIndex_, edm::FileIndex::findRunPosition(), edm::IndexIntoFile::findRunPosition(), mps_fire::i, indexIntoFile_, invalidEntry, and edm::IndexIntoFile::numericalOrder.
Referenced by empty(), and fwlite::Run::to().
|
private |
Definition at line 42 of file EntryFinder.h.
Referenced by empty(), fillIndex(), findEvent(), findLumi(), and findRun().
|
private |
Definition at line 41 of file EntryFinder.h.
Referenced by empty(), fillIndex(), findEvent(), findLumi(), and findRun().
|
static |
Definition at line 39 of file EntryFinder.h.
Referenced by findEvent(), findLumi(), findRun(), fwlite::Event::indexFromEventId(), fwlite::Run::to(), fwlite::LuminosityBlock::to(), and fwlite::Event::to().