38 |
|
TH1F *SBOSOFN; |
39 |
|
|
40 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
41 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
41 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
42 |
|
SBOSSFP = allsamples.Draw("SBOSSFP",datajzb,1,cut,14000, xlabel, "events",cutOSSF&&cutnJets&&basiccut&&sidebandcut,mcordata,luminosity); |
43 |
|
SBOSOFP = allsamples.Draw("SBOSOFP",datajzb,1,cut,14000, xlabel, "events",cutOSOF&&cutnJets&&basiccut&&sidebandcut,mcordata,luminosity); |
44 |
|
SBOSSFN = allsamples.Draw("SBOSSFN","-"+datajzb,1,cut,14000, xlabel, "events",cutOSSF&&cutnJets&&basiccut&&sidebandcut,mcordata,luminosity); |
47 |
|
|
48 |
|
|
49 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
50 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
50 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
51 |
|
dout << " Observed : " << ZOSSFP->Integral() << endl; |
52 |
|
dout << " Predicted: " << ZOSSFN->Integral() << " + (1/3)*(" << ZOSOFP->Integral() << "-" << ZOSOFN->Integral()<<") + (1/3)*(" << SBOSSFP->Integral() << "-" << SBOSSFN->Integral()<<") + (1/3)*(" << SBOSOFP->Integral() << "-" << SBOSOFN->Integral()<<")" << endl; |
53 |
|
dout << " P(ZJets ) \t " << ZOSSFN->Integral() << endl; |
76 |
|
void look_at_sidebands(string mcjzb, string datajzb, bool includejetcut, float cutat=0) { |
77 |
|
|
78 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak -- this funciton is meaningless for the offpeak case |
79 |
< |
if(!PlottingSetup::RestrictToMassPeak) return; |
79 |
> |
if(!PlottingSetup::RestrictToMassPeak||!PlottingSetup::UseSidebandsForcJZB) return; |
80 |
|
dout << "Looking at sidebands ... " << endl; |
81 |
|
int mcordata=data;//data // you can perform this study for mc or data ... |
82 |
|
|
246 |
|
|
247 |
|
void find_sideband_definition() { |
248 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
249 |
< |
if(!PlottingSetup::RestrictToMassPeak) return; // this function is meaningless for the offpeak analysis |
249 |
> |
if(!PlottingSetup::RestrictToMassPeak||!PlottingSetup::UseSidebandsForcJZB) return; // this function is meaningless for the offpeak analysis |
250 |
|
|
251 |
|
TH1F *mllttbar = allsamples.Draw("mllttbar","mll",145,55,200, "mll [GeV]", "events",cutOSSF&&cutnJets&&!cutmass,mc,luminosity,allsamples.FindSample("TTJets")); |
252 |
|
TH1F *mllttbarz = allsamples.Draw("mllttbarz","mll",1,50,200, "mll [GeV]", "events",cutOSSF&&cutnJets&&cutmass,mc,luminosity,allsamples.FindSample("TTJets")); |
320 |
|
TCanvas *c1 = new TCanvas("runnum","runnum",800,1000); |
321 |
|
c1->Divide(2,4); |
322 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
323 |
< |
if(PlottingSetup::RestrictToMassPeak) c1->Divide(2,2); // there are only four regions ... |
323 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) c1->Divide(2,2); // there are only four regions ... |
324 |
|
|
325 |
|
c1->cd(1); |
326 |
|
TH1F *ossfp = runcheckhisto((const char*)(cutmass&&cutOSSF&&cutnJets&&basiccut&&"((jzb[1]+0.06*pt-2.84727)>100)")); |
342 |
|
TText *t4 = write_title("OSOF,N");t4->Draw(); |
343 |
|
|
344 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
345 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
345 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
346 |
|
c1->cd(5); |
347 |
|
TH1F *sbofp = runcheckhisto((const char*)(sidebandcut&&cutOSOF&&cutnJets&&basiccut&&"((jzb[1]+0.06*pt-2.84727)>100)")); |
348 |
|
sbofp->Draw(); |
378 |
|
TH1F *jzbpss; |
379 |
|
|
380 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
381 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
381 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
382 |
|
jzbnos = allsamples.Draw("jzbnos","-"+mcjzb,nbins,0,350, "JZB [GeV]", "events",bcut&&cutOSOF&&cutnJets&&sidebandcut,mc,luminosity,allsamples.FindSample("VVJetsTo4L_TuneD6T_7TeV")); |
383 |
|
jzbpos = allsamples.Draw("jzbpos",mcjzb,nbins,0,350, "JZB [GeV]", "events", bcut&&cutOSOF&&cutnJets&&sidebandcut,mc,luminosity,allsamples.FindSample("VVJetsTo4L_TuneD6T_7TeV")); |
384 |
|
jzbnss = allsamples.Draw("jzbnss","-"+mcjzb,nbins,0,350, "JZB [GeV]", "events",bcut&&cutOSSF&&cutnJets&&sidebandcut,mc,luminosity,allsamples.FindSample("VVJetsTo4L_TuneD6T_7TeV")); |
388 |
|
|
389 |
|
TH1F *pred = (TH1F*)jzbn->Clone("pred"); |
390 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
391 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
391 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
392 |
|
pred->Add(jzbno,-1.0/3); |
393 |
|
pred->Add(jzbpo,1.0/3); |
394 |
|
pred->Add(jzbnos,-1.0/3); |
612 |
|
TH1F *jzbnss; |
613 |
|
TH1F *jzbpss; |
614 |
|
|
615 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
615 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
616 |
|
jzbnos = signalsamples.Draw("jzbnos","-"+mcjzb,nbins,0,350, "JZB [GeV]", "events",cutOSOF&&cutnJets&&sidebandcut,mc,luminosity,signalsamples.FindSample("LM0")); |
617 |
|
jzbpos = signalsamples.Draw("jzbpos",mcjzb,nbins,0,350, "JZB [GeV]", "events", cutOSOF&&cutnJets&&sidebandcut,mc,luminosity,signalsamples.FindSample("LM0")); |
618 |
|
jzbnss = signalsamples.Draw("jzbnss","-"+mcjzb,nbins,0,350, "JZB [GeV]", "events",cutOSSF&&cutnJets&&sidebandcut,mc,luminosity,signalsamples.FindSample("LM0")); |
621 |
|
|
622 |
|
TH1F *pred = (TH1F*)jzbn->Clone("pred"); |
623 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
624 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
624 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
625 |
|
pred->Add(jzbno,-1.0/3); |
626 |
|
pred->Add(jzbpo,1.0/3); |
627 |
|
pred->Add(jzbnos,-1.0/3); |