ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/interface/AnaEff.h
Revision: 1.6
Committed: Thu Jul 11 11:25:21 2013 UTC (11 years, 9 months ago) by akalinow
Content type: text/plain
Branch: MAIN
CVS Tags: Artur_11_07_2013_B, Artur_11_07_2013_A, Artur_11_07_2013, HEAD
Changes since 1.5: +14 -3 lines
Log Message:
*last commit before migration to Git.

File Contents

# Content
1 #ifndef UserCode_L1RpcTriggerAnalysis_AnaEff_H
2 #define UserCode_L1RpcTriggerAnalysis_AnaEff_H
3
4 #include "TObject.h"
5
6 class TObjArray;
7 class TH1D;
8 class TrackObj;
9 class HitSpecObj;
10 class L1ObjColl;
11 class L1Obj;
12 class TTree;
13 class TFile;
14 class EventData;
15
16 #include <vector>
17 #include <map>
18 #include <string>
19
20 #include "FWCore/ParameterSet/interface/ParameterSet.h"
21
22 class AnaEff {
23 public:
24 AnaEff(const edm::ParameterSet & cfg) : debug(false), theConfig(cfg) {}
25 ~AnaEff();
26 void init(TObjArray& histos);
27 void run(const TrackObj* muon, const L1ObjColl *l1Coll, const HitSpecObj * hitSpec);
28
29 bool debug;
30
31 private:
32 double maxPt(const std::vector<L1Obj> & l1Objs) const;
33 TH1D* hEfficMuPt_D, *hEfficRpcNoCut_N, *hEfficRpcPtCut_N;
34 std::map< std::string, TH1D* > hm;
35
36 const static unsigned int nPtCuts= 30;
37 const static double ptCuts[];
38
39 edm::ParameterSet theConfig;
40
41 TFile *file;
42 TTree *tree;
43 EventData *myEvent;
44
45 };
46 #endif