Jpp 20.0.0-rc.6
the software that should make you happy
Loading...
Searching...
No Matches
JASTRONOMY::JPseudoExperiment Struct Reference

Pseudo experiment using CDF for combined generation and likelihood evaluation. More...

#include <JPseudoExperiment.hh>

Inheritance diagram for JASTRONOMY::JPseudoExperiment:
JASTRONOMY::JPseudoExperiment_t JASTRONOMY::JExperiment

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 JAsperagetAspera () 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.
 

Detailed Description

Pseudo experiment using CDF for combined generation and likelihood evaluation.

Definition at line 265 of file JPseudoExperiment.hh.

Member Typedef Documentation

◆ fit_type

Constructor & Destructor Documentation

◆ JPseudoExperiment() [1/3]

JASTRONOMY::JPseudoExperiment::JPseudoExperiment ( )
inline

Default constructor.

Definition at line 273 of file JPseudoExperiment.hh.

274 {}

◆ JPseudoExperiment() [2/3]

template<class H_t >
JASTRONOMY::JPseudoExperiment::JPseudoExperiment ( const H_t & hs,
const H_t & hb )
inline

Constructor.

Parameters
hshistogram with PDF of signal
hbhistogram with PDF of background

Definition at line 284 of file JPseudoExperiment.hh.

286 {
287 add(hs, hb);
288 }
void add(const TObject *ps, const TObject *pb)
Add objects with PDFs of signal and background.

◆ JPseudoExperiment() [3/3]

template<class H_t >
JASTRONOMY::JPseudoExperiment::JPseudoExperiment ( const H_t & hS,
const H_t & hB,
const H_t & hs,
const H_t & hb )
inline

Constructor.

Parameters
hShistogram with PDF for generation of signal
hBhistogram with PDF for generation of background
hshistogram with PDF for evaluation of signal
hbhistogram with PDF for evaluation of background

Definition at line 300 of file JPseudoExperiment.hh.

304 {
305 add(hS, hB, hs, hb);
306 }

Member Function Documentation

◆ add() [1/12]

void JASTRONOMY::JPseudoExperiment::add ( const TObject * ps,
const TObject * pb )
inline

Add objects with PDFs of signal and background.

Parameters
pspointer to object with PDF of signal
pbpointer to object with PDF of background

Definition at line 315 of file JPseudoExperiment.hh.

317 {
318 if (add<TH3>(ps, pb)) { return; }
319 if (add<TH2>(ps, pb)) { return; }
320 if (add<TH1>(ps, pb)) { return; }
321 }

◆ add() [2/12]

void JASTRONOMY::JPseudoExperiment::add ( const TObject * pS,
const TObject * pB,
const TObject * ps,
const TObject * pb )
inline

Add objects with PDFs of signal and background.

Parameters
pSpointer to object with PDF for generation of signal
pBpointer to object with PDF for generation of background
pspointer to object with PDF for evaluation of signal
pbpointer to object with PDF for evaluation of background

Definition at line 332 of file JPseudoExperiment.hh.

336 {
337 if (add<TH3>(pS, pB, ps, pb)) { return; }
338 if (add<TH2>(pS, pB, ps, pb)) { return; }
339 if (add<TH1>(pS, pB, ps, pb)) { return; }
340 }

◆ add() [3/12]

void JASTRONOMY::JPseudoExperiment::add ( const TH1 & hs,
const TH1 & hb )
inline

Add histograms with PDFs of signal and background.

Parameters
hshistogram with PDF of signal
hbhistogram with PDF of background

Definition at line 349 of file JPseudoExperiment.hh.

351 {
352 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
353 add(hs.GetBinContent(ix),
354 hb.GetBinContent(ix));
355 }
356 }

◆ add() [4/12]

void JASTRONOMY::JPseudoExperiment::add ( const TH1 & hS,
const TH1 & hB,
const TH1 & hs,
const TH1 & hb )
inline

Add histograms with PDFs of signal and background.

Parameters
hShistogram with PDF for generation of signal
hBhistogram with PDF for generation of background
hshistogram with PDF for evaluation of signal
hbhistogram with PDF for evaluation of background

Definition at line 367 of file JPseudoExperiment.hh.

371 {
372 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
373 add(hS.GetBinContent(ix),
374 hB.GetBinContent(ix),
375 hs.GetBinContent(ix),
376 hb.GetBinContent(ix));
377 }
378 }

◆ add() [5/12]

void JASTRONOMY::JPseudoExperiment::add ( const TH2 & hs,
const TH2 & hb )
inline

