ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/rochcor.h
Revision: 1.2
Committed: Wed Dec 12 16:33:39 2012 UTC (12 years, 4 months ago) by sixie
Content type: text/plain
Branch: MAIN
Changes since 1.1: +4 -4 lines
Log Message:
update rochestor corrections to V4.1. add 2012 version.

File Contents

# User Rev Content
1 khahn 1.1 #include <iostream>
2     #include <TChain.h>
3     #include <TClonesArray.h>
4     #include <TString.h>
5     #include <map>
6    
7     #include <TSystem.h>
8     #include <TROOT.h>
9     #include <TMath.h>
10     #include <TLorentzVector.h>
11     #include <TRandom3.h>
12    
13    
14     #ifndef ROCHCOR
15     #define ROCHCOR
16    
17     class rochcor {
18     public:
19     rochcor();
20     rochcor(int seed);
21     ~rochcor();
22    
23 sixie 1.2 void momcor_mc(TLorentzVector&, float, float, int, float&);
24     void momcor_data(TLorentzVector&, float, float, int, float&);
25 khahn 1.1
26     float zptcor(float);
27     int etabin(float);
28     int phibin(float);
29    
30     private:
31    
32     TRandom3 eran;
33     TRandom3 sran;
34    
35     static const float netabin[9];
36    
37     //---------------------------------------------------------------------------------------------
38    
39     static const float dcor_bfA[8][8];
40     static const float dcor_maA[8][8];
41     static const float mcor_bfA[8][8];
42     static const float mcor_maA[8][8];
43     static const float dcor_bfAer[8][8];
44     static const float dcor_maAer[8][8];
45     static const float mcor_bfAer[8][8];
46     static const float mcor_maAer[8][8];
47    
48     static const float dcor_bfB[8][8];
49     static const float dcor_maB[8][8];
50     static const float mcor_bfB[8][8];
51     static const float mcor_maB[8][8];
52     static const float dcor_bfBer[8][8];
53     static const float dcor_maBer[8][8];
54     static const float mcor_bfBer[8][8];
55     static const float mcor_maBer[8][8];
56    
57     //=======================================================================================================
58    
59     static const float dmavgA[8][8];
60     static const float dpavgA[8][8];
61     static const float mmavgA[8][8];
62     static const float mpavgA[8][8];
63    
64     static const float dmavgB[8][8];
65     static const float dpavgB[8][8];
66     static const float mmavgB[8][8];
67     static const float mpavgB[8][8];
68    
69     //===============================================================================================
70     //parameters for Z pt correction
71     static const int nptbins=84;
72     static const float ptlow[85];
73    
74     static const float zptscl[84];
75     static const float zptscler[84];
76    
77     float mptsys_mc_dm[8][8];
78     float mptsys_mc_da[8][8];
79     float mptsys_da_dm[8][8];
80     float mptsys_da_da[8][8];
81    
82 sixie 1.2 float gscler_mc_dev;
83     float gscler_da_dev;
84 khahn 1.1 };
85    
86     #endif