1 |
bendavid |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: BaseCollection.h,v 1.5 2009/03/12 18:19:47 loizides Exp $
|
3 |
|
|
//
|
4 |
|
|
// RunLumiSet
|
5 |
|
|
//
|
6 |
|
|
// Set of run,lumi pairs
|
7 |
|
|
//
|
8 |
|
|
// Authors: C.Loizides
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
|
|
#ifndef MITANA_DATACONT_RUNLUMISET_H
|
12 |
|
|
#define MITANA_DATACONT_RUNLUMISET_H
|
13 |
|
|
|
14 |
|
|
#include <TObject.h>
|
15 |
|
|
#include <set>
|
16 |
|
|
|
17 |
|
|
namespace mithep
|
18 |
|
|
{
|
19 |
|
|
class RunLumiSet : public TObject
|
20 |
|
|
{
|
21 |
|
|
public:
|
22 |
|
|
typedef std::pair<UInt_t,UInt_t> RunLumiPairType;
|
23 |
|
|
typedef std::set<RunLumiPairType> SetType;
|
24 |
|
|
|
25 |
|
|
RunLumiSet() {}
|
26 |
|
|
|
27 |
|
|
void Add(const RunLumiPairType &runlumi) { fSet.insert(runlumi); }
|
28 |
|
|
UInt_t GetEntries() const { return fSet.size(); }
|
29 |
|
|
|
30 |
|
|
protected:
|
31 |
|
|
SetType fSet;
|
32 |
|
|
|
33 |
|
|
ClassDef(RunLumiSet, 1) // Base class of all our collections
|
34 |
|
|
};
|
35 |
|
|
}
|
36 |
|
|
#endif
|