Add histograms with PDFs of signal and background.

Parameters
hshistogram with PDF of signal
hbhistogram with PDF of background

Definition at line 387 of file JPseudoExperiment.hh.

389 {
390 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
391 for (Int_t iy = 1; iy <= hs.GetYaxis()->GetNbins(); ++iy) {
392 add(hs.GetBinContent(ix, iy),
393 hb.GetBinContent(ix, iy));
394 }
395 }
396 }

◆ add() [6/12]

void JASTRONOMY::JPseudoExperiment::add ( const TH2 & hS,
const TH2 & hB,
const TH2 & hs,
const TH2 & hb )
inline

Add histograms with PDFs of signal and background.

Parameters
hShistogram with PDF for generation of signal
hBhistogram with PDF for generation of background
hshistogram with PDF for evaluation of signal
hbhistogram with PDF for evaluation of background

Definition at line 407 of file JPseudoExperiment.hh.

411 {
412 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
413 for (Int_t iy = 1; iy <= hs.GetYaxis()->GetNbins(); ++iy) {
414 add(hS.GetBinContent(ix, iy),
415 hB.GetBinContent(ix, iy),
416 hs.GetBinContent(ix, iy),
417 hb.GetBinContent(ix, iy));
418 }
419 }
420 }

◆ add() [7/12]

void JASTRONOMY::JPseudoExperiment::add ( const TH3 & hs,
const TH3 & hb )
inline

Add histograms with PDFs of signal and background.

Parameters
hshistogram with PDF of signal
hbhistogram with PDF of background

Definition at line 429 of file JPseudoExperiment.hh.

431 {
432 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
433 for (Int_t iy = 1; iy <= hs.GetYaxis()->GetNbins(); ++iy) {
434 for (Int_t iz = 1; iz <= hs.GetZaxis()->GetNbins(); ++iz) {
435 add(hs.GetBinContent(ix, iy, iz),
436 hb.GetBinContent(ix, iy, iz));
437 }
438 }
439 }
440 }

◆ add() [8/12]

void JASTRONOMY::JPseudoExperiment::add ( const TH3 & hS,
const TH3 & hB,
const TH3 & hs,
const TH3 & hb )
inline

Add histograms with PDFs of signal and background.

Parameters
hShistogram with PDF for generation of signal
hBhistogram with PDF for generation of background
hshistogram with PDF for evaluation of signal
hbhistogram with PDF for evaluation of background

Definition at line 451 of file JPseudoExperiment.hh.

455 {
456 for (Int_t ix = 1; ix <= hs.GetXaxis()->GetNbins(); ++ix) {
457 for (Int_t iy = 1; iy <= hs.GetYaxis()->GetNbins(); ++iy) {
458 for (Int_t iz = 1; iz <= hs.GetZaxis()->GetNbins(); ++iz) {
459 add(hS.GetBinContent(ix, iy, iz),
460 hB.GetBinContent(ix, iy, iz),
461 hs.GetBinContent(ix, iy, iz),
462 hb.GetBinContent(ix, iy, iz));
463 }
464 }
465 }
466 }

◆ add() [9/12]

void JASTRONOMY::JPseudoExperiment::add ( const double s,
const double b )
inline

Add signal and background.

Parameters
ssignal
bbackground

Definition at line 475 of file JPseudoExperiment.hh.

477 {
478 if (check(s, b)) {
479
480 cs.put(s);
481 cb.put(b);
482
483 aspera.put(s, b);
484 }
485 }
void put(const double s, const double b)
Put signal and background to list of pre-computed N/S values.
Definition JAspera.hh:44
static bool check(const double s, const double b)
Check validity of signal and background.
void put(const double x)
Put given value.
cdf_type cb
CDF of background.
JAspera aspera
pre-computed N/S values

◆ add() [10/12]

void JASTRONOMY::JPseudoExperiment::add ( const double S,
const double B,
const double s,
const double b )
inline

Add signal and background.

Parameters
Ssignal for generation
Bbackground for generation
ssignal for evaluation
bbackground for evaluation

Definition at line 496 of file JPseudoExperiment.hh.

500 {
501 if (//check(S, B) &&
502 check(s, b)) {
503
504 cs.put(S);
505 cb.put(B);
506
507 aspera.put(s, b);
508 }
509 }

◆ getSignal()

double JASTRONOMY::JPseudoExperiment::getSignal ( ) const
inline

Get total signal.

Returns
signal

Definition at line 517 of file JPseudoExperiment.hh.

