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

File Contents

# User Rev Content
1 sixie 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 ROCHCOR2012
15     #define ROCHCOR2012
16    
17     class rochcor2012 {
18     public:
19     rochcor2012();
20     rochcor2012(int seed);
21     ~rochcor2012();
22    
23     void momcor_mc(TLorentzVector&, float, float, int, float&);
24     void momcor_data(TLorentzVector&, float, float, int, float&);
25    
26     void musclefit_data(TLorentzVector& , TLorentzVector&);
27    
28     float zptcor(float);
29     int etabin(float);
30     int phibin(float);
31    
32     private:
33    
34     TRandom3 eran;
35     TRandom3 sran;
36    
37     static const float netabin[9];
38    
39     //---------------------------------------------------------------------------------------------
40    
41     static const float dcor_bf[8][8];
42     static const float dcor_ma[8][8];
43     static const float mcor_bf[8][8];
44     static const float mcor_ma[8][8];
45     static const float dcor_bfer[8][8];
46     static const float dcor_maer[8][8];
47     static const float mcor_bfer[8][8];
48     static const float mcor_maer[8][8];
49    
50     //=======================================================================================================
51    
52     static const float dmavg[8][8];
53     static const float dpavg[8][8];
54     static const float mmavg[8][8];
55     static const float mpavg[8][8];
56    
57     //===============================================================================================
58     //parameters for Z pt correction
59     static const int nptbins=84;
60     static const float ptlow[85];
61    
62     static const float zptscl[84];
63     static const float zptscler[84];
64    
65     float mptsys_mc_dm[8][8];
66     float mptsys_mc_da[8][8];
67     float mptsys_da_dm[8][8];
68     float mptsys_da_da[8][8];
69    
70     float gscler_mc_dev;
71     float gscler_da_dev;
72     };
73    
74     #endif