CMS 3D CMS Logo

EntryFinder.h
Go to the documentation of this file.
1 #ifndef DataFormats_FWLite_EntryFinder_h
2 #define DataFormats_FWLite_EntryFinder_h
3 // -*- C++ -*-
4 //
5 // Package: FWLite/DataFormats
6 // Class : EntryFinder
7 //
16 //
17 // Original Author: Bill Tanenbaum
18 //
19 // system include files
20 
21 // user include files
24 
25 // forward declarations
26 
27 namespace fwlite {
28  class BranchMapReader;
29  class EntryFinder {
30  public:
31  EntryFinder();
32  ~EntryFinder();
34  bool empty() const { return indexIntoFile_.empty() && fileIndex_.empty(); }
37  edm::EventNumber_t const& event) const;
40  void fillIndex(BranchMapReader& branchMap);
41  static EntryNumber_t const invalidEntry = -1LL;
42 
43  private:
46  };
47 } // namespace fwlite
48 #endif
EntryNumber_t findEvent(edm::RunNumber_t const &run, edm::LuminosityBlockNumber_t const &lumi, edm::EventNumber_t const &event) const
Definition: EntryFinder.cc:56
EntryNumber_t findRun(edm::RunNumber_t const &run) const
Definition: EntryFinder.cc:91
bool empty() const
Definition: FileIndex.h:99
unsigned long long EventNumber_t
edm::IndexIntoFile indexIntoFile_
Definition: EntryFinder.h:44
unsigned int LuminosityBlockNumber_t
long long EntryNumber_t
edm::IndexIntoFile::EntryNumber_t EntryNumber_t
Definition: EntryFinder.h:33
bool empty() const
True if no runs, lumis, or events are in the file.
void fillIndex(BranchMapReader &branchMap)
Definition: EntryFinder.cc:107
static EntryNumber_t const invalidEntry
Definition: EntryFinder.h:41
EntryNumber_t findLumi(edm::RunNumber_t const &run, edm::LuminosityBlockNumber_t const &lumi) const
Definition: EntryFinder.cc:74
edm::FileIndex fileIndex_
Definition: EntryFinder.h:45
bool empty() const
Definition: EntryFinder.h:34
unsigned int RunNumber_t
Definition: event.py:1