Revision: | 1.2 |
Committed: | Tue Jun 29 15:51:53 2010 UTC (14 years, 10 months ago) by bendavid |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, HEAD |
Branch point for: | Mit_025c_branch |
Changes since 1.1: | +6 -2 lines |
Log Message: | Add machinery for processed lumi json files |
# | Content |
---|---|
1 | //-------------------------------------------------------------------------------------------------- |
2 | // $Id: RunLumiRangeMap.h,v 1.1 2010/05/29 18:10:14 bendavid Exp $ |
3 | // |
4 | // RunLumiRangeMap |
5 | // |
6 | // Stores a list of map of run numbers to lists of lumi section ranges |
7 | // |
8 | // Authors: J.Bendavid |
9 | //-------------------------------------------------------------------------------------------------- |
10 | |
11 | #ifndef MITANA_DATACONT_RUNLUMIRANGEMAP_H |
12 | #define MITANA_DATACONT_RUNLUMIRANGEMAP_H |
13 | |
14 | #include <string> |
15 | #include <vector> |
16 | #include <map> |
17 | #include <TObject.h> |
18 | #include "MitAna/DataCont/interface/RunLumiSet.h" |
19 | |
20 | namespace mithep |
21 | { |
22 | class RunLumiRangeMap : public TObject |
23 | { |
24 | public: |
25 | typedef std::pair<UInt_t,UInt_t> RunLumiPairType; |
26 | typedef std::map<UInt_t,std::vector<RunLumiPairType> > MapType; |
27 | |
28 | RunLumiRangeMap() {} |
29 | RunLumiRangeMap(const RunLumiSet &rlset) { FillRunLumiSet(rlset); } |
30 | |
31 | void AddJSONFile(const std::string &filepath); |
32 | void DumpJSONFile(const std::string &filepath); |
33 | Bool_t HasRunLumi(const RunLumiPairType &runLumi) const; |
34 | |
35 | protected: |
36 | void FillRunLumiSet(const RunLumiSet &rlSet); |
37 | |
38 | MapType fMap; //mapped run-lumi ranges to accept |
39 | |
40 | ClassDef(RunLumiRangeMap, 1) // Base class of all our collections |
41 | }; |
42 | } |
43 | #endif |