#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_, and indexIntoFile_.
Referenced by fillIndex().
void fwlite::EntryFinder::fillIndex | ( | BranchMapReader & | branchMap | ) |
Definition at line 108 of file EntryFinder.cc.
References assert(), 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().
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 runTheMatrix::ret.
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 runTheMatrix::ret.
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 runTheMatrix::ret.
|
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(), and findRun().