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

Comparing UserCode/cbrown/Development/Plotting/Modules/LimitCalculation.C (file contents):
Revision 1.6 by buchmann, Mon Apr 30 08:39:09 2012 UTC vs.
Revision 1.7 by buchmann, Wed Aug 15 13:52:12 2012 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 ****/
1   #include <iostream>
2   #include <vector>
3   #include <sys/stat.h>
# Line 470 | Line 457 | void limit_shapes_for_systematic_effect(
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);
# Line 496 | Line 483 | void limit_shapes_for_systematic_effect(
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);
# Line 519 | Line 506 | void limit_shapes_for_systematic_effect(
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);
# Line 544 | Line 531 | void limit_shapes_for_systematic_effect(
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;
# Line 556 | Line 543 | void limit_shapes_for_systematic_effect(
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines