ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/RunLumiSet.h
Revision: 1.1
Committed: Sat May 29 18:10:14 2010 UTC (14 years, 11 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_014b, Mit_014a, Mit_014
Log Message:
Refactor lumi selection code a bit

File Contents

# User Rev Content
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