ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CmsHi/JetAnalysis/macros/CommonParameters.h
Revision: 1.2
Committed: Mon Feb 4 22:53:28 2013 UTC (12 years, 3 months ago) by yilmaz
Content type: text/plain
Branch: MAIN
Changes since 1.1: +21 -4 lines
Log Message:
update

File Contents

# User Rev Content
1 yilmaz 1.1 #include <iostream>
2     #include "TCanvas.h"
3     #include "TError.h"
4     #include "TPad.h"
5     #include "TString.h"
6     #include "TRandom.h"
7     #include "TH1F.h"
8     #include "TMath.h"
9     #include "TF1.h"
10    
11     #include "TFile.h"
12     #include "TTree.h"
13     #include "TH1D.h"
14     #include "TH2D.h"
15     #include "TCanvas.h"
16     #include "TLegend.h"
17     #include "TLatex.h"
18     #include "TString.h"
19     #include "TChain.h"
20    
21     #include "TCut.h"
22     #include "TNtuple.h"
23    
24     #include "THStack.h"
25    
26     using namespace std;
27    
28 yilmaz 1.2
29 yilmaz 1.1 static bool subtract = 0;
30    
31     static bool normLead = 0;
32    
33     static int mixColor = 2;
34     static int dataColor = 1;
35     static int ppColor = 4;
36    
37     static int centralBin = 8;
38     static int leadCut = 120;
39     static int subleadCut = 30;
40    
41     static double sideMin = 0.1;
42     static double sideMax = TMath::Pi()/3 + 0.1;
43    
44     static double sideCorrect = 1;
45    
46     static const char* LUM = "#int L dt=150";
47    
48     static bool plotSubtraction = 0;
49    
50     static bool reweightCentrality = 1;
51    
52     static const double pi = TMath::Pi();
53    
54     static TCut lead = Form("pt1>%d",leadCut);
55     static TCut dijet = Form("pt1>%d && pt2>%d",leadCut,subleadCut);
56    
57     static TCut deltaPhi = "abs(dphi)>2.0944";
58     static TCut side = Form("pt1>%d && pt2>%d && abs(dphi)>%f && abs(dphi)<%f",leadCut,subleadCut, sideMin, sideMax);
59    
60     static TCut jetID = "trkMax1 > 4 || trkMax2 > 4";
61     static TCut noise = "noise < 0"; // Gplus Pile-Up cut also included
62     static TCut vtx = "abs(vz)<15";
63    
64 yilmaz 1.2 static TCut weight("weight*(pthat > 80)");
65    
66     static TCut hfPlusBins[6] = {
67     "hfp>=30 && hfp<70",
68     "hfp>=20 && hfp<30",
69     "hfp>=15 && hfp<20",
70     "hfp>=10 && hfp<15",
71     "hfp>=5 && hfp<10",
72     "hfp<5"
73     };
74    
75     // the same - no purpose
76     static TCut centBinsHFplus[6] = {
77     "cent>=30 && cent<70",
78     "cent>=20 && cent<30",
79     "cent>=15 && cent<20",
80     "cent>=10 && cent<15",
81     "cent>=5 && cent<10",
82     "cent<5"
83     };
84 yilmaz 1.1