|
Jpp 20.0.0
the software that should make you happy
|
Real experiment using PDF of signal and background. More...
#include <JRealExperiment.hh>
Classes | |
| struct | remnant_type |
Public Member Functions | |
| JRealExperiment () | |
| Default constructor. | |
| template<class H_t > | |
| JRealExperiment (const H_t &hd, const H_t &hs, const H_t &hb) | |
| Constructor. | |
| void | add (const TObject *pd, const TObject *ps, const TObject *pb) |
| Add objects 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 TH2 &hd, const TH2 &hs, const TH2 &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. | |
| void | add (const size_t n, const double s, const double b) |
| Add data, signal and background. | |
| void | add () |
| Add remnant data, signal and background. | |
| void | put (const double s, const double b) |
| Put signal and background to list of pre-computed N/S values. | |
| void | put (const size_t n, const double s, const double b) |
| Put signal and background to list of pre-computed N/S values. | |
| double | getLikelihood (const double p) const |
| Get likelihood for given signal strength. | |
| double | getDerivative (const double p) const |
| Get derivative of likelihood for given signal strength. | |
| fit_type | operator() (const bool ns=false) const |
| Fit signal strength. | |
| double | getTestStatisticForUpperLimit (const double ps) const |
| Get test statistic for given signal strength. | |
| double | getSignal () const |
| Get total signal strength. | |
| void | setSignal (const double wS) |
| Set signal strength. | |
| void | addSignal (const double wS) |
| Add signal strength. | |
Static Public Member Functions | |
| 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 Public Attributes | |
| static constexpr double | EPSILON = 1.0e-3 |
| precision determination of signal strength | |
Protected Member Functions | |
| template<class H_t > | |
| bool | add (const TObject *pd, const TObject *ps, const TObject *pb) |
| Add objects with data and PDFs of signal and background. | |
Protected Attributes | |
| struct JASTRONOMY::JRealExperiment::remnant_type | remnant |
| double | ws = 0.0 |
| total signal strength | |
Static Private Member Functions | |
| static double & | get_snr () |
| Get minimal signa-to-noise ratio. | |
Real experiment using PDF of signal and background.
Definition at line 29 of file JRealExperiment.hh.
|
inline |
|
inline |
Constructor.
| hd | histogram with data |
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 48 of file JRealExperiment.hh.
|
inline |
Add objects with data and PDFs of signal and background.
| pd | pointer to object with data |
| ps | pointer to object with PDF of signal |
| pb | pointer to object with PDF of background |
Definition at line 63 of file JRealExperiment.hh.
|
inline |
Add histograms with data and PDFs of signal and background.
| hd | histogram with data |
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 80 of file JRealExperiment.hh.
|
inline |
Add histograms with data and PDFs of signal and background.
| hd | histogram with data |
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 99 of file JRealExperiment.hh.
|
inline |
Add histograms with data and PDFs of signal and background.
| hd | histogram with data |
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 120 of file JRealExperiment.hh.
|
inline |
Add data, signal and background.
| n | data |
| s | signal |
| b | background |
Definition at line 143 of file JRealExperiment.hh.
|
inline |
Add remnant data, signal and background.
Definition at line 158 of file JRealExperiment.hh.
|
inlineprotected |
Add objects with data and PDFs of signal and background.
| pd | pointer to object with data |
| ps | pointer to object with PDF of signal |
| pb | pointer to object with PDF of background |
Definition at line 178 of file JRealExperiment.hh.
|
inlinestaticinherited |
Get minimal signa-to-noise ratio.
Definition at line 33 of file JExperiment.hh.
|
inlinestaticinherited |
Set minimal signa-to-noise ratio.
| value | signa-to-noise ratio. |
Definition at line 44 of file JExperiment.hh.
|
inlinestaticinherited |
Check validity of signal and background.
| s | signal |
| b | background compare significance expectation for 1 bin with cut value |
Definition at line 58 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram axis |
| hb | histogram axis |
Definition at line 71 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 85 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 98 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 112 of file JExperiment.hh.
|
inlinestaticprivateinherited |
Get minimal signa-to-noise ratio.
Definition at line 125 of file JExperiment.hh.
|
inlineinherited |
Put signal and background to list of pre-computed N/S values.
| s | signal |
| b | background |
Definition at line 44 of file JAspera.hh.
|
inlineinherited |
Put signal and background to list of pre-computed N/S values.
| n | data |
| s | signal |
| b | background |
Definition at line 60 of file JAspera.hh.
|
inlineinherited |
Get likelihood for given signal strength.
| p | signal strength |
Definition at line 78 of file JAspera.hh.
|
inlineinherited |
Get derivative of likelihood for given signal strength.
| p | signal strength |
Definition at line 96 of file JAspera.hh.
|
inlineinherited |
Fit signal strength.
| ns | allow for negative signal |
Definition at line 114 of file JAspera.hh.
|
inlineinherited |
Get test statistic for given signal strength.
See formula 16 in this reference.
| ps | signal strength |
Definition at line 218 of file JAspera.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protected |
|
staticconstexprinherited |
precision determination of signal strength
Definition at line 26 of file JAspera.hh.
|
protectedinherited |
total signal strength
Definition at line 265 of file JAspera.hh.