1 #ifndef __JFIT__JSHOWERNPE__
2 #define __JFIT__JSHOWERNPE__
18 namespace JPP {
using namespace JFIT; }
67 inline double getH1(
const double E_GeV)
const
69 return E_GeV * this->
getY1();
80 double getP(
const double E_GeV,
const bool hit)
const
93 double getChi2(
const double E_GeV,
const bool hit)
const
double getH0() const
Expected number of photo-electrons for random background hypothesis.
double getChi2(const double E_GeV, const bool hit) const
Get chi2 for observing a hit or not as a function of shower energy.
Auxiliary class for handling light yields due to K40 decays.
double getP(const double E_GeV, const bool hit) const
Get probability for observing a hit or not as a function of shower energy.
double y1
light yield due to shower [npe/GeV]
double getY1() const
Get light yield due to shower.
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...
double y0
light yield due to random background [npe]
JShowerNPE()
Default constructor.
JShowerNPE(const double y0, const double y1)
Constructor.
double getH1(const double E_GeV) const
Expected number of photo-electrons for shower hypothesis as a function of shower energy.
Auxiliary class for handling EM shower light yield.
double getChi2(const double P)
Get chi2 corresponding to given probability.