ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/Plotting/Modules/Setup.C
(Generate patch)

Comparing UserCode/cbrown/AnalysisFramework/Plotting/Modules/Setup.C (file contents):
Revision 1.1 by buchmann, Thu Jun 30 08:25:56 2011 UTC vs.
Revision 1.13 by buchmann, Wed Jul 20 14:34:31 2011 UTC

# Line 1 | Line 1
1   #include <iostream>
2 + #include <fstream>
3   #include <TCut.h>
4 +
5   #ifndef SampleClassLoaded
6   #include "SampleClass.C"
7   #endif
8 <
8 > #define SetupLoaded
9  
10   using namespace std;
11  
12  
13   namespace PlottingSetup {
14 <  float sluminosity=-999;
15 <  float luminosity=751.0;//486.0;//468.0//336.;//pb^{-1}
16 <  string jzbvariable="jzb[1]";
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    int data=1;
22    int mc=0;
23    int mcwithsignal=2;
# Line 21 | Line 25 | namespace PlottingSetup {
25    TCut cutmass("abs(mll-91.2)<20");
26    //TCut cutmass("mll>2");
27    TCut basiccut("mll>2");//basically nothing.
28 <  TCut basicqualitycut("(pfJetGoodNum>=2&&pfJetGoodID[0])&&(pfJetGoodNum>=2&&pfJetGoodID[1])");//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.
28 >  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.
29    //TCut jetqualitycut("(pfJetGoodNum>=2&&pfJetGoodID[0])&&(pfJetGoodNum>=2&&pfJetGoodID[1])");//now part of the basiccut
30    //TCut jetqualitycut("mll>0");
31 +  
32    TCut cutnJets("pfJetGoodNum>=3"&&basicqualitycut);
33 +  TCut cutnJetsJESdown("pfJetGoodNum25>=3"&&basicqualitycut);
34 +  TCut cutnJetsJESup("pfJetGoodNum35>=3"&&basicqualitycut);
35    TCut cutOSOF("(id1!=id2)&&(ch1*ch2<0)");
36    TCut cutOSSF("(id1==id2)&&(ch1*ch2<0)");
37 +  TCut sidebandcut("(mll>55&&mll<70)||(mll>112&&mll<160)");
38 +  //TCut sidebandcut("(mll>61&&mll<70)||(mll>112&&mll<190)");
39    //TCut basiccut("(passed_triggers||!is_data)");
40    
41    TCut essential(passtrig);//add here any cuts you ALWAYS want
# Line 36 | Line 45 | namespace PlottingSetup {
45    int dogaus3sigma=3;
46    int Kostasmethod=-99;
47    
48 <  float fitresultconstdata=0;//this is the result when fitting in the 0-30 GeV range!
49 <  float fitresultconstmc=0;//this is the result when fitting in the 0-30 GeV range!
48 >  float fitresultconstdata=0;//this is the result when fitting in the 0-30 GeV range
49 >  float fitresultconstmc=0;//this is the result when fitting in the 0-30 GeV range
50    
51    int method=-1;
52 +  
53 +  //now some style issues:
54 +  float DataMarkerSize=1.2;
55 +  
56 +  //here we save our number of predicted and observed events (with errors)
57 +  vector<float> Nobs;
58 +  vector<float> Npred;
59 +  vector<float> Nprederr;
60 +  
61 +  int noJES=0;
62 +  int JESdown=1;
63 +  int JESup=2;
64  
65   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines