#include <FileIndex.h>
Classes | |
class | Element |
struct | Transients |
Public Types | |
typedef std::vector< Element > ::const_iterator | const_iterator |
typedef long long | EntryNumber_t |
enum | EntryType { kRun, kLumi, kEvent, kEnd } |
typedef std::vector< Element > ::iterator | iterator |
enum | SortState { kNotSorted, kSorted_Run_Lumi_Event, kSorted_Run_Lumi_EventEntry } |
Private Member Functions | |
bool & | allInEntryOrder () const |
bool & | resultCached () const |
SortState & | sortState () const |
Private Attributes | |
std::vector< Element > | entries_ |
Transients | transient_ |
Definition at line 20 of file FileIndex.h.
typedef std::vector<Element>::const_iterator edm::FileIndex::const_iterator |
Definition at line 53 of file FileIndex.h.
typedef long long edm::FileIndex::EntryNumber_t |
Definition at line 23 of file FileIndex.h.
typedef std::vector<Element>::iterator edm::FileIndex::iterator |
Definition at line 55 of file FileIndex.h.
Enumerator | |
---|---|
kRun | |
kLumi | |
kEvent | |
kEnd |
Definition at line 30 of file FileIndex.h.
Enumerator | |
---|---|
kNotSorted | |
kSorted_Run_Lumi_Event | |
kSorted_Run_Lumi_EventEntry |
Definition at line 116 of file FileIndex.h.
edm::FileIndex::FileIndex | ( | ) |
Definition at line 10 of file FileIndex.cc.
|
inline |
Definition at line 26 of file FileIndex.h.
void edm::FileIndex::addEntry | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event, | ||
EntryNumber_t | entry | ||
) |
Definition at line 29 of file FileIndex.cc.
References entries_, kNotSorted, resultCached(), and sortState().
bool edm::FileIndex::allEventsInEntryOrder | ( | ) | const |
Definition at line 47 of file FileIndex.cc.
References allInEntryOrder(), entries_, edm::FileIndex::Element::invalidEntry, kEvent, and resultCached().
|
inlineprivate |
Definition at line 130 of file FileIndex.h.
References edm::FileIndex::Transients::allInEntryOrder_, and transient_.
Referenced by allEventsInEntryOrder().
|
inline |
Definition at line 98 of file FileIndex.h.
References entries_.
Referenced by edm::operator<<(), and edm::preIndexIntoFilePrintEventsInLumis().
|
inline |
|
inline |
Definition at line 84 of file FileIndex.h.
References entries_, and findEventPosition().
Referenced by containsItem().
|
inline |
Definition at line 79 of file FileIndex.h.
References containsEvent(), containsLumi(), and containsRun().
|
inline |
Definition at line 89 of file FileIndex.h.
References entries_, and findLumiPosition().
Referenced by containsItem().
|
inline |
Definition at line 94 of file FileIndex.h.
References entries_, and findRunPosition().
Referenced by containsItem().
|
inline |
Definition at line 112 of file FileIndex.h.
References entries_.
Referenced by fwlite::EntryFinder::empty(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
Definition at line 100 of file FileIndex.h.
References entries_.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), fwlite::EntryFinder::findEvent(), fwlite::EntryFinder::findLumi(), fwlite::EntryFinder::findRun(), edm::operator<<(), and edm::preIndexIntoFilePrintEventsInLumis().
|
inline |
Definition at line 104 of file FileIndex.h.
References entries_.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
FileIndex::const_iterator edm::FileIndex::findEventEntryPosition | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event, | ||
EntryNumber_t | entry | ||
) | const |
Definition at line 162 of file FileIndex.cc.
References assert(), entries_, findEventPosition(), kNotSorted, kSorted_Run_Lumi_EventEntry, edm::lower_bound_all(), and sortState().
FileIndex::const_iterator edm::FileIndex::findEventPosition | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi, | ||
EventNumber_t | event | ||
) | const |
Definition at line 91 of file FileIndex.cc.
References entries_, findPosition(), kEvent, kSorted_Run_Lumi_Event, and sortState().
Referenced by containsEvent(), fwlite::EntryFinder::findEvent(), and findEventEntryPosition().
FileIndex::const_iterator edm::FileIndex::findLumiOrRunPosition | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) | const |
Definition at line 152 of file FileIndex.cc.
References entries_, findPosition(), kLumi, and kRun.
FileIndex::const_iterator edm::FileIndex::findLumiPosition | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi | ||
) | const |
Definition at line 120 of file FileIndex.cc.
References entries_, findPosition(), and kLumi.
Referenced by containsLumi(), and fwlite::EntryFinder::findLumi().
FileIndex::const_iterator edm::FileIndex::findPosition | ( | RunNumber_t | run, |
LuminosityBlockNumber_t | lumi = 0U , |
||
EventNumber_t | event = 0U |
||
) | const |
Definition at line 67 of file FileIndex.cc.
References assert(), entries_, kNotSorted, kSorted_Run_Lumi_Event, edm::lower_bound_all(), and sortState().
Referenced by findEventPosition(), findLumiOrRunPosition(), findLumiPosition(), and findRunPosition().
FileIndex::const_iterator edm::FileIndex::findRunPosition | ( | RunNumber_t | run | ) | const |
Definition at line 136 of file FileIndex.cc.
References entries_, findPosition(), and kRun.
Referenced by containsRun(), and fwlite::EntryFinder::findRun().
|
inline |
Definition at line 118 of file FileIndex.h.
References edm::FileIndex::Transients::reset(), and transient_.
|
inlineprivate |
Definition at line 131 of file FileIndex.h.
References edm::FileIndex::Transients::resultCached_, and transient_.
Referenced by addEntry(), allEventsInEntryOrder(), sortBy_Run_Lumi_Event(), and sortBy_Run_Lumi_EventEntry().
|
inline |
Definition at line 110 of file FileIndex.h.
References entries_.
Referenced by ntuple._Collection::__iter__(), and ntuple._Collection::__len__().
void edm::FileIndex::sortBy_Run_Lumi_Event | ( | ) |
Definition at line 35 of file FileIndex.cc.
References entries_, kSorted_Run_Lumi_Event, resultCached(), sortState(), and edm::stable_sort_all().
void edm::FileIndex::sortBy_Run_Lumi_EventEntry | ( | ) |
Definition at line 41 of file FileIndex.cc.
References entries_, kSorted_Run_Lumi_EventEntry, resultCached(), sortState(), and edm::stable_sort_all().
|
inlineprivate |
Definition at line 132 of file FileIndex.h.
References edm::FileIndex::Transients::sortState_, and transient_.
Referenced by addEntry(), findEventEntryPosition(), findEventPosition(), findPosition(), sortBy_Run_Lumi_Event(), and sortBy_Run_Lumi_EventEntry().
|
private |
Definition at line 134 of file FileIndex.h.
Referenced by addEntry(), allEventsInEntryOrder(), begin(), containsEvent(), containsLumi(), containsRun(), empty(), end(), erase(), findEventEntryPosition(), findEventPosition(), findLumiOrRunPosition(), findLumiPosition(), findPosition(), findRunPosition(), size(), sortBy_Run_Lumi_Event(), and sortBy_Run_Lumi_EventEntry().
|
mutableprivate |
Definition at line 135 of file FileIndex.h.
Referenced by allInEntryOrder(), initializeTransients(), resultCached(), and sortState().