1#ifndef __JASTRONOMY__JEXPERIMENT__
2#define __JASTRONOMY__JEXPERIMENT__
44 static void setSNR(
const double value)
58 static bool check(
const double s,
const double b)
60 return (s > 0.0 && b > 0.0 && (s+s*s)/(b+b*b) >=
getSNR());
71 static bool check(
const TAxis* ha,
const TAxis* hb)
73 return (ha->GetNbins() == hb->GetNbins() &&
74 ha->GetXmin() == hb->GetXmin() &&
75 ha->GetXmax() == hb->GetXmax());
85 static bool check(
const TH1& ha,
const TH1& hb)
87 return check(ha.GetXaxis(), hb.GetXaxis());
98 static bool check(
const TH2& ha,
const TH2& hb)
100 return (
check(ha.GetXaxis(), hb.GetXaxis()) &&
101 check(ha.GetYaxis(), hb.GetYaxis()));
112 static bool check(
const TH3& ha,
const TH3& hb)
114 return (
check(ha.GetXaxis(), hb.GetXaxis()) &&
115 check(ha.GetYaxis(), hb.GetYaxis()) &&
116 check(ha.GetZaxis(), hb.GetZaxis()));
127 static double value = 0.0;
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary base class for experiment.
static double getSNR()
Get minimal signa-to-noise ratio.
static bool check(const TH1 &ha, const TH1 &hb)
Check histogram bins.
static bool check(const TAxis *ha, const TAxis *hb)
Check histogram bins.
static bool check(const TH3 &ha, const TH3 &hb)
Check histogram bins.
static bool check(const TH2 &ha, const TH2 &hb)
Check histogram bins.
static double & get_snr()
Get minimal signa-to-noise ratio.
static void setSNR(const double value)
Set minimal signa-to-noise ratio.
static bool check(const double s, const double b)
Check validity of signal and background.