Auxiliary class for simultaneously handling light yields and response of PMT.
More...
#include <JShowerNPEHit.hh>
|
| JShowerNPEHit () |
| Default constructor. More...
|
|
| JShowerNPEHit (const JShowerNPE &npe, const size_t n) |
| Constructor. More...
|
|
size_t | getN () const |
| Get number of hits. More...
|
|
double | getP () const |
| Get probability. More...
|
|
double | getP (const double E_GeV) const |
| Get shower energy dependent probability. More...
|
|
double | getChi2 (const double E_GeV) const |
| Get chi2. More...
|
|
double | getY () const |
| Get light yield due to bremsstrahlung. More...
|
|
double | getH0 () const |
| Expected number of photo-electrons for random background hypothesis. More...
|
|
double | getH0 (const size_t M) const |
| Expected number of photo-electrons for random background hypothesis. More...
|
|
double | getH1 (const double E_GeV) const |
| Expected number of photo-electrons for EM shower hypothesis as a function of shower energy. More...
|
|
double | getP (const double E_GeV, const bool hit) const |
| Get probability for observing a hit or not as a function of shower energy. More...
|
|
double | getP (size_t M) const |
| Get probability to observe a hit with given multiplicity. More...
|
|
double | getChi2 (const double E_GeV, const bool hit) const |
| Get chi2 for observing a hit or not as a function of shower energy. More...
|
|
double | getY0 () const |
| Get expectation value for number of single hits. More...
|
|
double | getY1 (const size_t M) const |
| Get expectation value for number of multiple hits. More...
|
|
Auxiliary class for simultaneously handling light yields and response of PMT.
Definition at line 19 of file JShowerNPEHit.hh.
Type definition of expectation values of number of multiple hits.
Definition at line 33 of file JK40.hh.
JFIT::JShowerNPEHit::JShowerNPEHit |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 28 of file JShowerNPEHit.hh.
JShowerNPE()
Default constructor.
JFIT::JShowerNPEHit::JShowerNPEHit |
( |
const JShowerNPE & |
npe, |
|
|
const size_t |
n |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
Definition at line 40 of file JShowerNPEHit.hh.
JShowerNPE()
Default constructor.
size_t JFIT::JShowerNPEHit::getN |
( |
| ) |
const |
|
inline |
double JFIT::JShowerNPEHit::getP |
( |
| ) |
const |
|
inline |
Get probability.
- Returns
- probability
Definition at line 63 of file JShowerNPEHit.hh.
size_t getN() const
Get number of hits.
double getP() const
Get probability.
double JFIT::JShowerNPEHit::getP |
( |
const double |
E_GeV | ) |
const |
|
inline |
Get shower energy dependent probability.
- Parameters
-
- Returns
- probability
Definition at line 75 of file JShowerNPEHit.hh.
77 return this->
getP(E_GeV, this->
getN() > 0);
size_t getN() const
Get number of hits.
double getP() const
Get probability.
double JFIT::JShowerNPEHit::getChi2 |
( |
const double |
E_GeV | ) |
const |
|
inline |
Get chi2.
- Parameters
-
- Returns
- chi2
Definition at line 87 of file JShowerNPEHit.hh.
double getChi2(const double E_GeV) const
Get chi2.
size_t getN() const
Get number of hits.
double JFIT::JShowerNPE::getY |
( |
| ) |
const |
|
inlineinherited |
Get light yield due to bremsstrahlung.
- Returns
- light yield [npe/GeV]
Definition at line 59 of file JShowerNPE.hh.
double __y
light yield [npe/GeV]
double JFIT::JShowerNPE::getH0 |
( |
| ) |
const |
|
inlineinherited |
Expected number of photo-electrons for random background hypothesis.
- Returns
- light yield [npe]
Definition at line 69 of file JShowerNPE.hh.
double getY0() const
Get expectation value for number of single hits.
double JFIT::JShowerNPE::getH0 |
( |
const size_t |
M | ) |
const |
|
inlineinherited |
Expected number of photo-electrons for random background hypothesis.
- Parameters
-
- Returns
- light yield [npe]
Definition at line 81 of file JShowerNPE.hh.
double getY1(const size_t M) const
Get expectation value for number of multiple hits.
double JFIT::JShowerNPE::getH1 |
( |
const double |
E_GeV | ) |
const |
|
inlineinherited |
Expected number of photo-electrons for EM shower hypothesis as a function of shower energy.
- Parameters
-
- Returns
- light yield [npe]
Definition at line 93 of file JShowerNPE.hh.
95 using namespace JTOOLS;
96 using namespace JPHYSICS;
98 return E_GeV * this->
getY();
double getY() const
Get light yield due to bremsstrahlung.
double JFIT::JShowerNPE::getP |
( |
const double |
E_GeV, |
|
|
const bool |
hit |
|
) |
| const |
|
inlineinherited |
Get probability for observing a hit or not as a function of shower energy.
- Parameters
-
- Returns
- probability
Definition at line 109 of file JShowerNPE.hh.
double getH0() const
Expected number of photo-electrons for random background hypothesis.
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 getH1(const double E_GeV) const
Expected number of photo-electrons for EM shower hypothesis as a function of shower energy...
double JFIT::JK40::getP |
( |
size_t |
M | ) |
const |
|
inlineinherited |
Get probability to observe a hit with given multiplicity.
Note that if M = 0, the probability corresponds to observing no hits.
- Parameters
-
- Returns
- probability
Definition at line 128 of file JK40.hh.
double getY0() const
Get expectation value for number of single hits.
double getY1(const size_t M) const
Get expectation value for number of multiple hits.
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 JFIT::JShowerNPE::getChi2 |
( |
const double |
E_GeV, |
|
|
const bool |
hit |
|
) |
| const |
|
inlineinherited |
Get chi2 for observing a hit or not as a function of shower energy.
- Parameters
-
- Returns
- probability
Definition at line 122 of file JShowerNPE.hh.
double getH0() const
Expected number of photo-electrons for random background hypothesis.
double getH1(const double E_GeV) const
Expected number of photo-electrons for EM shower hypothesis as a function of shower energy...
double getChi2(const double P)
Get chi2 corresponding to given probability.
double JFIT::JK40::getY0 |
( |
| ) |
const |
|
inlineinherited |
Get expectation value for number of single hits.
- Returns
- expectation value
Definition at line 100 of file JK40.hh.
double __y0
expectation value of number of single hits
double JFIT::JK40::getY1 |
( |
const size_t |
M | ) |
const |
|
inlineinherited |
Get expectation value for number of multiple hits.
- Parameters
-
- Returns
- expectation value
Definition at line 112 of file JK40.hh.
114 if (
M >= 2 &&
M - 2 <
__y1.size())
JL1_t __y1
expectation values of number of multiple hits
size_t JFIT::JShowerNPEHit::__n |
|
protected |
double JFIT::JShowerNPE::__y |
|
protectedinherited |
expectation value of number of single hits
Definition at line 141 of file JK40.hh.
expectation values of number of multiple hits
Definition at line 142 of file JK40.hh.
The documentation for this struct was generated from the following file: