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 |
– |
****/ |
1 |
|
#include <iostream> |
2 |
|
#include <vector> |
3 |
|
#include <sys/stat.h> |
457 |
|
TH1F *LSBOSOFN; |
458 |
|
|
459 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
460 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
460 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
461 |
|
SBOSSFP = allsamples.Draw("SBOSSFP",datajzb,binning, "JZB4limits", "events",cutOSSF&&limitnJetcut&&basiccut&&sidebandcut,dataormc,luminosity); |
462 |
|
SBOSOFP = allsamples.Draw("SBOSOFP",datajzb,binning, "JZB4limits", "events",cutOSOF&&limitnJetcut&&basiccut&&sidebandcut,dataormc,luminosity); |
463 |
|
SBOSSFN = allsamples.Draw("SBOSSFN","-"+datajzb,binning, "JZB4limits", "events",cutOSSF&&limitnJetcut&&basiccut&&sidebandcut,dataormc,luminosity); |
483 |
|
obs->Write(); |
484 |
|
TH1F *pred = (TH1F*)ZOSSFN->Clone("prediction"); |
485 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
486 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
486 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
487 |
|
pred->Add(ZOSOFP,1.0/3); |
488 |
|
pred->Add(ZOSOFN,-1.0/3); |
489 |
|
pred->Add(SBOSSFP,1.0/3); |
506 |
|
Lobs->Add(LZOSSFP); |
507 |
|
Lpred->Add(LZOSSFN); |
508 |
|
flag_this_change(__FUNCTION__,__LINE__,false);//PlottingSetup::RestrictToMassPeak |
509 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
509 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
510 |
|
Lpred->Add(LZOSOFP,1.0/3); |
511 |
|
Lpred->Add(LZOSOFN,-1.0/3); |
512 |
|
Lpred->Add(LSBOSSFP,1.0/3); |
531 |
|
delete ZOSSFN; |
532 |
|
delete ZOSOFN; |
533 |
|
|
534 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
534 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
535 |
|
delete SBOSSFP; |
536 |
|
delete SBOSOFP; |
537 |
|
delete SBOSSFN; |
543 |
|
delete LZOSSFN; |
544 |
|
delete LZOSOFN; |
545 |
|
|
546 |
< |
if(PlottingSetup::RestrictToMassPeak) { |
546 |
> |
if(PlottingSetup::RestrictToMassPeak&&PlottingSetup::UseSidebandsForcJZB) { |
547 |
|
delete LSBOSSFP; |
548 |
|
delete LSBOSOFP; |
549 |
|
delete LSBOSSFN; |