ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/RunLumiSet.h
Revision: 1.2
Committed: Tue Jun 29 15:51:53 2010 UTC (14 years, 10 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, HEAD
Branch point for: Mit_025c_branch
Changes since 1.1: +10 -4 lines
Log Message:
Add machinery for processed lumi json files

File Contents

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