|
Jpp 20.0.0-rc.6
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 | 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 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 |
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. | |
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 265 of file JPseudoExperiment.hh.
fit type
Definition at line 57 of file JPseudoExperiment.hh.
|
inline |
|
inline |
Constructor.
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 284 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 300 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 315 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 332 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 349 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 367 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 387 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 407 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 429 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 451 of file JPseudoExperiment.hh.
|
inline |
Add signal and background.
| s | signal |
| b | background |
Definition at line 475 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 496 of file JPseudoExperiment.hh.
|
inline |
Get total signal.
Definition at line 517 of file JPseudoExperiment.hh.
|
inline |
Get total background.
Definition at line 528 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 540 of file JPseudoExperiment.hh.
|
inlineoverridevirtual |
Get fit method.
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 556 of file JPseudoExperiment.hh.
|
inlinevirtual |
Generate pseudo experiment and transfer values to fit method.
| out | output |
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 568 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 589 of file JPseudoExperiment.hh.
|
inline |
Configure lookup tables.
| N | number of bins |
Definition at line 642 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 657 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 688 of file JPseudoExperiment.hh.
|
inlineinherited |
Generate pseudo experiment and fit signal strength.
Definition at line 154 of file JPseudoExperiment.hh.
|
inlineinherited |
Generate background only pseudo experiment and fit signal strength.
| nb | number of background events |
Definition at line 173 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| storage | storage |
Definition at line 191 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| pm | pointer to data member of result |
| storage | storage |
Definition at line 206 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| pm | pointer to data member of result |
| storage | storage |
Definition at line 221 of file JPseudoExperiment.hh.
|
inlineinherited |
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 234 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 809 of file JPseudoExperiment.hh.
|
protected |
CDF of background.
Definition at line 810 of file JPseudoExperiment.hh.
|
protected |
pre-computed N/S values
Definition at line 812 of file JPseudoExperiment.hh.
|
protected |
scaling factor signal strength
Definition at line 814 of file JPseudoExperiment.hh.
|
protected |
scaling factor background strength
Definition at line 815 of file JPseudoExperiment.hh.
|
protected |
fit
Definition at line 817 of file JPseudoExperiment.hh.