|
Jpp test-rotations-old-533-g2bdbdb559
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. | |
| void | set (const double fS, const double fB) |
| Set scaling factors of signal and background strengths. | |
| virtual JAspera & | getAspera () override |
| Get fit method. | |
| virtual stats_type | run (JAspera &out) const |
| result_type | operator() () |
| Generate 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. | |
Static Public Member Functions | |
| 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 | |
Pseudo experiment using CDF for combined generation and likelihood evaluation.
Definition at line 151 of file JPseudoExperiment.hh.
fit type
Definition at line 59 of file JPseudoExperiment.hh.
|
inline |
|
inline |
Constructor.
| hs | histogram with PDF of signal |
| hb | histogram with PDF of background |
Definition at line 168 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 184 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 199 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 216 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 233 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 251 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 271 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 291 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 313 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 335 of file JPseudoExperiment.hh.
|
inline |
Add signal and background.
| s | signal |
| b | background |
Definition at line 359 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 380 of file JPseudoExperiment.hh.
|
inline |
Get total signal.
Definition at line 401 of file JPseudoExperiment.hh.
|
inline |
Get total background.
Definition at line 412 of file JPseudoExperiment.hh.
|
inline |
|
inlineoverridevirtual |
Get fit method.
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 440 of file JPseudoExperiment.hh.
|
inlinevirtual |
Implements JASTRONOMY::JPseudoExperiment_t.
Definition at line 452 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 512 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 543 of file JPseudoExperiment.hh.
|
inlineinherited |
Generate pseudo experiment and fit signal strength.
Definition at line 93 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| storage | storage |
Definition at line 111 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| pm | pointer to data member of result |
| storage | storage |
Definition at line 126 of file JPseudoExperiment.hh.
|
inlineinherited |
Run pseudo experiments using given storage.
| pm | pointer to data member of result |
| storage | storage |
Definition at line 141 of file JPseudoExperiment.hh.
|
inlinestaticinherited |
Check validity of signal and background.
| s | signal |
| b | background |
Definition at line 34 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram axis |
| hb | histogram axis |
Definition at line 47 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 61 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 74 of file JExperiment.hh.
|
inlinestaticinherited |
Check histogram bins.
| ha | histogram |
| hb | histogram |
Definition at line 88 of file JExperiment.hh.
| struct JASTRONOMY::JPseudoExperiment::parameters_type JASTRONOMY::JPseudoExperiment::nuisance |
|
protected |
CDF of signal.
Definition at line 621 of file JPseudoExperiment.hh.
|
protected |
CDF of background.
Definition at line 622 of file JPseudoExperiment.hh.
|
protected |
pre-computed N/S values
Definition at line 624 of file JPseudoExperiment.hh.
|
protected |
scaling factor signal strength
Definition at line 626 of file JPseudoExperiment.hh.
|
protected |
scaling factor background strength
Definition at line 627 of file JPseudoExperiment.hh.
|
protected |
fit
Definition at line 629 of file JPseudoExperiment.hh.