|
Jpp 20.0.0-rc.7
the software that should make you happy
|
Auxiliary data structure to fit signal strength using likelihood ratio for multiple pseudo experiments. More...
#include <JGen2.hh>
Public Types | |
| typedef JAspera::fit_type | fit_type |
| fit type | |
Public Member Functions | |
| void | configure (size_t N) |
| Configure lookup tables. | |
| double | getSignal () const |
| Get total signal. | |
| double | getBackground () const |
| Get total background. | |
| virtual void | set (const double fS, const double fB=1.0) override |
| Set scaling factors of signal and background strengths. | |
| virtual JAspera & | getAspera () override |
| Get fit method. | |
| virtual stats_type | run (JAspera &out) const |
| Generate pseudo experiment and transfer S/N values to fit method. | |
| virtual stats_type | run (JAspera &out, const size_t nb) const |
| 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. | |
Protected Attributes | |
| JAspera | fit |
| fit | |
Static Private Member Functions | |
| static double & | get_snr () |
| Get minimal signa-to-noise ratio. | |
Auxiliary data structure to fit signal strength using likelihood ratio for multiple pseudo experiments.
fit type
Definition at line 62 of file JPseudoExperiment.hh.
|
inline |
Configure lookup tables.
| N | number of bins |
|
inline |
|
inline |
|
inlineoverridevirtual |
Set scaling factors of signal and background strengths.
| fS | signal strength |
| fB | background strength |
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 70 of file JGen2.hh.
|
inlineoverridevirtual |
|
inlinevirtual |
Generate pseudo experiment and transfer S/N values to fit method.
| out | output |
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 95 of file JGen2.hh.
|
inlinevirtual |
Generate background only pseudo experiment and transfer S/N values to fit method.
| out | output |
| nb | number of background events |
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 114 of file JGen2.hh.
|
inlineinherited |
Generate pseudo experiment and fit signal strength.
Definition at line 115 of file JPseudoExperiment.hh.
|
inlineinherited |
Generate background only pseudo experiment and fit signal strength.
| nb | number of background events |
Definition at line 134 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| storage | storage |
Definition at line 152 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| pm | pointer to data member of result |
| storage | storage |
Definition at line 167 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| pm | pointer to data member of result |
| storage | storage |
Definition at line 182 of file JPseudoExperiment.hh.
|
inlineinherited |
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.
|
inlineprotectedinherited |
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 308 of file JPseudoExperiment.hh.
|
inlinestaticinherited |
Get minimal signa-to-noise ratio.
Definition at line 32 of file JExperiment.hh.
|
inlinestaticinherited |
Set minimal signa-to-noise ratio.
| value | signa-to-noise ratio. |
Definition at line 43 of file JExperiment.hh.
|
inlinestaticinherited |
Check validity of signal and background.
| s | signal |
| b | background |
Definition at line 56 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram axis |
| hb | histogram axis |
Definition at line 69 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 83 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 96 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 110 of file JExperiment.hh.
|
inlinestaticprivateinherited |
Get minimal signa-to-noise ratio.
Definition at line 123 of file JExperiment.hh.
|
staticconstexprinherited |
Definition at line 188 of file JPseudoExperiment.hh.
|
staticconstexprinherited |
Definition at line 189 of file JPseudoExperiment.hh.