1#ifndef __JASTRONOMY__JREALEXPERIMENT__
2#define __JASTRONOMY__JREALEXPERIMENT__
67 if (
add<TH3>(pd, ps, pb)) {
return; }
68 if (
add<TH2>(pd, ps, pb)) {
return; }
69 if (
add<TH1>(pd, ps, pb)) {
return; }
80 void add(
const TH1& hd,
84 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
85 add(hd.GetBinContent(ix),
87 hb.GetBinContent(ix));
99 void add(
const TH2& hd,
103 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
104 for (Int_t iy = 1; iy <= hs.GetYaxis()->GetNbins(); ++iy) {
105 add(hd.GetBinContent(ix, iy),
106 hs.GetBinContent(ix, iy),
107 hb.GetBinContent(ix, iy));
124 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
125 for (Int_t iy = 1; iy <= hs.GetYaxis()->GetNbins(); ++iy) {
126 for (Int_t iz = 1; iz <= hs.GetZaxis()->GetNbins(); ++iz) {
127 add(hd.GetBinContent(ix, iy, iz),
128 hs.GetBinContent(ix, iy, iz),
129 hb.GetBinContent(ix, iy, iz));
166 if (
dynamic_cast<const H_t*
>(pd) != NULL &&
167 dynamic_cast<const H_t*
>(ps) != NULL &&
168 dynamic_cast<const H_t*
>(pb) != NULL) {
170 const H_t& hd =
dynamic_cast<const H_t&
>(*pd);
171 const H_t& hs =
dynamic_cast<const H_t&
>(*ps);
172 const H_t& hb =
dynamic_cast<const H_t&
>(*pb);
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure to fit signal strength using likelihood ratio.
void put(const double s, const double b)
Put signal and background to list of pre-computed N/S values.
Auxiliary base class for experiment.
static bool check(const double s, const double b)
Check validity of signal and background.
Real experiment using PDF of signal and background.
void add(const TH2 &hd, const TH2 &hs, const TH2 &hb)
Add histograms with data and PDFs of signal and background.
void add(const TH1 &hd, const TH1 &hs, const TH1 &hb)
Add histograms with data and PDFs of signal and background.
void add(const TH3 &hd, const TH3 &hs, const TH3 &hb)
Add histograms with data and PDFs of signal and background.
JRealExperiment()
Default constructor.
void add(const TObject *pd, const TObject *ps, const TObject *pb)
Add objects with data and PDFs of signal and background.
JRealExperiment(const H_t &hd, const H_t &hs, const H_t &hb)
Constructor.
bool add(const TObject *pd, const TObject *ps, const TObject *pb)
Add objects with data and PDFs of signal and background.
void add(const size_t n, const double s, const double b)
Add data, signal and background.