Auxiliary base class for experiment.
More...
#include <JExperiment.hh>
|
| 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.
|
| |
Auxiliary base class for experiment.
Definition at line 25 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 34 of file JExperiment.hh.
35 {
36 return (s > 0.0 && b > 0.0);
37 }
◆ 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 47 of file JExperiment.hh.
48 {
49 return (ha->GetNbins() == hb->GetNbins() &&
50 ha->GetXmin() == hb->GetXmin() &&
51 ha->GetXmax() == hb->GetXmax());
52 }
◆ 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 61 of file JExperiment.hh.
62 {
63 return check(ha.GetXaxis(), hb.GetXaxis());
64 }
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 74 of file JExperiment.hh.
75 {
76 return (
check(ha.GetXaxis(), hb.GetXaxis()) &&
77 check(ha.GetYaxis(), hb.GetYaxis()));
78 }
◆ 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 88 of file JExperiment.hh.
89 {
90 return (
check(ha.GetXaxis(), hb.GetXaxis()) &&
91 check(ha.GetYaxis(), hb.GetYaxis()) &&
92 check(ha.GetZaxis(), hb.GetZaxis()));
93 }
The documentation for this struct was generated from the following file: