Jpp  master_rocky
the software that should make you happy
Public Member Functions | Protected Attributes | List of all members
JFIT::JK40 Struct Reference

Auxiliary class for handling light yields due to K40 decays. More...

#include <JK40.hh>

Inheritance diagram for JFIT::JK40:
JFIT::JK40Hit JFIT::JNPE JFIT::JShowerNPE JFIT::JNPEHit JFIT::JShowerNPEHit

Public Member Functions

 JK40 ()
 Default constructor. More...
 
 JK40 (const double y0)
 Constructor. More...
 
double getY0 () const
 Get light yield due to random background. More...
 
double getH0 () const
 Expected number of photo-electrons for random background hypothesis. More...
 
double getP (const bool hit) const
 Get probability for observing a hit or not. More...
 
double getChi2 (const bool hit) const
 Get chi2 for observing a hit or not. More...
 

Protected Attributes

double y0
 light yield due to random background [npe] More...
 

Detailed Description

Auxiliary class for handling light yields due to K40 decays.

Definition at line 25 of file JK40.hh.

Constructor & Destructor Documentation

◆ JK40() [1/2]

JFIT::JK40::JK40 ( )
inline

Default constructor.

Definition at line 29 of file JK40.hh.

29  :
30  y0(0.0)
31  {}
double y0
light yield due to random background [npe]
Definition: JK40.hh:90

◆ JK40() [2/2]

JFIT::JK40::JK40 ( const double  y0)
inline

Constructor.

Parameters
y0light yield due to random background [npe]

Definition at line 39 of file JK40.hh.

39  :
40  y0(y0)
41  {}

Member Function Documentation

◆ getY0()

double JFIT::JK40::getY0 ( ) const
inline

Get light yield due to random background.

Returns
light yield [npe]

Definition at line 49 of file JK40.hh.

50  {
51  return y0;
52  }

◆ getH0()

double JFIT::JK40::getH0 ( ) const
inline

Expected number of photo-electrons for random background hypothesis.

Returns
light yield [npe]

Definition at line 60 of file JK40.hh.

61  {
62  return this->getY0();
63  }
double getY0() const
Get light yield due to random background.
Definition: JK40.hh:49

◆ getP()

double JFIT::JK40::getP ( const bool  hit) const
inline

Get probability for observing a hit or not.

Parameters
hithit
Returns
probability

Definition at line 72 of file JK40.hh.

73  {
74  return JFIT::getP(this->getH0(), hit);
75  }
double getP(const double expval, bool hit)
Get Poisson probability to observe a hit or not for given expectation value for the number of hits.
Definition: JFitToolkit.hh:41
double getH0() const
Expected number of photo-electrons for random background hypothesis.
Definition: JK40.hh:60

◆ getChi2()

double JFIT::JK40::getChi2 ( const bool  hit) const
inline

Get chi2 for observing a hit or not.

Parameters
hithit
Returns
probability

Definition at line 84 of file JK40.hh.

85  {
86  return JFIT::getChi2(this->getH0(), hit);
87  }
double getChi2(const double P)
Get chi2 corresponding to given probability.
Definition: JFitToolkit.hh:56

Member Data Documentation

◆ y0

double JFIT::JK40::y0
protected

light yield due to random background [npe]

Definition at line 90 of file JK40.hh.


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