|
Jpp 20.0.0-rc.8
the software that should make you happy
|
Pseudo experiment using CDF for combined generation and likelihood evaluation. More...
#include <JPseudoExperiment.hh>
Classes | |
| struct | cdf_type |
| Auxiliary data structure for CDF. More... | |
| struct | parameters_type |
| Nuisance parameters. More... | |
Public Types | |
| typedef JAspera::fit_type | fit_type |
| fit type | |
Public Member Functions | |
| JPseudoExperiment () | |
| Default constructor. | |
| template<class H_t > | |
| JPseudoExperiment (const H_t &hs, const H_t &hb) | |
| Constructor. | |
| template<class H_t > | |
| JPseudoExperiment (const H_t &hS, const H_t &hB, const H_t &hs, const H_t &hb) | |
| Constructor. | |
| void | add (const TObject *ps, const TObject *pb) |
| Add objects with PDFs of signal and background. | |
| void | add (const TObject *pS, const TObject *pB, const TObject *ps, const TObject *pb) |
| Add objects with PDFs of signal and background. | |
| void | add (const TH1 &hs, const TH1 &hb) |
| Add histograms with PDFs of signal and background. | |
| void | add (const TH1 &hS, const TH1 &hB, const TH1 &hs, const TH1 &hb) |
| Add histograms with PDFs of signal and background. | |
| void | add (const TH2 &hs, const TH2 &hb) |
| Add histograms with PDFs of signal and background. | |
| void | add (const TH2 &hS, const TH2 &hB, const TH2 &hs, const TH2 &hb) |
| Add histograms with PDFs of signal and background. | |
| void | add (const TH3 &hs, const TH3 &hb) |
| Add histograms with PDFs of signal and background. | |
| void | add (const TH3 &hS, const TH3 &hB, const TH3 &hs, const TH3 &hb) |
| Add histograms with PDFs of signal and background. | |
| void | add (const double s, const double b) |
| Add signal and background. | |
| void | add (const double S, const double B, const double s, const double b) |
| Add signal and background. | |
| 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 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. | |
| void | configure (size_t N) |
| Configure lookup tables. | |
| 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. | |
Public Attributes | |
| struct JASTRONOMY::JPseudoExperiment::parameters_type | nuisance |
Static Public Attributes | |
| static constexpr double | MINIMAL_SIGNAL_STRENGTH = 1.0e-10 |
| static constexpr double | MAXIMAL_SIGNAL_STRENGTH = 1.0e+10 |
Protected Member Functions | |
| template<class H_t > | |
| bool | add (const TObject *ps, const TObject *pb) |
| Add objects with PDF of signal and background. | |
| template<class H_t > | |
| bool | add (const TObject *pS, const TObject *pB, const TObject *ps, const TObject *pb) |
| Add objects with PDF of signal and background. | |
| 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 | |
| cdf_type | cs |
| CDF of signal. | |
| cdf_type | cb |
| CDF of background. | |
| JAspera | aspera |
| pre-computed N/S values | |
| double | fs = 1.0 |
| scaling factor signal strength | |
| double | fb = 1.0 |
| scaling factor background strength | |
| JAspera | fit |
| fit | |
Static Private Member Functions | |
| static double & | get_snr () |
| Get minimal signa-to-noise ratio. | |
Pseudo experiment using CDF for combined generation and likelihood evaluation.
Definition at line 339 of file JPseudoExperiment.hh.
fit type
Definition at line 62 of file JPseudoExperiment.hh.
|
inline |
|
inline |
Constructor.
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 358 of file JPseudoExperiment.hh.
|
inline |
Constructor.
| hS | histogram with PDF for generation of signal |
| hB | histogram with PDF for generation of background |
| hs | histogram with PDF for evaluation of signal |
| hb | histogram with PDF for evaluation of background |
Definition at line 374 of file JPseudoExperiment.hh.
Add objects with PDFs of signal and background.
| ps | pointer to object with PDF of signal |
| pb | pointer to object with PDF of background |
Definition at line 389 of file JPseudoExperiment.hh.
|
inline |
Add objects with PDFs of signal and background.
| pS | pointer to object with PDF for generation of signal |
| pB | pointer to object with PDF for generation of background |
| ps | pointer to object with PDF for evaluation of signal |
| pb | pointer to object with PDF for evaluation of background |
Definition at line 406 of file JPseudoExperiment.hh.
|
inline |
Add histograms with PDFs of signal and background.
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 423 of file JPseudoExperiment.hh.
|
inline |
Add histograms with PDFs of signal and background.
| hS | histogram with PDF for generation of signal |
| hB | histogram with PDF for generation of background |
| hs | histogram with PDF for evaluation of signal |
| hb | histogram with PDF for evaluation of background |
Definition at line 441 of file JPseudoExperiment.hh.
|
inline |
Add histograms with PDFs of signal and background.
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 461 of file JPseudoExperiment.hh.
|
inline |
Add histograms with PDFs of signal and background.
| hS | histogram with PDF for generation of signal |
| hB | histogram with PDF for generation of background |
| hs | histogram with PDF for evaluation of signal |
| hb | histogram with PDF for evaluation of background |
Definition at line 481 of file JPseudoExperiment.hh.
|
inline |
Add histograms with PDFs of signal and background.
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 503 of file JPseudoExperiment.hh.
|
inline |
Add histograms with PDFs of signal and background.
| hS | histogram with PDF for generation of signal |
| hB | histogram with PDF for generation of background |
| hs | histogram with PDF for evaluation of signal |
| hb | histogram with PDF for evaluation of background |
Definition at line 525 of file JPseudoExperiment.hh.
|
inline |
Add signal and background.
| s | signal |
| b | background |
Definition at line 549 of file JPseudoExperiment.hh.
|
inline |
Add signal and background.
| S | signal for generation |
| B | background for generation |
| s | signal for evaluation |
| b | background for evaluation |
Definition at line 570 of file JPseudoExperiment.hh.
|
inline |
Get total signal.
Definition at line 591 of file JPseudoExperiment.hh.
|
inline |
Get total background.
Definition at line 602 of file JPseudoExperiment.hh.
|
inlineoverridevirtual |
Set scaling factors of signal and background strengths.
| fS | signal strength |
| fB | background strength |
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 614 of file JPseudoExperiment.hh.
|
inlineoverridevirtual |
Get fit method.
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 630 of file JPseudoExperiment.hh.
|
inlinevirtual |
Generate pseudo experiment and transfer values to fit method.
| out | output |
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 642 of file JPseudoExperiment.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 663 of file JPseudoExperiment.hh.
|
inline |
Configure lookup tables.
| N | number of bins |
Definition at line 716 of file JPseudoExperiment.hh.
|
inlineprotected |
Add objects with PDF of signal and background.
| ps | pointer to object with PDF of signal |
| pb | pointer to object with PDF of background |
Definition at line 731 of file JPseudoExperiment.hh.
|
inlineprotected |
Add objects with PDF of signal and background.
| pS | pointer to object with PDF for generation of signal |
| pB | pointer to object with PDF for generation of background |
| ps | pointer to object with PDF for evaluation of signal |
| pb | pointer to object with PDF for evaluation of background |
Definition at line 762 of file JPseudoExperiment.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.
| struct JASTRONOMY::JPseudoExperiment::parameters_type JASTRONOMY::JPseudoExperiment::nuisance |
|
protected |
CDF of signal.
Definition at line 883 of file JPseudoExperiment.hh.
|
protected |
CDF of background.
Definition at line 884 of file JPseudoExperiment.hh.
|
protected |
pre-computed N/S values
Definition at line 886 of file JPseudoExperiment.hh.
|
protected |
scaling factor signal strength
Definition at line 888 of file JPseudoExperiment.hh.
|
protected |
scaling factor background strength
Definition at line 889 of file JPseudoExperiment.hh.
|
protected |
fit
Definition at line 891 of file JPseudoExperiment.hh.
|
staticconstexprinherited |
Definition at line 188 of file JPseudoExperiment.hh.
|
staticconstexprinherited |
Definition at line 189 of file JPseudoExperiment.hh.