#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 21 of file FileIndex.h.
typedef std::vector<Element>::const_iterator edm::FileIndex::const_iterator |
Definition at line 49 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 51 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 103 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 28 of file FileIndex.cc.
References entries_, kNotSorted, resultCached(), and sortState().
bool edm::FileIndex::allEventsInEntryOrder | ( | ) | const |
Definition at line 46 of file FileIndex.cc.
References allInEntryOrder(), entries_, edm::FileIndex::Element::invalidEntry, kEvent, and resultCached().
|
inlineprivate |
Definition at line 116 of file FileIndex.h.
References edm::FileIndex::Transients::allInEntryOrder_, and transient_.
Referenced by allEventsInEntryOrder().
|
inline |
Definition at line 85 of file FileIndex.h.
References entries_.
Referenced by edm::operator<<(), and edm::preIndexIntoFilePrintEventsInLumis().
|
inline |
|
inline |
Definition at line 75 of file FileIndex.h.
References entries_, and findEventPosition().
Referenced by containsItem().
|
inline |
Definition at line 71 of file FileIndex.h.
References containsEvent(), containsLumi(), and containsRun().
|
inline |
Definition at line 79 of file FileIndex.h.
References entries_, and findLumiPosition().
Referenced by containsItem().
|
inline |
Definition at line 83 of file FileIndex.h.
References entries_, and findRunPosition().
Referenced by containsItem().
|
inline |
Definition at line 99 of file FileIndex.h.
References entries_.
Referenced by fwlite::EntryFinder::empty().
|
inline |
Definition at line 87 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 91 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 159 of file FileIndex.cc.
References cms::cuda::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 150 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 66 of file FileIndex.cc.
References cms::cuda::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 135 of file FileIndex.cc.
References entries_, findPosition(), and kRun.
Referenced by containsRun(), and fwlite::EntryFinder::findRun().
|
inline |
Definition at line 105 of file FileIndex.h.
References edm::FileIndex::Transients::reset(), and transient_.
|
inlineprivate |
Definition at line 117 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 97 of file FileIndex.h.
References entries_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
void edm::FileIndex::sortBy_Run_Lumi_Event | ( | ) |
Definition at line 34 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 40 of file FileIndex.cc.
References entries_, kSorted_Run_Lumi_EventEntry, resultCached(), sortState(), and edm::stable_sort_all().
|
inlineprivate |
Definition at line 118 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 120 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 122 of file FileIndex.h.
Referenced by allInEntryOrder(), initializeTransients(), resultCached(), and sortState().