518 {
519 return cs.back() * this->fs;
520 }
double fs
scaling factor signal strength

◆ getBackground()

double JASTRONOMY::JPseudoExperiment::getBackground ( ) const
inline

Get total background.

Returns
background

Definition at line 528 of file JPseudoExperiment.hh.

529 {
530 return cb.back() * this->fb;
531 }
double fb
scaling factor background strength

◆ set()

virtual void JASTRONOMY::JPseudoExperiment::set ( const double fS,
const double fB = 1.0 )
inlineoverridevirtual

Set scaling factors of signal and background strengths.

Parameters
fSsignal strength
fBbackground strength

Implements JASTRONOMY::JPseudoExperiment_t.

Definition at line 540 of file JPseudoExperiment.hh.

541 {
542 for (auto& i : aspera) {
543 i *= fB / this->fb;
544 }
545
546 this->fs = fS;
547 this->fb = fB;
548 }

◆ getAspera()

virtual JAspera & JASTRONOMY::JPseudoExperiment::getAspera ( )
inlineoverridevirtual

Get fit method.

Returns
fit

Implements JASTRONOMY::JPseudoExperiment_t.

Definition at line 556 of file JPseudoExperiment.hh.

557 {
558 return this->fit;
559 }

◆ run() [1/2]

virtual stats_type JASTRONOMY::JPseudoExperiment::run ( JAspera & out) const
inlinevirtual

Generate pseudo experiment and transfer values to fit method.

Parameters
outoutput
Returns
result

Implements JASTRONOMY::JPseudoExperiment_t.

Definition at line 568 of file JPseudoExperiment.hh.

569 {
570 out.addSignal(aspera.getSignal());
571
572 const size_t ns = gRandom->Poisson(getSignal() * nuisance.signal ->get()); // number of signal events
573 const size_t nb = gRandom->Poisson(getBackground() * nuisance.background->get()); // number of background events
574
575 for (size_t i = ns; i != 0; --i) { out.push_back(aspera[cs.get_index(gRandom->Rndm())]); } // store distributed signal events
576 for (size_t i = nb; i != 0; --i) { out.push_back(aspera[cb.get_index(gRandom->Rndm())]); } // store distributed background events
577
578 return { ns, nb };
579 }
double getSignal() const
Get total signal strength.
Definition JAspera.hh:236
size_t get_index(const double rv, const bool option=false) const
Get index corresponding to given random value.
struct JASTRONOMY::JPseudoExperiment::parameters_type nuisance
double getSignal() const
Get total signal.
double getBackground() const
Get total background.

◆ run() [2/2]

virtual stats_type JASTRONOMY::JPseudoExperiment::run ( JAspera & out,
const size_t nb ) const
inlinevirtual

Generate background only pseudo experiment and transfer S/N values to fit method.

Parameters
outoutput
nbnumber of background events
Returns
result

Implements JASTRONOMY::JPseudoExperiment_t.

Definition at line 589 of file JPseudoExperiment.hh.

590 {
591 out.addSignal(aspera.getSignal());
592
593 for (size_t i = nb; i != 0; --i) { out.push_back(aspera[cb.get_index(gRandom->Rndm())]); } // store distributed background events
594
595 return { 0, nb };
596 }

◆ configure()

void JASTRONOMY::JPseudoExperiment::configure ( size_t N)
inline

Configure lookup tables.

Parameters
Nnumber of bins

Definition at line 642 of file JPseudoExperiment.hh.

643 {
644 cs.configure(N);
645 cb.configure(N);
646 }
void configure(size_t N)
Configure lookup table.

◆ add() [11/12]

template<class H_t >
bool JASTRONOMY::JPseudoExperiment::add ( const TObject * ps,
const TObject * pb )
inlineprotected

Add objects with PDF of signal and background.

Parameters
pspointer to object with PDF of signal
pbpointer to object with PDF of background
Returns
true if added; else false

Definition at line 657 of file JPseudoExperiment.hh.

659 {
660 if (dynamic_cast<const H_t*>(ps) != NULL &&
661 dynamic_cast<const H_t*>(pb) != NULL) {
662
663 const H_t& hs = dynamic_cast<const H_t&>(*ps);
664 const H_t& hb = dynamic_cast<const H_t&>(*pb);
665
666 if (check(hs, hb)) {
667
668 add(hs, hb);
669
670 return true;
671 }
672 }
673
674 return false;
675 }

◆ add() [12/12]

template<class H_t >
bool JASTRONOMY::JPseudoExperiment::add ( const TObject * pS,
const TObject * pB,
const TObject * ps,
const TObject * pb )
inlineprotected

