#include <EntryFinder.h>
Public Types | |
typedef edm::IndexIntoFile::EntryNumber_t | EntryNumber_t |
Public Member Functions | |
bool | empty () const |
EntryFinder () | |
void | fillIndex (BranchMapReader const &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 30 of file EntryFinder.h.
Definition at line 34 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 35 of file EntryFinder.h.
References edm::FileIndex::empty(), edm::IndexIntoFile::empty(), fileIndex_, and indexIntoFile_.
Referenced by fillIndex(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
void fwlite::EntryFinder::fillIndex | ( | BranchMapReader const & | branchMap | ) |
Definition at line 108 of file EntryFinder.cc.
References b, edm::BranchTypeToAuxiliaryBranchName(), empty(), edm::poolNames::eventTreeName(), edm::hlt::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 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(), i, indexIntoFile_, invalidEntry, edm::IndexIntoFile::numericalOrder, and run_regression::ret.
Referenced by 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(), i, indexIntoFile_, invalidEntry, edm::IndexIntoFile::numericalOrder, and run_regression::ret.
Referenced by 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(), i, indexIntoFile_, invalidEntry, edm::IndexIntoFile::numericalOrder, and run_regression::ret.
Referenced by fwlite::Run::to().
|
private |
Definition at line 43 of file EntryFinder.h.
Referenced by empty(), fillIndex(), findEvent(), findLumi(), and findRun().
|
private |
Definition at line 42 of file EntryFinder.h.
Referenced by empty(), fillIndex(), findEvent(), findLumi(), and findRun().
|
static |
Definition at line 40 of file EntryFinder.h.
Referenced by findEvent(), findLumi(), findRun(), fwlite::Event::indexFromEventId(), fwlite::Run::to(), fwlite::LuminosityBlock::to(), and fwlite::Event::to().