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 MuonObj; |
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 |
< |
|
13 |
< |
|
20 |
> |
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
21 |
|
|
22 |
|
class AnaEff { |
23 |
|
public: |
24 |
< |
AnaEff(TObjArray& histos); |
25 |
< |
void run(const MuonObj* muon, const L1ObjColl *l1RpcColl, const L1ObjColl *l1OtherColl); |
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 |
|
|
33 |
|
TH1D* hEfficMuPt_D, *hEfficRpcNoCut_N, *hEfficRpcPtCut_N; |
34 |
|
std::map< std::string, TH1D* > hm; |
35 |
|
|
36 |
< |
const static unsigned int nPtCuts= 6; |
36 |
> |
const static unsigned int nPtCuts= 30; |
37 |
|
const static double ptCuts[]; |
38 |
|
|
39 |
< |
}; |
39 |
> |
edm::ParameterSet theConfig; |
40 |
|
|
41 |
+ |
TFile *file; |
42 |
+ |
TTree *tree; |
43 |
+ |
EventData *myEvent; |
44 |
+ |
|
45 |
+ |
}; |
46 |
|
#endif |