1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: RunLumiSet.h,v 1.2 2010/06/29 15:51:53 bendavid Exp $
|
3 |
//
|
4 |
// RunLumiSet
|
5 |
//
|
6 |
// Set of run,lumi pairs
|
7 |
//
|
8 |
// Authors: J.Bendavid
|
9 |
//--------------------------------------------------------------------------------------------------
|
10 |
|
11 |
#ifndef RUNLUMISET_H
|
12 |
#define RUNLUMISET_H
|
13 |
|
14 |
#include <TNamed.h>
|
15 |
#include <TCollection.h>
|
16 |
#include <TGraph.h>
|
17 |
#include <set>
|
18 |
|
19 |
class RunLumiSet : public TNamed
|
20 |
{
|
21 |
public:
|
22 |
typedef std::pair<UInt_t,UInt_t> RunLumiPairType;
|
23 |
typedef std::set<RunLumiPairType> SetType;
|
24 |
|
25 |
RunLumiSet() {}
|
26 |
RunLumiSet(const TGraph &graph);
|
27 |
|
28 |
void Add(const RunLumiPairType &runlumi) { fSet.insert(runlumi); }
|
29 |
void DumpJSONFile(const std::string &filepath);
|
30 |
UInt_t GetEntries() const { return fSet.size(); }
|
31 |
const SetType &runLumiSet() const { return fSet; }
|
32 |
Long64_t Merge(TCollection *list);
|
33 |
|
34 |
protected:
|
35 |
SetType fSet;
|
36 |
};
|
37 |
#endif
|