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
edm::FileIndex
Definition: FileIndex.h:21
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
fwlite::EntryFinder::invalidEntry
static const EntryNumber_t invalidEntry
Definition: EntryFinder.h:41
fwlite
Definition: TFileDirectory.h:16
edm::IndexIntoFile
Definition: IndexIntoFile.h:225
fwlite::EntryFinder::findRun
EntryNumber_t findRun(edm::RunNumber_t const &run) const
Definition: EntryFinder.cc:91
fwlite::EntryFinder::EntryNumber_t
edm::IndexIntoFile::EntryNumber_t EntryNumber_t
Definition: EntryFinder.h:33
IndexIntoFile.h
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
edm::IndexIntoFile::empty
bool empty() const
True if no runs, lumis, or events are in the file.
Definition: IndexIntoFile.cc:487
fwlite::EntryFinder::fillIndex
void fillIndex(BranchMapReader &branchMap)
Definition: EntryFinder.cc:107
fwlite::EntryFinder::findEvent
EntryNumber_t findEvent(edm::RunNumber_t const &run, edm::LuminosityBlockNumber_t const &lumi, edm::EventNumber_t const &event) const
Definition: EntryFinder.cc:56
fwlite::EntryFinder::~EntryFinder
~EntryFinder()
Definition: EntryFinder.cc:54
fwlite::EntryFinder
Definition: EntryFinder.h:29
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
edm::FileIndex::empty
bool empty() const
Definition: FileIndex.h:99
fwlite::EntryFinder::empty
bool empty() const
Definition: EntryFinder.h:34
FileIndex.h
L1DTConfigBti_cff.LL
LL
Definition: L1DTConfigBti_cff.py:25
BranchMapReader
writedatasetfile.run
run
Definition: writedatasetfile.py:27
fwlite::EntryFinder::indexIntoFile_
edm::IndexIntoFile indexIntoFile_
Definition: EntryFinder.h:44
fwlite::BranchMapReader
Definition: BranchMapReader.h:70
fwlite::EntryFinder::EntryFinder
EntryFinder()
Definition: EntryFinder.cc:53
fwlite::EntryFinder::fileIndex_
edm::FileIndex fileIndex_
Definition: EntryFinder.h:45
fwlite::EntryFinder::findLumi
EntryNumber_t findLumi(edm::RunNumber_t const &run, edm::LuminosityBlockNumber_t const &lumi) const
Definition: EntryFinder.cc:74
edm::IndexIntoFile::EntryNumber_t
long long EntryNumber_t
Definition: IndexIntoFile.h:231
event
Definition: event.py:1
lumi
Definition: LumiSectionData.h:20