|
|
Go to the documentation of this file.
20 : allInEntryOrder_(
false), resultCached_(
false), sortState_(kSorted_Run_Lumi_Event) {}
23 allInEntryOrder_ =
false;
24 resultCached_ =
false;
50 for (std::vector<FileIndex::Element>::const_iterator it =
entries_.begin(), itEnd =
entries_.end(); it != itEnd;
52 if (it->getEntryType() ==
kEvent) {
53 if (it->entry_ < maxEntry) {
57 maxEntry = it->entry_;
76 bool lumiMissing = (
lumi == 0 &&
event != 0);
78 while (it != itEnd && it->run_ <
run) {
81 while (it != itEnd && (it->run_ ==
run && it->event_ <
event)) {
105 if (it->run_ !=
run || it->lumi_ !=
lumi || it->event_ !=
event) {
110 while (it != itEnd && it->run_ ==
run && it->lumi_ ==
lumi && it->event_ !=
event) {
113 if (it->run_ !=
run || it->lumi_ !=
lumi || it->event_ !=
event) {
129 if (it->run_ !=
run || it->lumi_ !=
lumi) {
144 if (it->run_ !=
run) {
172 while (it != itEnd && it->entry_ !=
entry && it->event_ ==
event) {
180 if (it->run_ !=
run || it->lumi_ !=
lumi || it->event_ !=
event || it->entry_ !=
entry)
200 }
else if (
lh.event_ == 0
U) {
214 os <<
"\nPrinting FileIndex contents. This includes a list of all Runs, LuminosityBlocks\n"
215 <<
"and Events stored in the root file.\n\n";
216 os << std::setw(15) <<
"Run" << std::setw(15) <<
"Lumi" << std::setw(15) <<
"Event" << std::setw(15)
219 for (std::vector<FileIndex::Element>::const_iterator it = fileIndex.
begin(), itEnd = fileIndex.
end(); it != itEnd;
222 os << std::setw(15) << it->run_ << std::setw(15) << it->lumi_ << std::setw(15) << it->event_ << std::setw(15)
223 << it->entry_ <<
"\n";
225 os << std::setw(15) << it->run_ << std::setw(15) << it->lumi_ << std::setw(15) <<
" " << std::setw(15)
226 << it->entry_ <<
" (LuminosityBlock)"
229 os << std::setw(15) << it->run_ << std::setw(15) <<
" " << std::setw(15) <<
" " << std::setw(15) << it->entry_
SortState & sortState() const
const_iterator findLumiPosition(RunNumber_t run, LuminosityBlockNumber_t lumi) const
const_iterator findEventPosition(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) const
bool & resultCached() const
std::vector< Element > entries_
const_iterator findLumiOrRunPosition(RunNumber_t run, LuminosityBlockNumber_t lumi) const
unsigned int LuminosityBlockNumber_t
const_iterator begin() const
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
bool operator()(FileIndex::Element const &lh, FileIndex::Element const &rh)
bool operator<(DetSet< T > const &x, DetSet< T > const &y)
unsigned long long EventNumber_t
const_iterator end() const
std::vector< Element >::const_iterator const_iterator
void addEntry(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, EntryNumber_t entry)
void sortBy_Run_Lumi_EventEntry()
bool & allInEntryOrder() const
const_iterator findPosition(RunNumber_t run, LuminosityBlockNumber_t lumi=0U, EventNumber_t event=0U) const
ForwardSequence::const_iterator lower_bound_all(ForwardSequence const &s, Datum const &d)
wrappers for std::lower_bound
static const EntryNumber_t invalidEntry
bool allEventsInEntryOrder() const
LuminosityBlockNumber_t lumi_
void sortBy_Run_Lumi_Event()
const_iterator findRunPosition(RunNumber_t run) const
const_iterator findEventEntryPosition(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, EntryNumber_t entry) const
void stable_sort_all(RandomAccessSequence &s)
wrappers for std::stable_sort