|
Jpp 20.0.0-72-g597b30bc9
the software that should make you happy
|
Auxiliary interface for pseudo experiment. More...
#include <JPseudoExperiment.hh>
Classes | |
| struct | result_type |
| Combined result of pseudo experiment and fit. More... | |
| struct | stats_type |
| Statistics of pseudo experiment. More... | |
Public Types | |
| typedef JAspera::fit_type | fit_type |
| fit type | |
Public Member Functions | |
| virtual void | set (const double fS, const double fB=1.0)=0 |
| Set scaling factors of signal and background strengths. | |
| virtual JAspera & | getAspera ()=0 |
| Get fit method. | |
| virtual stats_type | run (JAspera &out) const =0 |
| Generate pseudo experiment and transfer S/N values to fit method. | |
| virtual stats_type | run (JAspera &out, const size_t nb) const =0 |
| Generate background only pseudo experiment and transfer S/N values to fit method. | |
| result_type | operator() () |
| Generate pseudo experiment and fit signal strength. | |
| result_type | operator() (const size_t nb) |
| Generate background only pseudo experiment and fit signal strength. | |
| void | operator() (std::vector< result_type > &storage) |
| Run pseudo experiments using given storage. | |
| template<class T , class JValue_t > | |
| void | operator() (JValue_t result_type::*pm, std::vector< T > &storage) |
| Run pseudo experiments using given storage. | |
| template<class T , class JValue_t > | |
| void | operator() (JValue_t JAspera::fit_type::*pm, std::vector< T > &storage) |
| Run pseudo experiments using given storage. | |
| double | getSignalStrengthForUpperLimit (const JAspera &aspera, const double Q, const size_t numberOfTests, const double precision=1.0e-4) |
| Get signal strength given result of experiment and probability of upper limit. | |
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 | MINIMAL_SIGNAL_STRENGTH = 1.0e-10 |
| static constexpr double | MAXIMAL_SIGNAL_STRENGTH = 1.0e+10 |
Protected Member Functions | |
| double | getProbabilityForUpperLimit (const double ps, const double ts, const size_t nx) const |
| Get probability for given pseudo experiment and signal strength to exceed minimal test statistic for upper limit. | |
Static Private Member Functions | |
| static double & | get_snr () |
| Get minimal signa-to-noise ratio. | |
Auxiliary interface for pseudo experiment.
Definition at line 36 of file JPseudoExperiment.hh.
fit type
Definition at line 62 of file JPseudoExperiment.hh.
|
pure virtual |
Set scaling factors of signal and background strengths.
| fS | signal strength |
| fB | background strength |
Implemented in JASTRONOMY::JGen2, and JASTRONOMY::JPseudoExperiment.
|
pure virtual |
|
pure virtual |
Generate pseudo experiment and transfer S/N values to fit method.
| out | output |
Implemented in JASTRONOMY::JGen2, and JASTRONOMY::JPseudoExperiment.
|
pure virtual |
Generate background only pseudo experiment and transfer S/N values to fit method.
| out | output |
| nb | number of background events |
Implemented in JASTRONOMY::JGen2, and JASTRONOMY::JPseudoExperiment.
|
inline |
Generate pseudo experiment and fit signal strength.
Definition at line 115 of file JPseudoExperiment.hh.
|
inline |
Generate background only pseudo experiment and fit signal strength.
| nb | number of background events |
Definition at line 134 of file JPseudoExperiment.hh.
|
inline |
Run pseudo experiments using given storage.
| storage | storage |
Definition at line 152 of file JPseudoExperiment.hh.
|
inline |
Run pseudo experiments using given storage.
| pm | pointer to data member of result |
| storage | storage |
Definition at line 167 of file JPseudoExperiment.hh.
|
inline |
Run pseudo experiments using given storage.
| pm | pointer to data member of result |
| storage | storage |
Definition at line 182 of file JPseudoExperiment.hh.
|
inline |
Get signal strength given result of experiment and probability of upper limit.
| aspera | result of experiment |
| Q | probability |
| numberOfTests | number of tests |
| precision | precision |
Definition at line 201 of file JPseudoExperiment.hh.
|
inlineprotected |
Get probability for given pseudo experiment and signal strength to exceed minimal test statistic for upper limit.
| ps | signal strength |
| ts | test statistic |
| nx | number of pseudo experiments |
Definition at line 312 of file JPseudoExperiment.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.
|
staticconstexpr |
Definition at line 188 of file JPseudoExperiment.hh.
|
staticconstexpr |
Definition at line 189 of file JPseudoExperiment.hh.