1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: BaseCollection.h,v 1.5 2009/03/12 18:19:47 loizides Exp $
|
3 |
|
|
//
|
4 |
|
|
// RunLumiRangeMap
|
5 |
|
|
//
|
6 |
|
|
// Stores a list of map of run numbers to lists of lumi section ranges
|
7 |
|
|
//
|
8 |
|
|
// Authors: C.Loizides
|
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 |
|
|
|
19 |
|
|
namespace mithep
|
20 |
|
|
{
|
21 |
|
|
class RunLumiRangeMap : public TObject
|
22 |
|
|
{
|
23 |
|
|
public:
|
24 |
|
|
typedef std::pair<UInt_t,UInt_t> RunLumiPairType;
|
25 |
|
|
typedef std::map<UInt_t,std::vector<RunLumiPairType> > MapType;
|
26 |
|
|
|
27 |
|
|
RunLumiRangeMap() {}
|
28 |
|
|
|
29 |
|
|
void AddJSONFile(const std::string &filepath);
|
30 |
|
|
void DumpJSONFile(const std::string &filepath);
|
31 |
|
|
Bool_t HasRunLumi(const RunLumiPairType &runLumi) const;
|
32 |
|
|
|
33 |
|
|
protected:
|
34 |
|
|
MapType fMap; //mapped run-lumi ranges to accept
|
35 |
|
|
|
36 |
|
|
ClassDef(RunLumiRangeMap, 1) // Base class of all our collections
|
37 |
|
|
};
|
38 |
|
|
}
|
39 |
|
|
#endif
|