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.45 by buchmann, Thu Oct 27 08:14:35 2011 UTC vs.
Revision 1.53 by buchmann, Sun Nov 27 11:07:22 2011 UTC

# Line 41 | Line 41 | void define_SMS_sample(bool showList, sa
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)
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 +    if((int)((string)PlottingSetup::ScanSampleDirectory).find("GMSB")>-1) mSUGRAorSMS="GMSB";
53      
54        /// 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)
55 <        scansample.AddSample(prefix+"buchmann/ntuples/mSUGRA/mSUGRA_clean_splitup_0_0.root","mSUGRA",1,1,false,true,0,kRed); // there is only one sample in the scan; we give each event weight "1"
56 < //      scansample.AddSample(prefix+"buchmann/ntuples/SMS/SMS_clean_splitup_0_0.root","SMS",1,1,false,true,0,kRed); // there is only one sample in the scan; we give each event weight "1"
55 >      /// 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)
56 >        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"
57  
58      if(loadall) {
59        for(int ix=0;ix<PlottingSetup::ScanXzones;ix++) {
60          for(int iy=1;iy<PlottingSetup::ScanYzones;iy++) {//note: the "zero-zero" sample is already loaded above!
61 <          scansample.AddSample((prefix+"buchmann/ntuples/SMS/SMS_clean_splitup_"+any2string(ix)+"_"+any2string(iy)+".root"),"SMS",1,1,false,true,ix*PlottingSetup::ScanXzones+iy,kRed); // there is only one sample in the scan; we give each event weight "1"
61 >          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"
62          }
63        }
64      }
# Line 81 | Line 84 | void define_samples(bool showList, sampl
84      }
85    
86      float ZJetsCrossSection         = 3048.0; //NNLO----------------------------------
87 <    float ZJetsCrossSectionD6T      = 3048.0;//summer11
88 <    float ZJetsCrossSectionD6Tlow   = 400.0;//summer11
87 > //    float ZJetsCrossSectionM20      = 4998.0;//summer11
88 > //    float ZJetsCrossSectionD6Tlow   = 400.0;//summer11
89      float TTbarCrossSection         = 165.0;//(NLO) ---- 165.0; // approx. NNLO-----
90      float WJetsCrossSection         = 31314.0;//NNLO-------3.131e4; //NNLO------------
91      float ZnunuCrossSection         = 5760.0;//NNLO -------4.5e+3; //(LO);------------
# Line 104 | Line 107 | void define_samples(bool showList, sampl
107      //    float totEventsQCD50to100=207418.0; // not used
108      long totEventsQCD100to250   = 638792;
109      long totEventsQCD250to500   = 344454;
110 <    long totEventsQCD500to1000  = 10e10;  //unknown but now suppressed. (no event passes anyway)
110 >    long totEventsQCD500to1000  = (long)10e10;  //unknown but now suppressed. (no event passes anyway)
111      long totEventsQCD1000toInf  = 163185;
112      
113      long totEventsZjets         = 32005720;//summer11
114      long totEventsZjetsD6T      = 2543706;//summer11
115      long totEventsZjetsD6Tlow   = 181799;//summer11
116 + //    long totEventsZjetsEE       = 2738801;
117 + //    long totEventsZjetsMM       = 2148325;
118 + //    long totEventsZjetsTT       = 2032536;
119 +
120      //spring:2313911.0;//2743142.0; // DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola
121      long totEventsTTbar         =  3701872;//summer11
122      //1161621.0;//Spring//1144028.0; // PabloV13/TTJets_TuneZ2_7TeV-madgraph-tauola
# Line 156 | Line 163 | void define_samples(bool showList, sampl
163      string prefix="/shome/";
164      if((int)((string)hostname).find("falda")>-1) prefix="/scratch/";
165      
166 < //    allsamples.AddSample(prefix+"buchmann/ntuples/Data/AllData_2809pb.root","Data",1,1,true,false,0,kBlack);
167 <    if(PlottingSetup::RestrictToMassPeak) {
168 <        allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola_Summer11.root","ZJets",totEventsZjets,ZJetsCrossSection,false,false,7,dy_color);//summer11
169 <    } else {
170 <        allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/DYJetsToLL_TuneD6T_M-50_7TeV-madgraph-tauola.root","ZJets",totEventsZjetsD6T,ZJetsCrossSectionD6T,false,false,7,dy_color);//summer11
171 <        allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/DYJetsToLL_TuneD6T_M-10To50_7TeV-madgraph-tauola_2.root","ZJets",totEventsZjetsD6Tlow,ZJetsCrossSectionD6Tlow,false,false,7,dy_color);//summer11
172 <    }
173 <    allsamples.AddSample(prefix+"buchmann/ntuples/Data/NewSelectionForPaper/AllData_3p5_newselection__updated.root ","Data",1,1,true,false,0,kBlack);
174 <    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TTJets_TuneZ2_7TeV-madgraph-tauola_Summer11_2.root","TTbar",totEventsTTbar,TTbarCrossSection,false,false,1,ttbar_color);//summer11
168 <    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola_Summer11_2.root","WJets",totEventsWJets,WJetsCrossSection,false,false,3,wjets_color);//summer
169 <    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola.root","DiBosons",totEventsVVJets,VVJetsCrossSection,false,false,4,diboson_color);
170 <    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_s-channel_7TeV-madgraph_2.root","SingleTop",totEventsSingleTopS,SingleTopSCrossSection,false,false,2,singletop_color);
171 <    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_t-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopT,SingleTopTCrossSection,false,false,2,singletop_color);
172 <    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_tW-channel_7TeV-madgraph.root","SingleTop",totEventsSingleTopU,SingleTopUCrossSection,false,false,2,singletop_color);
166 >    allsamples.AddSample(prefix+"buchmann/ntuples/Data/AllData_4654_ipb_WithUpdatedv4MuEG.root","Data",1,1,true,false,0,kBlack);
167 >    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);
168 > //    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);
169 >    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
170 >    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
171 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola.root","WW/WZ/ZZ",totEventsVVJets,VVJetsCrossSection,false,false,4,diboson_color);
172 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_s-channel_7TeV-madgraph_2.root","Single-top",totEventsSingleTopS,SingleTopSCrossSection,false,false,2,singletop_color);
173 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_t-channel_7TeV-madgraph.root","Single-top",totEventsSingleTopT,SingleTopTCrossSection,false,false,2,singletop_color);
174 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/TToBLNu_TuneZ2_tW-channel_7TeV-madgraph.root","Single-top",totEventsSingleTopU,SingleTopUCrossSection,false,false,2,singletop_color);
175      allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/ZinvisibleJets_7TeV-madgraph.root","Z nunu",totEventsZnunu,ZnunuCrossSection,false,false,4,diboson_color);
176 <        allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM4_SUSY_sftsht_7TeV-pythia6.root","LM4",totEventsLM4,LM4CrossSection,false,true,8,lm_color);
176 >    allsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM4_SUSY_sftsht_7TeV-pythia6.root","LM4",totEventsLM4,LM4CrossSection,false,true,8,lm_color);
177  
178  
179  
# Line 185 | Line 187 | void define_samples(bool showList, sampl
187          signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM11_SUSY_sftsht_7TeV-pythia6.root","LM11",218703,0.8236*1.35,false,true,9,lm_color);
188          signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM12_SUSY_sftsht_7TeV-pythia6.root","LM12",223491,4.414*1.34,false,true,10,lm_color);
189          signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM13_SUSY_sftsht_7TeV-pythia6.root","LM13",173240,6.899*1.42,false,true,11,lm_color);
190 <    }
190 >    }
191      signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM4_SUSY_sftsht_7TeV-pythia6.root","LM4",totEventsLM4,LM4CrossSection,false,true,1,lm_color);
192      signalsamples.AddSample(prefix+"buchmann/ntuples/MC/NewSelectionForPaper/LM8_SUSY_sftsht_7TeV-pythia6.root","LM8",totEventsLM8,LM8CrossSection,false,true,2,lm_color);
193 + //
194   /*
195      
196  
# Line 208 | Line 211 | void define_samples(bool showList, sampl
211  
212      if(showList) allsamples.ListSamples();
213  
214 < }
214 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines