1#ifndef __JASTRONOMY__JEXPERIMENT__
2#define __JASTRONOMY__JEXPERIMENT__
43 static void setSNR(
const double value)
56 static bool check(
const double s,
const double b)
58 return (s > 0.0 && b > 0.0 && s/b >=
getSNR());
69 static bool check(
const TAxis* ha,
const TAxis* hb)
71 return (ha->GetNbins() == hb->GetNbins() &&
72 ha->GetXmin() == hb->GetXmin() &&
73 ha->GetXmax() == hb->GetXmax());
83 static bool check(
const TH1& ha,
const TH1& hb)
85 return check(ha.GetXaxis(), hb.GetXaxis());
96 static bool check(
const TH2& ha,
const TH2& hb)
98 return (
check(ha.GetXaxis(), hb.GetXaxis()) &&
99 check(ha.GetYaxis(), hb.GetYaxis()));
110 static bool check(
const TH3& ha,
const TH3& hb)
112 return (
check(ha.GetXaxis(), hb.GetXaxis()) &&
113 check(ha.GetYaxis(), hb.GetYaxis()) &&
114 check(ha.GetZaxis(), hb.GetZaxis()));
125 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.