ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Util/interface/RunLumiSet.h
Revision: 1.1
Committed: Wed Sep 14 12:11:57 2011 UTC (13 years, 8 months ago) by dkralph
Content type: text/plain
Branch: MAIN
CVS Tags: synced_FSR_2, synced_FSR, synched2, synched, AN490
Log Message:
Alter to run on dkralph ntuples, make runlumi code independent of bambu.

File Contents

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