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

Comparing UserCode/cbrown/AnalysisFramework/Plotting/Modules/ActiveSamples.C (file contents):
Revision 1.2 by buchmann, Thu Jun 23 11:21:38 2011 UTC vs.
Revision 1.51 by buchmann, Tue Nov 22 11:44:50 2011 UTC

# Line 1 | Line 1
1 + /****
2 +
3 + Off peak status (RestrictToMassPeak) :
4 +
5 + x  Necessary adaptations identified
6 + x  Started working on necessary adaptations
7 + x  Necessary adaptations implemented
8 + x  Necessary adaptations tested
9 +
10 + DONE!
11 +
12 +
13 + ****/
14 +
15   #include <iostream>
16   #include <vector>
17   #include <sys/stat.h>
18 + #include <unistd.h>
19  
20   #include <TMath.h>
21   #include <TColor.h>
# Line 19 | Line 34
34   #define HUSH 1
35   #endif
36  
37 + void define_SMS_sample(bool showList, samplecollection &allsamples, samplecollection &signalsamples, samplecollection &scansample, bool loadall=false)
38 + {
39 +    char hostname[1023];
40 +    gethostname(hostname,1023);
41 +
42 +    /*
43 +    
44 +    CRUCIAL: The NAME needs to contain either "SMS" or "mSUGRA" for the SUSY scan algorithm (to be able to distinguish the two) -- this is now done automatically based on PlottingSetup::ScanSampleDirectory
45 +    
46 +    */
47 +
48 +    string prefix="/shome/";
49 +    if((int)((string)hostname).find("falda")>-1) prefix="/scratch/";
50 +    string mSUGRAorSMS="mSUGRA";
51 +    if((int)((string)PlottingSetup::ScanSampleDirectory).find("SMS")>-1) mSUGRAorSMS="SMS";
52 +    
53 +      /// NEW: Only indicate the very first file - please place scans in ntuples/SMS/ and adapt the name here and in SUSYScan.C (the files are loaded when needed avoiding high memory usage and startup times)
54 +      /// If you have different scans (e.g. you have a T5zzl one as well) you can create an additional directory such as SMS_T5zzl, but you need to change that below and in SUSYScan.C as well (where the files are loaded)
55 +        scansample.AddSample(prefix+"buchmann/ntuples/"+PlottingSetup::ScanSampleDirectory+"/"+mSUGRAorSMS+"_clean_splitup_0_0.root",mSUGRAorSMS,1,1,false,true,0,kRed); // there is only one sample in the scan; we give each event weight "1"
56 +
57 +    if(loadall) {
58 +      for(int ix=0;ix<PlottingSetup::ScanXzones;ix++) {
59 +        for(int iy=1;iy<PlottingSetup::ScanYzones;iy++) {//note: the "zero-zero" sample is already loaded above!
60 +          scansample.AddSample((prefix+"buchmann/ntuples/"+PlottingSetup::ScanSampleDirectory+"/"+mSUGRAorSMS+"_clean_splitup_"+any2string(ix)+"_"+any2string(iy)+".root"),mSUGRAorSMS,1,1,false,true,ix*PlottingSetup::ScanXzones+iy,kRed); // there is only one sample in the scan; we give each event weight "1"
61 +        }
62 +      }
63 +    }
64 +        
65 +
66 +    flag_this_change(__FUNCTION__,__LINE__,true);//PlottingSetup::RestrictToMassPeak
67 +    if(!PlottingSetup::RestrictToMassPeak) {
68 +      PlottingSetup::cutmass=PlottingSetup::openmasscut;
69 + //      PlottingSetup::sidebandcut=TCut("mll<2&&mll>3");//impossible cut - because we don't want any sidebands!
70 +      PlottingSetup::sidebandcut=TCut("SideBandsHaveBeenCalledForOffPeakAnalysis__ERROR==1");//this will trigger errors whenever sidebands are called - perfect for checking any remaining uses (checked, and no uses were found).
71 +      PlottingSetup::genMassCut=PlottingSetup::openGenmasscut;//impossible cut - because we don't want any sidebands!
72 +    }
73 + }
74  
75  
76 < void define_samples(bool showList, samplecollection &allsamples)
76 > void define_samples(bool showList, samplecollection &allsamples, samplecollection &signalsamples, samplecollection &scansample, samplecollection &raresample)
77   {
78 +    flag_this_change(__FUNCTION__,__LINE__,true);//PlottingSetup::RestrictToMassPeak
79 +    if(!PlottingSetup::RestrictToMassPeak) {
80 +      PlottingSetup::cutmass=PlottingSetup::openmasscut;
81 +      PlottingSetup::sidebandcut=TCut("mll<2&&mll>3");//impossible cut - because we don't want any sidebands!
82 +      PlottingSetup::genMassCut=PlottingSetup::openGenmasscut;//impossible cut - because we don't want any sidebands!
83 +    }
84    
85      float ZJetsCrossSection         = 3048.0; //NNLO----------------------------------
86 + //    float ZJetsCrossSectionM20      = 4998.0;//summer11
87 + //    float ZJetsCrossSectionD6Tlow   = 400.0;//summer11
88      float TTbarCrossSection         = 165.0;//(NLO) ---- 165.0; // approx. NNLO-----
89      float WJetsCrossSection         = 31314.0;//NNLO-------3.131e4; //NNLO------------
90      float ZnunuCrossSection         = 5760.0;//NNLO -------4.5e+3; //(LO);------------
91 <    float SingleTopSCrossSection     = 1.49; // NLO;----------------------------------
92 <    float SingleTopTCrossSection     = 20.540; // NLO;--------------------------------
93 <    float SingleTopUCrossSection     = 10.6; // NLO;----------------------------------
91 > //Single top x-sections from here:
92 > //https://twiki.cern.ch/twiki/bin/view/CMS/SingleTopSigma
93 >    float SingleTopSCrossSection     = 4.63; // NLO;----------------------------------
94 >    float SingleTopTCrossSection     = 64.57; // NLO;--------------------------------
95 >    float SingleTopUCrossSection     = 15.74; // NLO;----------------------------------
96      float VVJetsCrossSection        = 4.8; // LO;-------------------------------------
97 <    float LM4CrossSection           = 2.537*20.0; // k*LO
97 >    float LM4CrossSection           = 1.879*1.35; // k*LO
98 >    float LM8CrossSection           = 0.7300*1.41 ; // k*LO  
99      //the following numbers are from the MadGraphStandardModel210Summary as linked on the GeneratorProduction2011 page    
100      //    float QCD50to100CrossSection=30000000; // not used
101      float QCD100to250CrossSection=7000000;
# Line 41 | Line 104 | void define_samples(bool showList, sampl
104      float QCD1000toInfCrossSection=83.0;
105      
106      //    float totEventsQCD50to100=207418.0; // not used
107 <    float totEventsQCD100to250=638792.0;
108 <    float totEventsQCD250to500=344454.0;
109 <    float totEventsQCD500to1000=10e10;//unknown but now suppressed.
110 <    float totEventsQCD1000toInf=163185.0;
111 <    
112 <    float totEventsZjets         = 2313911.0;//2743142.0; // DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola
113 <    float totEventsTTbar         = 1161621.0;//1144028.0; // PabloV13/TTJets_TuneZ2_7TeV-madgraph-tauola
114 <    float totEventsWJets         = 15010237.0;//14350756.0; /// WJetsToLNu_TuneZ2_7TeV-madgraph-tauola.root
115 <    float totEventsZnunu         = 2106977.0;//2167964.0; //ZinvisibleJets_7TeV-madgraph.root
116 <    float totEventsVVJets        = 959076.0;//509072.0;
117 <    float totEventsSingleTopS    = 493868.0;//489472.0;
118 <    float totEventsSingleTopT    = 475460.0;//477610.0;
119 <    float totEventsSingleTopU    = 489417.0;//477599.0;
107 >    long totEventsQCD100to250   = 638792;
108 >    long totEventsQCD250to500   = 344454;
109 >    long totEventsQCD500to1000  = (long)10e10;  //unknown but now suppressed. (no event passes anyway)
110 >    long totEventsQCD1000toInf  = 163185;
111 >    
112 >    long totEventsZjets         = 32005720;//summer11
113 >    long totEventsZjetsD6T      = 2543706;//summer11
114 >    long totEventsZjetsD6Tlow   = 181799;//summer11
115 > //    long totEventsZjetsEE       = 2738801;
116 > //    long totEventsZjetsMM       = 2148325;
117 > //    long totEventsZjetsTT       = 2032536;
118 >
119 >    //spring:2313911.0;//2743142.0; // DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola
120 >    long totEventsTTbar         =  3701872;//summer11
121 >    //1161621.0;//Spring//1144028.0; // PabloV13/TTJets_TuneZ2_7TeV-madgraph-tauola
122 >    long totEventsWJets         = 56674902;//summer11
123 >    //15010237.0;//spring//14350756.0; /// WJetsToLNu_TuneZ2_7TeV-madgraph-tauola.root
124 >    long totEventsZnunu         =  2106977;//2167964.0; //ZinvisibleJets_7TeV-madgraph.root
125 >    long totEventsVVJets        =   959076;//509072.0;
126 >    long totEventsSingleTopS    =   493868;//489472.0;
127 >    long totEventsSingleTopT    =   475460;//477610.0;
128 >    long totEventsSingleTopU    =   489417;//477599.0;
129 >    long totEventsLM4           =   218380;
130 >    long totEventsLM8           =   180960;
131  
132      
133      Int_t nice_blue  = TColor::GetColor("#2E9AFE");
# Line 79 | Line 153 | void define_samples(bool showList, sampl
153      qcd_color           = kPink;
154      diboson_color       = kGreen;
155      lm_color            = kViolet+7;
82  
83 //    allsamples.AddSample("/scratch/buchmann/AllData_Jun10___DCS_648pb_MoreTriggers4_DCS.root","Data",1,1,true,false,0,kBlack);
84 //    allsamples.AddSample("/scratch/buchmann/AllData_Jun10___486pb_MoreTriggers3.root","Data",1,1,true,false,0,kBlack);
85    allsamples.AddSample("/scratch/buchmann/Data_Jun17_751pb.root","Data",1,1,true,false,0,kBlack);
86    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/TTJets_TuneZ2_7TeV-madgraph-tauola.root","t#bar{t}",totEventsTTbar,TTbarCrossSection,false,false,1,ttbar_color);
87    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola.root","WJets",totEventsWJets,WJetsCrossSection,false,false,3,wjets_color);
88    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola.root","Dibosons",totEventsVVJets,VVJetsCrossSection,false,false,4,diboson_color);
89    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/TToBLNu_TuneZ2_s-channel_7TeV-madgraph_2.root","SingleTop",totEventsSingleTopS,SingleTopSCrossSection,false,false,2,singletop_color);
90    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/TToBLNu_TuneZ2_t-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopT,SingleTopTCrossSection,false,false,2,singletop_color);
91    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/TToBLNu_TuneZ2_tW-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopU,SingleTopUCrossSection,false,false,2,singletop_color);
92    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/ZinvisibleJets_7TeV-madgraph.root","Z nunu",totEventsZnunu,ZnunuCrossSection,false,false,4,diboson_color);
93    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/QCD_TuneD6T_HT-100To250_7TeV-madgraph.root","QCD",totEventsQCD100to250,QCD100to250CrossSection,false,false,5,qcd_color);
94    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/QCD_TuneD6T_HT-250To500_7TeV-madgraph.root","QCD",totEventsQCD250to500,QCD250to500CrossSection,false,false,5,qcd_color);
95    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/QCD_TuneD6T_HT-500To1000_7TeV-madgraph.root","QCD",totEventsQCD500to1000,QCD500to1000CrossSection,false,false,5,qcd_color);
96 //    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/QCD_TuneD6T_HT-1000_7TeV-madgraph.root","QCD",totEventsQCD1000toInf,QCD1000toInfCrossSection,false,false,5,qcd_color);
97    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola.root","ZJets",totEventsZjets,ZJetsCrossSection,false,false,6,dy_color);
98    allsamples.AddSample("/scratch/buchmann/MCSpring2011PU__inclPFvarss__PURW_160404_166861/LM4_SUSY_sftsht_7TeV-pythia6.root","20xLM4",218536,1.879*20,false,true,7,lm_color);
99
100
101    if(showList) allsamples.ListSamples();
102
103 }
104
105
106
107
108
109
110 //-------------------------------------------------------------
111
112 /*
113
114
115 not in use anymore:
116
156  
157 +    Int_t rare_color            = nice_blue;
158    
159 <  //how this works: AddSample("FilePath,"Sample name",Nevents,XS,is_data,is_signal,groupindex
160 <  allsamples.AddSample("/scratch/buchmann/AllDataNov4.root","Data",1,1,true,false,0,kBlack);
121 <  allsamples.AddSample("/scratch/buchmann/CutAnalysis/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola.root","WJets to LNu",14350756,31314,false,false,2,kGreen);
122 < //  allsamples.AddSample("/scratch/buchmann/CutAnalysis/DYJetsToLL_TuneD6T_M-10To50_7TeV-madgraph-tauola.root","DY,M10To50",186891,400,false,false,3);
123 <  allsamples.AddSample("/scratch/buchmann/CutAnalysis/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola.root","DY,M50",2552567,3048,false,false,3,kYellow);
124 <  allsamples.AddSample("/scratch/buchmann/CutAnalysis/TTJets_TuneZ2_7TeV-madgraph-tauola.root","TTJets",1144028,157.5,false,false,4,kMagenta-1);
125 <  allsamples.AddSample("/scratch/buchmann/CutAnalysis/TToBLNu_TuneZ2_s-channel_7TeV-madgraph.root","T to blnu,s",489472,1.49,false,false,5,kBlue);
126 <  allsamples.AddSample("/scratch/buchmann/CutAnalysis/TToBLNu_TuneZ2_t-channel_7TeV-madgraph.root","T to blnu,t",477610,20.54,false,false,5,kBlue);
127 <  allsamples.AddSample("/scratch/buchmann/CutAnalysis/TToBLNu_TuneZ2_tW-channel_7TeV-madgraph.root","T to blnu,u",477599,10.6,false,false,5,kBlue);
128 <  allsamples.AddSample("/scratch/buchmann/CutAnalysis/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola.root","VVJets to 4L",509072,4.8,false,false,1,kGreen);
129 <  allsamples.AddSample("/scratch/buchmann/CutAnalysis/LM4_SUSY_sftsht_7TeV-pythia6.root","20xLM4",218536,1.879*100,false,true,6,kMagenta);
130 <
131 <  
132 <  
133 <    /*
134 <    Int_t fermiwjets = TColor::GetColor("#75f075");
135 <    Int_t ferminonW  = TColor::GetColor("#7d99d1");
136 <    Int_t fermiwwwz  = TColor::GetColor("#2b26ac");
137 <    Int_t fermizjets = TColor::GetColor("#0044ff");
138 <    Int_t fermitop   = TColor::GetColor("#353535");
139 <    Int_t fermihiggs = TColor::GetColor("#b30000");
159 >    char hostname[1023];
160 >    gethostname(hostname,1023);
161      
162 +    string prefix="/shome/";
163 +    if((int)((string)hostname).find("falda")>-1) prefix="/scratch/";
164      
165 <    dy_color            = fermiwjets;
166 <    wjets_color         = ferminonW;
167 <    ttbar_color         = fermizjets;
168 <    singletop_color     = fermitop;
169 <    qcd_color           = nice_orange;
170 <    diboson_color       = fermiwwwz;
171 <    lm_color            = fermihiggs;
172 <    */
173 <    
174 <    
175 <    /*
153 <    Int_t dy_color        = TColor::GetColor("#ff1300");
154 <    Int_t wjets_color     = TColor::GetColor("#ff7a00");
155 <    Int_t ttbar_color     = TColor::GetColor("#03899c");
156 <    Int_t singletop_color = TColor::GetColor("#00c322");
157 <    Int_t qcd_color       = TColor::GetColor("#4a11ae");
158 <    Int_t diboson_color   = TColor::GetColor("#8f04a8");
159 <    Int_t lm_color        = TColor::GetColor("#dcf900");
160 <
161 <    //fugly set of colors:
162 <    dy_color        = TColor::GetColor("#ff1300");
163 <    wjets_color     = TColor::GetColor("#ff7a00");
164 <    ttbar_color     = TColor::GetColor("#03899c");
165 <    singletop_color = TColor::GetColor("#00c322");
166 <    qcd_color       = TColor::GetColor("#4a11ae");
167 <    diboson_color   = TColor::GetColor("#8f04a8");
168 <    lm_color        = TColor::GetColor("#dcf900");
169 <
170 <    //twilight
171 <    dy_color        = TColor::GetColor("#141414");
172 <    wjets_color     = TColor::GetColor("#f8f8f8");
173 <    ttbar_color     = TColor::GetColor("#cf6a4c");
174 <    singletop_color = TColor::GetColor("#cda869");
175 <    qcd_color       = TColor::GetColor("#e9c062");
176 <    diboson_color   = TColor::GetColor("#5f5a60");
177 <    lm_color        = TColor::GetColor("#7587a6");
178 <    //http://www.colorschemer.com/schemes/viewscheme.php?id=9126
179 <    
180 <    */
165 >    allsamples.AddSample(prefix+"buchmann/ntuples/Data/AllData_4654_ipb.root","Data",1,1,true,false,0,kBlack);
166 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola_Summer11.root","Z+Jets",totEventsZjets,ZJetsCrossSection,false,false,7,dy_color);
167 > //    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola_Fall11-PU_S6_START42_V14B-v1.root","Z+Jets",totEventsZjets,ZJetsCrossSection,false,false,7,dy_color);
168 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TTJets_TuneZ2_7TeV-madgraph-tauola_Summer11_2.root","t#bar{t}",totEventsTTbar,TTbarCrossSection,false,false,1,ttbar_color);//summer11
169 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola_Summer11_2.root","W+Jets",totEventsWJets,WJetsCrossSection,false,false,3,wjets_color);//summer
170 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola.root","WW/WZ/ZZ",totEventsVVJets,VVJetsCrossSection,false,false,4,diboson_color);
171 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_s-channel_7TeV-madgraph_2.root","Single-top",totEventsSingleTopS,SingleTopSCrossSection,false,false,2,singletop_color);
172 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_t-channel_7TeV-madgraph.root","Single-top",totEventsSingleTopT,SingleTopTCrossSection,false,false,2,singletop_color);
173 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_tW-channel_7TeV-madgraph.root","Single-top",totEventsSingleTopU,SingleTopUCrossSection,false,false,2,singletop_color);
174 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/ZinvisibleJets_7TeV-madgraph.root","Z nunu",totEventsZnunu,ZnunuCrossSection,false,false,4,diboson_color);
175 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM4_SUSY_sftsht_7TeV-pythia6.root","LM4",totEventsLM4,LM4CrossSection,false,true,8,lm_color);
176  
182 /*      //how this works: AddSample("FilePath,"Sample name",Nevents,XS,is_data,is_signal,groupindex
183    allsamples.AddSample("/scratch/fronga/JSON_160404-163869_v1.29/AllCertified191_v1.29.root","Data",1,1,true,false,0,kBlack);
184    allsamples.AddSample("/scratch/fronga/MC_v1.29/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola.root","ZJets",totEventsZjets,ZJetsCrossSection,false,false,3,kYellow);
185    allsamples.AddSample("/scratch/fronga/MC_v1.29/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola.root","WJets",totEventsWJets,WJetsCrossSection,false,false,2,kGray);
186    allsamples.AddSample("/scratch/fronga/MC_v1.29/TTJets_TuneZ2_7TeV-madgraph-tauola.root","t#bar{t}",totEventsTTbar,TTbarCrossSection,false,false,4,kMagenta-1);
187    allsamples.AddSample("/scratch/fronga/MC_v1.29/TToBLNu_TuneZ2_s-channel_7TeV-madgraph_2.root","SingleTop",totEventsSingleTopS,SingleTopSCrossSection,false,false,5,kBlue);
188    allsamples.AddSample("/scratch/fronga/MC_v1.29/TToBLNu_TuneZ2_t-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopT,SingleTopTCrossSection,false,false,5,kBlue);
189    allsamples.AddSample("/scratch/fronga/MC_v1.29/TToBLNu_TuneZ2_tW-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopU,SingleTopUCrossSection,false,false,5,kBlue);
190    allsamples.AddSample("/scratch/fronga/MC_v1.29/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola.root","Dibosons",totEventsVVJets,VVJetsCrossSection,false,false,1,kGreen);
191    allsamples.AddSample("/scratch/fronga/MC_v1.29/ZinvisibleJets_7TeV-madgraph.root","Z nunu",totEventsZnunu,ZnunuCrossSection,false,false,1,kGreen);
192    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-100To250_7TeV-madgraph.root","QCD",totEventsQCD100to250,QCD100to250CrossSection,false,false,6,kRed);
193    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-250To500_7TeV-madgraph.root","QCD",totEventsQCD250to500,QCD250to500CrossSection,false,false,6,kRed);
194 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-500To1000_7TeV-madgraph.root","QCD",totEventsQCD500to1000,QCD500to1000CrossSection,false,false,6,kRed);
195    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-1000_7TeV-madgraph.root","QCD",totEventsQCD1000toInf,QCD1000toInfCrossSection,false,false,6,kRed);
196    allsamples.AddSample("/scratch/fronga/MC_v1.29/LM4_SUSY_sftsht_7TeV-pythia6.root","20xLM4",218536,1.879*20,false,true,7,kMagenta);
197 */  
198
199    //how this works: AddSample("FilePath,"Sample name",Nevents,XS,is_data,is_signal,groupindex
200 //    allsamples.AddSample("/scratch/fronga/JSON_160404-163869_v1.29/AllCertified191_v1.29.root","Data",1,1,true,false,0,kBlack);
201 //    allsamples.AddSample("/scratch/buchmann/May2011ReRecoAllMayJSON.root","Data",1,1,true,false,0,kBlack);
177  
178 +
179 +    if(!PlottingSetup::RestrictToMassPeak) {
180 + //      signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM0_SUSY_sftsht_7TeV-pythia6.root","LM0",219796,38.93*1.41 ,false,true,3,lm_color);
181 + //      signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM1_SUSY_sftsht_7TeV-pythia6.root","LM1",218176,4.888*1.34,false,true,4,lm_color);
182 + //      signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM2_SUSY_sftsht_7TeV-pythia6.root","LM2",206336,0.6027*1.33,false,true,5,lm_color);
183 +        signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM3_SUSY_sftsht_7TeV-pythia6.root","LM3",215120,3.438*1.40,false,true,6,lm_color);
184 +        signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM5_SUSY_sftsht_7TeV-pythia6.root","LM5",223992,0.473*1.34,false,true,7,lm_color);
185 +        signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM9_SUSY_sftsht_7TeV-pythia6.root","LM9",227808,7.134*1.48,false,true,8,lm_color);
186 +        signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM11_SUSY_sftsht_7TeV-pythia6.root","LM11",218703,0.8236*1.35,false,true,9,lm_color);
187 +        signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM12_SUSY_sftsht_7TeV-pythia6.root","LM12",223491,4.414*1.34,false,true,10,lm_color);
188 +        signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM13_SUSY_sftsht_7TeV-pythia6.root","LM13",173240,6.899*1.42,false,true,11,lm_color);
189 +    }
190 +    signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM4_SUSY_sftsht_7TeV-pythia6.root","LM4",totEventsLM4,LM4CrossSection,false,true,1,lm_color);
191 +    signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM8_SUSY_sftsht_7TeV-pythia6.root","LM8",totEventsLM8,LM8CrossSection,false,true,2,lm_color);
192 + //
193   /*
204    allsamples.AddSample("/scratch/buchmann/DataMay2011ReReco_CertifiedReRecoJSON.root","Data",1,1,true,false,0,kBlack);
205    allsamples.AddSample("/scratch/fronga/MC_v1.29/TTJets_TuneZ2_7TeV-madgraph-tauola.root","t#bar{t}",totEventsTTbar,TTbarCrossSection,false,false,1,ttbar_color);
206    allsamples.AddSample("/scratch/fronga/MC_v1.29/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola.root","WJets",totEventsWJets,WJetsCrossSection,false,false,3,wjets_color);
207    allsamples.AddSample("/scratch/fronga/MC_v1.29/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola.root","Dibosons",totEventsVVJets,VVJetsCrossSection,false,false,4,diboson_color);
208    allsamples.AddSample("/scratch/fronga/MC_v1.29/TToBLNu_TuneZ2_s-channel_7TeV-madgraph_2.root","SingleTop",totEventsSingleTopS,SingleTopSCrossSection,false,false,2,singletop_color);
209    allsamples.AddSample("/scratch/fronga/MC_v1.29/TToBLNu_TuneZ2_t-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopT,SingleTopTCrossSection,false,false,2,singletop_color);
210    allsamples.AddSample("/scratch/fronga/MC_v1.29/TToBLNu_TuneZ2_tW-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopU,SingleTopUCrossSection,false,false,2,singletop_color);
211    allsamples.AddSample("/scratch/fronga/MC_v1.29/ZinvisibleJets_7TeV-madgraph.root","Z nunu",totEventsZnunu,ZnunuCrossSection,false,false,4,diboson_color);
212 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-100To250_7TeV-madgraph.root","QCD",totEventsQCD100to250,QCD100to250CrossSection,false,false,5,qcd_color);
213 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-250To500_7TeV-madgraph.root","QCD",totEventsQCD250to500,QCD250to500CrossSection,false,false,5,qcd_color);
214    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-500To1000_7TeV-madgraph.root","QCD",totEventsQCD500to1000,QCD500to1000CrossSection,false,false,5,qcd_color);
215    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-1000_7TeV-madgraph.root","QCD",totEventsQCD1000toInf,QCD1000toInfCrossSection,false,false,5,qcd_color);
216    allsamples.AddSample("/scratch/fronga/MC_v1.29/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola.root","ZJets",totEventsZjets,ZJetsCrossSection,false,false,6,dy_color);
217    
218    
219    allsamples.AddSample("/scratch/fronga/MC_v1.29/LM4_SUSY_sftsht_7TeV-pythia6.root","20xLM4",218536,1.879*20,false,true,7,lm_color);
220    
194      
222    
223    
224    
225    
226    
227    //    allsamples.AddSample("/scratch/buchmann/DataMay2011ReReco_CertifiedReRecoJSON.root","Data",1,1,true,false,0,kBlack);
228 //    allsamples.AddSample("/scratch/buchmann/AllDataJun3_again.root","Data",1,1,true,false,0,kBlack);
229    allsamples.AddSample("/scratch/buchmann/AllData_Jun10___486pb_merged.root","Data",1,1,true,false,0,kBlack);
230    allsamples.AddSample("/scratch/buchmann/MC_Spring11_PU_PF/TTJets_TuneZ2_7TeV-madgraph-tauola.root","t#bar{t}",totEventsTTbar,TTbarCrossSection,false,false,1,ttbar_color);
231    allsamples.AddSample("/scratch/buchmann/MC_Spring11_PU_PF/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola.root","WJets",totEventsWJets,WJetsCrossSection,false,false,3,wjets_color);
232    allsamples.AddSample("/scratch/buchmann/MC_Spring11_PU_PF/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola.root","Dibosons",totEventsVVJets,VVJetsCrossSection,false,false,4,diboson_color);
233    allsamples.AddSample("/scratch/buchmann/MC_Spring11_PU_PF/TToBLNu_TuneZ2_s-channel_7TeV-madgraph_2.root","SingleTop",totEventsSingleTopS,SingleTopSCrossSection,false,false,2,singletop_color);
234    allsamples.AddSample("/scratch/buchmann/MC_Spring11_PU_PF/TToBLNu_TuneZ2_t-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopT,SingleTopTCrossSection,false,false,2,singletop_color);
235    allsamples.AddSample("/scratch/buchmann/MC_Spring11_PU_PF/TToBLNu_TuneZ2_tW-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopU,SingleTopUCrossSection,false,false,2,singletop_color);
236 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/ZinvisibleJets_7TeV-madgraph.root","Z nunu",totEventsZnunu,ZnunuCrossSection,false,false,4,diboson_color);
237 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-100To250_7TeV-madgraph.root","QCD",totEventsQCD100to250,QCD100to250CrossSection,false,false,5,qcd_color);
238 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-250To500_7TeV-madgraph.root","QCD",totEventsQCD250to500,QCD250to500CrossSection,false,false,5,qcd_color);
239 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-500To1000_7TeV-madgraph.root","QCD",totEventsQCD500to1000,QCD500to1000CrossSection,false,false,5,qcd_color);
240 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/QCD_TuneD6T_HT-1000_7TeV-madgraph.root","QCD",totEventsQCD1000toInf,QCD1000toInfCrossSection,false,false,5,qcd_color);
241    allsamples.AddSample("/scratch/buchmann/MC_Spring11_PU_PF/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola.root","ZJets",totEventsZjets,ZJetsCrossSection,false,false,6,dy_color);
242    
243    
244 //    allsamples.AddSample("/scratch/fronga/MC_v1.29/LM4_SUSY_sftsht_7TeV-pythia6.root","20xLM4",218536,1.879*20,false,true,7,lm_color);
245    allsamples.AddSample("/scratch/buchmann/LM4_SUSY_sftsht_7TeV-pythia.root","20xLM4",218536,1.879*20,false,true,7,lm_color);
195  
196 <    
197 <    
198 <    
199 <    
200 <    
201 <    
202 <    
203 <    
204 <    
205 <    
206 <    
207 <    
208 <    
209 <    
210 < */
196 >    // We do not use the following (rare) samples; nonetheless we include them in a separate category to prove that they are negligible
197 >    write_warning(__FUNCTION__,"Rare samples not yet reprocessed with new selectioN");/*
198 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TTWWTo2Lplus2Nu_NTP.root","Rare SS",39791,4.76E-5,false,false,6,rare_color);//summer11
199 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/WWminusTo2L2Nu_NTP.root","Rare SS",51063,0.001559,false,false,6,rare_color);//summer11
200 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TTWWTo2Lminus2Nu_NTP.root","Rare SS",39496 ,4.719E-5,false,false,6,rare_color);//summer11
201 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TTWTo2Lplus2Nu_NTP.root","Rare SS",48764,0.006841,false,false,6,rare_color);//summer11
202 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/WWplusTo2L2Nu_NTP.root","Rare SS",48244 ,0.004216,false,false,6,rare_color);//summer11
203 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TTZTo2Lplus2Nu_NTP.root","Rare SS",36740,0.002024,false,false,6,rare_color);//summer11
204 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/WWWTo2Lplus2Nu_NTP.root","Rare SS",43322,0.008957,false,false,6,rare_color);//summer11
205 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TTWTo2Lminus2Nu_NTP.root","Rare SS",50435,0.002705,false,false,6,rare_color);//summer11
206 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/WWWTo2Lminus2Nu_NTP.root","Rare SS",17147,0.004109,false,false,6,rare_color);//summer11
207 >    raresample.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TTZTo2Lminus2Nu_NTP.root","Rare SS",36781,0.001946,false,false,6,rare_color);//summer11
208 >    */
209 >    //scan files are only defined when necessary!
210 >
211 >    if(showList) allsamples.ListSamples();
212 >
213 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines