5 |
|
// |
6 |
|
// Stores a list of map of run numbers to lists of lumi section ranges |
7 |
|
// |
8 |
< |
// Authors: C.Loizides |
8 |
> |
// Authors: J.Bendavid |
9 |
|
//-------------------------------------------------------------------------------------------------- |
10 |
|
|
11 |
|
#ifndef MITANA_DATACONT_RUNLUMIRANGEMAP_H |
15 |
|
#include <vector> |
16 |
|
#include <map> |
17 |
|
#include <TObject.h> |
18 |
+ |
#include "MitAna/DataCont/interface/RunLumiSet.h" |
19 |
|
|
20 |
|
namespace mithep |
21 |
|
{ |
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 |