Add objects with PDF of signal and background.

Parameters
pSpointer to object with PDF for generation of signal
pBpointer to object with PDF for generation of background
pspointer to object with PDF for evaluation of signal
pbpointer to object with PDF for evaluation of background
Returns
true if added; else false

Definition at line 688 of file JPseudoExperiment.hh.

692 {
693 if (dynamic_cast<const H_t*>(pS) != NULL &&
694 dynamic_cast<const H_t*>(pB) != NULL &&
695 dynamic_cast<const H_t*>(ps) != NULL &&
696 dynamic_cast<const H_t*>(pb) != NULL) {
697
698 const H_t& hS = dynamic_cast<const H_t&>(*pS);
699 const H_t& hB = dynamic_cast<const H_t&>(*pB);
700 const H_t& hs = dynamic_cast<const H_t&>(*ps);
701 const H_t& hb = dynamic_cast<const H_t&>(*pb);
702
703 if (check(hS, hB) && check(hB, hs) && check(hs, hb)) {
704
705 add(hS, hB, hs, hb);
706
707 return true;
708 }
709 }
710
711 return false;
712 }

◆ operator()() [1/5]

result_type JASTRONOMY::JPseudoExperiment_t::operator() ( )
inlineinherited

Generate pseudo experiment and fit signal strength.

Returns
result

Definition at line 154 of file JPseudoExperiment.hh.

155 {
156 JAspera& aspera = getAspera();
157
158 // reset
159
160 aspera.clear();
161 aspera.setSignal(0.0);
162
163 return { run(aspera), aspera() };
164 }
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.

◆ operator()() [2/5]

result_type JASTRONOMY::JPseudoExperiment_t::operator() ( const size_t nb)
inlineinherited

Generate background only pseudo experiment and fit signal strength.

Parameters
nbnumber of background events
Returns
result

Definition at line 173 of file JPseudoExperiment.hh.

174 {
175 JAspera& aspera = getAspera();
176
177 // reset
178
179 aspera.clear();
180 aspera.setSignal(0.0);
181
182 return { run(aspera, nb), aspera() };
183 }

◆ operator()() [3/5]

void JASTRONOMY::JPseudoExperiment_t::operator() ( std::vector< result_type > & storage)
inlineinherited

Run pseudo experiments using given storage.

Parameters
storagestorage

Definition at line 191 of file JPseudoExperiment.hh.

192 {
193 for (auto& i : storage) {
194 i = (*this)();
195 }
196 }

◆ operator()() [4/5]

template<class T , class JValue_t >
void JASTRONOMY::JPseudoExperiment_t::operator() ( JValue_t result_type::* pm,
std::vector< T > & storage )
inlineinherited

Run pseudo experiments using given storage.

Parameters
pmpointer to data member of result
storagestorage

Definition at line 206 of file JPseudoExperiment.hh.

207 {
208 for (auto& i : storage) {
209 i = (*this)().*pm;
210 }
211 }

◆ operator()() [5/5]

template<class T , class JValue_t >
void JASTRONOMY::JPseudoExperiment_t::operator() ( JValue_t JAspera::fit_type::* pm,
std::vector< T > & storage )
inlineinherited

Run pseudo experiments using given storage.

Parameters
pmpointer to data member of result
storagestorage

Definition at line 221 of file JPseudoExperiment.hh.

222 {
223 (*this)(static_cast<JValue_t result_type::*>(pm), storage);
224 }

◆ getProbabilityForUpperLimit()

double JASTRONOMY::JPseudoExperiment_t::getProbabilityForUpperLimit ( const double ps,
const double ts,
const size_t nx ) const
inlineinherited

Get probability for given pseudo experiment and signal strength to exceed minimal test statistic for upper limit.

Parameters
pssignal strength
tstest statistic
nxnumber of pseudo experiments

Definition at line 234 of file JPseudoExperiment.hh.

237 {
238 size_t ns = 0;
239
240 for (size_t i = 0; i != nx; ++i) {
241
242 JAspera aspera;
243
244 this->run(aspera);
245
246 if (ps <= std::numeric_limits<double>::min()) {
247
248 if (aspera().signal <= ps) {
249 ns += 1;
250 }
251
252 } else if (aspera.getTestStatisticForUpperLimit(ps) > ts) {
253 ns += 1;
254 }
255 }
256
257 return (double) ns / (double) nx;
258 }

◆ getSNR()

static double JASTRONOMY::JExperiment::getSNR ( )
inlinestaticinherited

