Auxiliary base class for experiment.
More...
#include <JExperiment.hh>
|
| static double | getSNR () |
| | 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.
|
| |
| static bool | check (const TAxis *ha, const TAxis *hb) |
| | Check histogram bins.
|
| |
| static bool | check (const TH1 &ha, const TH1 &hb) |
| | Check histogram bins.
|
| |
| static bool | check (const TH2 &ha, const TH2 &hb) |
| | Check histogram bins.
|
| |
| static bool | check (const TH3 &ha, const TH3 &hb) |
| | Check histogram bins.
|
| |
|
| static double & | get_snr () |
| | Get minimal signa-to-noise ratio.
|
| |
Auxiliary base class for experiment.
Definition at line 25 of file JExperiment.hh.
◆ getSNR()
| static double JASTRONOMY::JExperiment::getSNR |
( |
| ) |
|
|
inlinestatic |
Get minimal signa-to-noise ratio.
- Returns
- signa-to-noise ratio.
Definition at line 32 of file JExperiment.hh.
33 {
35 }
static double & get_snr()
Get minimal signa-to-noise ratio.
◆ setSNR()
| static void JASTRONOMY::JExperiment::setSNR |
( |
const double | value | ) |
|
|
inlinestatic |
Set minimal signa-to-noise ratio.
- Parameters
-
| value | signa-to-noise ratio. |
Definition at line 43 of file JExperiment.hh.
◆ check() [1/5]
| static bool JASTRONOMY::JExperiment::check |
( |
const double | s, |
|
|
const double | b ) |
|
inlinestatic |
Check validity of signal and background.
- Parameters
-
- Returns
- true if signal and backgroud are valid; else false
Definition at line 56 of file JExperiment.hh.
57 {
58 return (s > 0.0 && b > 0.0 && s/b >=
getSNR());
59 }
static double getSNR()
Get minimal signa-to-noise ratio.
◆ check() [2/5]
| static bool JASTRONOMY::JExperiment::check |
( |
const TAxis * | ha, |
|
|
const TAxis * | hb ) |
|
inlinestatic |
Check histogram bins.
- Parameters
-
| ha | histogram axis |
| hb | histogram axis |
- Returns
- true if same binning; else false
Definition at line 69 of file JExperiment.hh.
70 {
71 return (ha->GetNbins() == hb->GetNbins() &&
72 ha->GetXmin() == hb->GetXmin() &&
73 ha->GetXmax() == hb->GetXmax());
74 }
◆ check() [3/5]
| static bool JASTRONOMY::JExperiment::check |
( |
const TH1 & | ha, |
|
|
const TH1 & | hb ) |
|
inlinestatic |
Check histogram bins.
- Parameters
-
- Returns
- true if same binning; else false
Definition at line 83 of file JExperiment.hh.
84 {
85 return check(ha.GetXaxis(), hb.GetXaxis());
86 }
static bool check(const double s, const double b)
Check validity of signal and background.
◆ check() [4/5]
| static bool JASTRONOMY::JExperiment::check |
( |
const TH2 & | ha, |
|
|
const TH2 & | hb ) |
|
inlinestatic |
Check histogram bins.
- Parameters
-
- Returns
- true if same binning; else false
Definition at line 96 of file JExperiment.hh.
97 {
98 return (
check(ha.GetXaxis(), hb.GetXaxis()) &&
99 check(ha.GetYaxis(), hb.GetYaxis()));
100 }
◆ check() [5/5]
| static bool JASTRONOMY::JExperiment::check |
( |
const TH3 & | ha, |
|
|
const TH3 & | hb ) |
|
inlinestatic |
Check histogram bins.
- Parameters
-
- Returns
- true if same binning; else false
Definition at line 110 of file JExperiment.hh.
111 {
112 return (
check(ha.GetXaxis(), hb.GetXaxis()) &&
113 check(ha.GetYaxis(), hb.GetYaxis()) &&
114 check(ha.GetZaxis(), hb.GetZaxis()));
115 }
◆ get_snr()
| static double & JASTRONOMY::JExperiment::get_snr |
( |
| ) |
|
|
inlinestaticprivate |
Get minimal signa-to-noise ratio.
- Returns
- signa-to-noise ratio.
Definition at line 123 of file JExperiment.hh.
124 {
125 static double value = 0.0;
126
127 return value;
128 }
The documentation for this struct was generated from the following file: