1#ifndef __JFIT__JSHOWERNPEHIT__
2#define __JFIT__JSHOWERNPEHIT__
12namespace JPP {
using namespace JFIT; }
75 double getP(
const double E_GeV)
const
77 return this->
getP(E_GeV, this->
getN() > 0);
Auxiliary classes and methods for linear and iterative data regression.
Auxiliary class for simultaneously handling light yields and response of PMT.
size_t getN() const
Get number of hits.
JShowerNPEHit()
Default constructor.
JShowerNPEHit(const JShowerNPE &npe, const size_t n)
Constructor.
double getP() const
Get probability.
double getP(const double E_GeV) const
Get shower energy dependent probability.
double getChi2(const double E_GeV) const
Get chi2.
Auxiliary class for handling EM shower light yield.
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 getChi2(const double E_GeV, const bool hit) const
Get chi2 for observing a hit or not as a function of shower energy.