Get minimal signa-to-noise ratio.

Returns
signa-to-noise ratio.

Definition at line 32 of file JExperiment.hh.

33 {
34 return get_snr();
35 }
static double & get_snr()
Get minimal signa-to-noise ratio.

◆ setSNR()

static void JASTRONOMY::JExperiment::setSNR ( const double value)
inlinestaticinherited

Set minimal signa-to-noise ratio.

Parameters
valuesigna-to-noise ratio.

Definition at line 43 of file JExperiment.hh.

44 {
45 get_snr() = value;
46 }

◆ check() [1/5]

static bool JASTRONOMY::JExperiment::check ( const double s,
const double b )
inlinestaticinherited

Check validity of signal and background.

Parameters
ssignal
bbackground
Returns
true if signal and backgroud are valid; else false

Definition at line 56 of file JExperiment.hh.

57 {
58 return (s > 0.0 && b > 0.0 && s/b >= getSNR());
59 }
static double getSNR()
Get minimal signa-to-noise ratio.

◆ check() [2/5]

static bool JASTRONOMY::JExperiment::check ( const TAxis * ha,
const TAxis * hb )
inlinestaticinherited

Check histogram bins.

Parameters
hahistogram axis
hbhistogram axis
Returns
true if same binning; else false

Definition at line 69 of file JExperiment.hh.

70 {
71 return (ha->GetNbins() == hb->GetNbins() &&
72 ha->GetXmin() == hb->GetXmin() &&
73 ha->GetXmax() == hb->GetXmax());
74 }

◆ check() [3/5]

static bool JASTRONOMY::JExperiment::check ( const TH1 & ha,
const TH1 & hb )
inlinestaticinherited

Check histogram bins.

Parameters
hahistogram
hbhistogram
Returns
true if same binning; else false

Definition at line 83 of file JExperiment.hh.

84 {
85 return check(ha.GetXaxis(), hb.GetXaxis());
86 }

◆ check() [4/5]

static bool JASTRONOMY::JExperiment::check ( const TH2 & ha,
const TH2 & hb )
inlinestaticinherited

Check histogram bins.

Parameters
hahistogram
hbhistogram
Returns
true if same binning; else false

Definition at line 96 of file JExperiment.hh.

97 {
98 return (check(ha.GetXaxis(), hb.GetXaxis()) &&
99 check(ha.GetYaxis(), hb.GetYaxis()));
100 }

◆ check() [5/5]

static bool JASTRONOMY::JExperiment::check ( const TH3 & ha,
const TH3 & hb )
inlinestaticinherited

Check histogram bins.

Parameters
hahistogram
hbhistogram
Returns
true if same binning; else false

Definition at line 110 of file JExperiment.hh.

111 {
112 return (check(ha.GetXaxis(), hb.GetXaxis()) &&
113 check(ha.GetYaxis(), hb.GetYaxis()) &&
114 check(ha.GetZaxis(), hb.GetZaxis()));
115 }

◆ get_snr()

static double & JASTRONOMY::JExperiment::get_snr ( )
inlinestaticprivateinherited

Get minimal signa-to-noise ratio.

Returns
signa-to-noise ratio.

Definition at line 123 of file JExperiment.hh.

124 {
125 static double value = 0.0;
126
127 return value;
128 }

Member Data Documentation

◆ nuisance

struct JASTRONOMY::JPseudoExperiment::parameters_type JASTRONOMY::JPseudoExperiment::nuisance

◆ cs

cdf_type JASTRONOMY::JPseudoExperiment::cs
protected

CDF of signal.

Definition at line 809 of file JPseudoExperiment.hh.

◆ cb

cdf_type JASTRONOMY::JPseudoExperiment::cb
protected

CDF of background.

Definition at line 810 of file JPseudoExperiment.hh.

◆ aspera

JAspera JASTRONOMY::JPseudoExperiment::aspera
protected

pre-computed N/S values

Definition at line 812 of file JPseudoExperiment.hh.

◆ fs

double JASTRONOMY::JPseudoExperiment::fs = 1.0
protected

scaling factor signal strength

Definition at line 814 of file JPseudoExperiment.hh.

◆ fb

double JASTRONOMY::JPseudoExperiment::fb = 1.0
protected

scaling factor background strength

Definition at line 815 of file JPseudoExperiment.hh.

◆ fit

JAspera JASTRONOMY::JPseudoExperiment::fit
protected

fit

Definition at line 817 of file JPseudoExperiment.hh.


The documentation for this struct was generated from the following file: