Changeset 19910


Ignore:
Timestamp:
12/15/19 18:54:47 (5 years ago)
Author:
tbretz
Message:
Forgot to adapt the upper limit calculation to the fact that the BG is already the background scaled to only one wobble position.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/spectrum.cc

    r19908 r19910  
    735735        cout << "Histograms will be written to " << out << ".hist.root\n";
    736736    }
     737    if (verbose>0)
     738        cout << "\nCalculating upper limits for a confidence interval of " << confidence << endl;
    737739#endif
    738740
     
    20882090
    20892091                if (feldman)
    2090                     feldman_ul[bin] = fc.CalculateUpperLimit(dat_sig, dat_bg/5)/width/areatime/eff;
    2091 
    2092                 rolke.SetPoissonBkgKnownEff(dat_sig,  dat_bg, 5, eff);
     2092                    feldman_ul[bin] = fc.CalculateUpperLimit(dat_sig, dat_bg)/width/areatime/eff;
     2093
     2094                rolke.SetPoissonBkgKnownEff(dat_sig,  dat_bg*5, 5, eff);
    20932095                rolke_ll[bin]  = rolke.GetLowerLimit()/width/areatime;
    20942096                rolke_ul[bin]  = rolke.GetUpperLimit()/width/areatime;
    20952097
    2096                 rolke.SetPoissonBkgKnownEff(dat_isig, dat_ibg, 5, ieff);
     2098                rolke.SetPoissonBkgKnownEff(dat_isig, dat_ibg*5, 5, ieff);
    20972099                rolke_int[bin] = rolke.GetUpperLimit()/areatime;
    20982100#endif
Note: See TracChangeset for help on using the changeset viewer.