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

Comparing UserCode/cbrown/Development/Plotting/Modules/ActiveSamples.C (file contents):
Revision 1.25 by buchmann, Tue Jul 31 16:12:27 2012 UTC vs.
Revision 1.27 by buchmann, Wed Aug 15 13:27:57 2012 UTC

# Line 24 | Line 24 | void define_SMS_sample(bool showList, sa
24   {
25      char hostname[1023];
26      gethostname(hostname,1023);
27 +    
28 +    SanityChecks();
29  
30      /*
31      
# Line 71 | Line 73 | void define_SMS_sample(bool showList, sa
73  
74   void define_samples(bool showList, samplecollection &allsamples, samplecollection &signalsamples, samplecollection &scansample, samplecollection &raresample, samplecollection &systsamples, samplecollection &qcdsamples)
75   {
76 +  SanityChecks();
77  
78   /*
79   Good sources for XS:
# Line 94 | Line 97 | http://cms.cern.ch/iCMS/prep/requestmana
97        PlottingSetup::sidebandcut=TCut("mll<2&&mll>3");//impossible cut - because we don't want any sidebands!
98        PlottingSetup::genMassCut=PlottingSetup::openGenmasscut;//impossible cut - because we don't want any sidebands!
99      }
100 +    if(PlottingSetup::RestrictToMassPeak&&!PlottingSetup::UseSidebandsForcJZB) {
101 +      PlottingSetup::sidebandcut=TCut("mll<2&&mll>3");
102 +    }
103 +      
104    
105      float ZJetsCrossSection         = 3048.0; //NNLO----------------------------------
106      if (PlottingSetup::is2012) ZJetsCrossSection=3503.71;
# Line 223 | Line 230 | http://cms.cern.ch/iCMS/prep/requestmana
230        SingleTopTCrossSection=87.1;//Top mass: m(top)=173GeV, Default scales: muF=muR=mt, PDF: MSTW2008 NNLO
231        SingleTopUCrossSection=22.2;//Top mass: m(top)=173GeV, Default scales: muF=muR=mt, PDF: MSTW2008 NNLO
232        
233 <      allsamples.AddSample("/shome/buchmann/ntuples/Data/Data_5100ipb.root","Data",1,1,true,false,0,kBlack);
233 > //       allsamples.AddSample("/shome/buchmann/ntuples/Data/METdataset_5100ipb.root","Data",1,1,true,false,0,kBlack);
234 >        allsamples.AddSample("/shome/buchmann/ntuples/Data/Data_5100ipb_ZbReady.root","Data",1,1,true,false,0,kBlack);
235 > //              allsamples.AddSample("/scratch/buchmann/2012ABrereco.root","Data",1,1,true,false,0,kBlack);
236 >  
237  
238        allsamples.AddSample("/shome/fronga/ntuples/8TeV/DYJetsToLLNoTau_M-50_TuneZ2Star_8TeV-madgraph-tarball-Summer12-PU_S7_START52_V9-v2.root","Z+Jets",-30346766,ZJetsCrossSection,false,false,8,dy_color);
239        allsamples.AddSample("/shome/fronga/ntuples/8TeV/DYJetsToLLNoTau_M-10To50filter_8TeV-madgraph-Summer12-PU_S7_START52_V9-v1.root","Z+Jets",-6955271,LowZJetsCrossSection,false,false,8,dy_color);
240        allsamples.AddSample("/shome/fronga/ntuples/8TeV/DYJetsToTauTau_M-50_TuneZ2Star_8TeV-madgraph-tarball-Summer12-PU_S7_START52_V9-v2.root","Z+Jets (#tau#tau)",-30346766,ZJetsCrossSection,false,false,7,kRed-4);
241        allsamples.AddSample("/shome/fronga/ntuples/8TeV/DYJetsToTauTau_M-10To50filter_8TeV-madgraph-Summer12-PU_S7_START52_V9-v1.root","Z+Jets (#tau#tau)",-6955271,LowZJetsCrossSection,false,false,7,kRed-4);
242  
243 < //       allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball-Summer12-PU_S7_START52_V9-v2.root","Z+Jets",0,ZJetsCrossSection,false,false,7,dy_color);
244 < //       allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/DYJetsToLL_M-10To50filter_8TeV-madgraph-Summer12-PU_S7_START52_V9-v1.root","Z+Jets",0,LowZJetsCrossSection,false,false,7,dy_color);
243 > //       allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball-Summer12-PU_S7_START52_V9-v2.root","Z+Jets",0,ZJetsCrossSection,false,false,7,dy_color);
244 > //       allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/DYJetsToLL_M-10To50filter_8TeV-madgraph-Summer12-PU_S7_START52_V9-v1.root","Z+Jets",0,LowZJetsCrossSection,false,false,7,dy_color);
245  
246 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/TTJets_TuneZ2star_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V5-v1.root","t#bar{t}",0,TTbarCrossSection,false,false,1,ttbar_color);//summer11
247 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/WJetsToLNu_TuneZ2Star_8TeV-madgraph-tarball-Summer12-PU_S7_START52_V9-v1.root","W+Jets",0,36257.2,false,false,3,wjets_color);//summer
246 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/TTJets_TuneZ2star_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V5-v1.root","t#bar{t}",0,TTbarCrossSection,false,false,1,ttbar_color);//summer11
247 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/WJetsToLNu_TuneZ2Star_8TeV-madgraph-tarball-Summer12-PU_S7_START52_V9-v1.root","W+Jets",0,36257.2,false,false,3,wjets_color);//summer
248  
249        // SINGLE-TOP
250 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/T_s-channel_TuneZ2star_8TeV-powheg-tauola-Summer12-PU_S7_START52_V9-v1.root","Single-top",0,1.76,false,false,2,singletop_color);
251 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/Tbar_s-channel_TuneZ2star_8TeV-powheg-tauola-Summer12-PU_S7_START52_V9-v1.root","Single-top",0,3.79,false,false,2,singletop_color);
252 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/Tbar_t-channel_TuneZ2star_8TeV-powheg-tauola-Summer12-PU_S7_START52_V9-v1.root","Single-top",0,56.4,false,false,2,singletop_color);
253 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/Tbar_tW-channel-DR_TuneZ2star_8TeV-powheg-tauola-Summer12-PU_S7_START52_V9-v1.root","Single-top",0,SingleTopUCrossSection,false,false,2,singletop_color);
250 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/T_s-channel_TuneZ2star_8TeV-powheg-tauola-Summer12-PU_S7_START52_V9-v1.root","Single-top",0,1.76,false,false,2,singletop_color);
251 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/Tbar_s-channel_TuneZ2star_8TeV-powheg-tauola-Summer12-PU_S7_START52_V9-v1.root","Single-top",0,3.79,false,false,2,singletop_color);
252 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/Tbar_t-channel_TuneZ2star_8TeV-powheg-tauola-Summer12-PU_S7_START52_V9-v1.root","Single-top",0,56.4,false,false,2,singletop_color);
253 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/Tbar_tW-channel-DR_TuneZ2star_8TeV-powheg-tauola-Summer12-PU_S7_START52_V9-v1.root","Single-top",0,SingleTopUCrossSection,false,false,2,singletop_color);
254        
255        // DIBOSONS: LO with a k-factor
256 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/ZZJetsTo4L_TuneZ2star_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V9-v3.root","Dibosons",0,0.181,false,false,4,diboson_color);
256 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/ZZJetsTo4L_TuneZ2star_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V9-v3.root","Dibosons",0,0.181,false,false,4,diboson_color);
257        allsamples.AddSample("/shome/fronga/ntuples/8TeV/ZZJetsTo2L2Nu_TuneZ2star_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V9-v3.root","Dibosons",0,0.3,false,false,4,diboson_color);
258 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/WZJetsTo3LNu_TuneZ2_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V9-v2.root","Dibosons",0,1.06,false,false,4,diboson_color);
258 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/WZJetsTo3LNu_TuneZ2_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V9-v2.root","Dibosons",0,1.06,false,false,4,diboson_color);
259        allsamples.AddSample("/shome/fronga/ntuples/8TeV/WWJetsTo2L2Nu_TuneZ2star_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V9-v1.root","Dibosons",0,5.0,false,false,4,diboson_color);
260  
261        //ttV
# Line 256 | Line 266 | http://cms.cern.ch/iCMS/prep/requestmana
266        
267        //  allsamples.AddSample(prefix+"/buchmann/ntuples/MC/JZBplus/WGstarToLNu2E_TuneZ2_7TeV-madgraph-tauola__Summer11-PU_S4_START42_V11-v1__AODSIM.root","W+#gamma",266882,5.546 ,false,false,5,kGreen);
268        
269 <      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/leo-PYTHIA6_SUSY_LM6_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly.root","LM6",0,LM4CrossSection,false,true,1,lm_color);
269 >      allsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/leo-PYTHIA6_SUSY_LM6_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly.root","LM6",0,LM4CrossSection,false,true,1,lm_color);
270          
271      }
272  
273      if(PlottingSetup::is2012) {
274 <        signalsamples.AddSample("/shome/buchmann/ntuples/MC8tev/trash/LM4_leo____leo-PYTHIA6_SUSY_LM4_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly-V3-84.root","LM4",0,LM4CrossSection,false,true,1,lm_color);
275 <        signalsamples.AddSample("/shome/buchmann/ntuples/MC8tev/leo-PYTHIA6_SUSY_LM6_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly.root","LM6",0,LM6CrossSection,false,true,2,lm_color);
276 <        signalsamples.AddSample("/shome/buchmann/ntuples/MC8tev/PYTHIA6_SUSY_LM3_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly-V3-leo_AllWeightOne.root","LM3",0,LM3CrossSection,false,true,3,lm_color);
277 < //        signalsamples.AddSample("/shome/buchmann/ntuples/MC8tev/leo-PYTHIA6_SUSY_LM8_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly.root","LM8",0,LM6CrossSection,false,true,3,lm_color);
274 >        signalsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/trash/LM4_leo____leo-PYTHIA6_SUSY_LM4_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly-V3-84.root","LM4",0,LM4CrossSection,false,true,1,lm_color);
275 >        signalsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/leo-PYTHIA6_SUSY_LM6_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly.root","LM6",0,LM6CrossSection,false,true,2,lm_color);
276 >        signalsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/PYTHIA6_SUSY_LM3_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly-V3-leo_AllWeightOne.root","LM3",0,LM3CrossSection,false,true,3,lm_color);
277 > //        signalsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/leo-PYTHIA6_SUSY_LM8_sftsht_8TeV_GEN_FASTSIM-2012_Startup_inTimeOnly.root","LM8",0,LM6CrossSection,false,true,3,lm_color);
278          cutWeight=TCut("(weight*(weight<1000)*(is_data+(!is_data)*((id1==id2)*0.95+(id1!=id2)*0.94)))");
279          //FR cutWeight=TCut("(weight*(weight<1000)*(is_data+(!is_data)*((id1==id2&&id1==0)*0.95+(id1==id2&&id1==1)*0.88+(id1!=id2)*0.92)))");
280          //cutWeight=TCut("(weight*(weight<1000)*((id1==id2&&id1==0)*0.95+(id1==id2&&id1==1)*0.88+(id1!=id2)*0.92))");
# Line 278 | Line 288 | http://cms.cern.ch/iCMS/prep/requestmana
288        systsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/HighStatSamples/TTJets_Fall11-PU_S6_START42_V14B.root","t#bar{t}",58370118,TTbarCrossSection,false,false,1,ttbar_color);//summer11
289      } else {
290        
291 <      systsamples.AddSample("/shome/buchmann/ntuples/MC8tev/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball-Summer12-PU_S7_START52_V9-v2.root","Z+Jets",0,ZJetsCrossSection,false,false,7,dy_color);
292 <      systsamples.AddSample("/shome/buchmann/ntuples/MC8tev/DYJetsToLL_M-10To50filter_8TeV-madgraph-Summer12-PU_S7_START52_V9-v1.root","Z+Jets",0,LowZJetsCrossSection,false,false,7,dy_color);
293 <      systsamples.AddSample("/shome/buchmann/ntuples/MC8tev/TTJets_TuneZ2star_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V5-v1.root","t#bar{t}",0,TTbarCrossSection,false,false,1,ttbar_color);//summer11
291 >      systsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball-Summer12-PU_S7_START52_V9-v2.root","Z+Jets",0,ZJetsCrossSection,false,false,7,dy_color);
292 >      systsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/DYJetsToLL_M-10To50filter_8TeV-madgraph-Summer12-PU_S7_START52_V9-v1.root","Z+Jets",0,LowZJetsCrossSection,false,false,7,dy_color);
293 >      systsamples.AddSample("/shome/buchmann/ntuples/MC8tev/OLD/TTJets_TuneZ2star_8TeV-madgraph-tauola-Summer12-PU_S7_START52_V5-v1.root","t#bar{t}",0,TTbarCrossSection,false,false,1,ttbar_color);//summer11
294        
295      }
296  
# Line 294 | Line 304 | http://cms.cern.ch/iCMS/prep/requestmana
304        PlottingSetup::genMassCut=PlottingSetup::openGenmasscut;
305        PlottingSetup::requireZ=false;
306      }
307 <    
307 >    if(PlottingSetup::RestrictToMassPeak&&!PlottingSetup::UseSidebandsForcJZB) {
308 >      PlottingSetup::sidebandcut=TCut("SideBandsHaveBeenCalledForOnPeakAnalysisWithoutSidebands__ERROR==1");
309 >      PlottingSetup::requireZ=true;
310 >    }
311      
312      if(PlottingSetup::DoBTag) {
313        PlottingSetup::cutnJets=PlottingSetup::cutnJets&&PlottingSetup::bTagRequirement;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines