ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/Plotting/Modules/Setup.C
Revision: 1.14
Committed: Fri Jul 22 10:14:38 2011 UTC (13 years, 9 months ago) by buchmann
Content type: text/plain
Branch: MAIN
Changes since 1.13: +2 -1 lines
Log Message:
Added SUSY space scan sample collection

File Contents

# Content
1 #include <iostream>
2 #include <fstream>
3 #include <TCut.h>
4
5 #ifndef SampleClassLoaded
6 #include "SampleClass.C"
7 #endif
8 #define SetupLoaded
9
10 using namespace std;
11
12
13 namespace PlottingSetup {
14 float luminosity=1078;//751.0;//486.0;//468.0//336.;//pb^{-1}
15 float lumiuncert=0.04;// to be indicated in [0,1] range, e.g. for 4% write 0.04
16 string jzbvariabledata="jzb[1]+0.06*pt";
17 string jzbvariablemc="jzb[1]+0.04*pt";
18
19 samplecollection allsamples("completesamplecollection");
20 samplecollection signalsamples("signalsamplecollection");
21 samplecollection scansample("scansamplecollection");
22 int data=1;
23 int mc=0;
24 int mcwithsignal=2;
25 TCut passtrig("(passed_triggers||!is_data)");
26 TCut cutmass("abs(mll-91.2)<20");
27 //TCut cutmass("mll>2");
28 TCut basiccut("mll>2");//basically nothing.
29 TCut basicqualitycut("(pfJetGoodNum>=2&&pfJetGoodID[0]!=0)&&(pfJetGoodNum>=2&&pfJetGoodID[1]!=0)");//don't use this for the "essential cut", because we want to plot nJets as well as mll in the inclusive case; we thus use it as an addition nJets cut.
30 //TCut jetqualitycut("(pfJetGoodNum>=2&&pfJetGoodID[0])&&(pfJetGoodNum>=2&&pfJetGoodID[1])");//now part of the basiccut
31 //TCut jetqualitycut("mll>0");
32
33 TCut cutnJets("pfJetGoodNum>=3"&&basicqualitycut);
34 TCut cutnJetsJESdown("pfJetGoodNum25>=3"&&basicqualitycut);
35 TCut cutnJetsJESup("pfJetGoodNum35>=3"&&basicqualitycut);
36 TCut cutOSOF("(id1!=id2)&&(ch1*ch2<0)");
37 TCut cutOSSF("(id1==id2)&&(ch1*ch2<0)");
38 TCut sidebandcut("(mll>55&&mll<70)||(mll>112&&mll<160)");
39 //TCut sidebandcut("(mll>61&&mll<70)||(mll>112&&mll<190)");
40 //TCut basiccut("(passed_triggers||!is_data)");
41
42 TCut essential(passtrig);//add here any cuts you ALWAYS want
43 int dogaus=0;
44 int doKM=1;
45 int dogaus2sigma=2;
46 int dogaus3sigma=3;
47 int Kostasmethod=-99;
48
49 float fitresultconstdata=0;//this is the result when fitting in the 0-30 GeV range
50 float fitresultconstmc=0;//this is the result when fitting in the 0-30 GeV range
51
52 int method=-1;
53
54 //now some style issues:
55 float DataMarkerSize=1.2;
56
57 //here we save our number of predicted and observed events (with errors)
58 vector<float> Nobs;
59 vector<float> Npred;
60 vector<float> Nprederr;
61
62 int noJES=0;
63 int JESdown=1;
64 int JESup=2;
65
66 }