Auxiliary class for handling EM shower light yield.
More...
#include <JShowerNPE.hh>
|
| JShowerNPE () |
| Default constructor.
|
|
| JShowerNPE (const double y0, const double y1) |
| Constructor.
|
|
double | getY1 () const |
| Get light yield due to shower.
|
|
double | getH1 (const double E_GeV) const |
| Expected number of photo-electrons for shower hypothesis as a function of shower energy.
|
|
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.
|
|
double | getY0 () const |
| Get light yield due to random background.
|
|
double | getH0 () const |
| Expected number of photo-electrons for random background hypothesis.
|
|
double | getP (const bool hit) const |
| Get probability for observing a hit or not.
|
|
double | getChi2 (const bool hit) const |
| Get chi2 for observing a hit or not.
|
|
|
double | y1 |
| light yield due to shower [npe/GeV]
|
|
double | y0 |
| light yield due to random background [npe]
|
|
Auxiliary class for handling EM shower light yield.
Definition at line 25 of file JShowerNPE.hh.
◆ JShowerNPE() [1/2]
JFIT::JShowerNPE::JShowerNPE |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 31 of file JShowerNPE.hh.
31 :
34 {}
JK40()
Default constructor.
double y1
light yield due to shower [npe/GeV]
◆ JShowerNPE() [2/2]
JFIT::JShowerNPE::JShowerNPE |
( |
const double | y0, |
|
|
const double | y1 ) |
|
inline |
Constructor.
- Parameters
-
y0 | light yield due to random background [npe] |
y1 | light yield due to shower [npe/GeV] |
Definition at line 43 of file JShowerNPE.hh.
44 :
47 {}
double y0
light yield due to random background [npe]
◆ getY1()
double JFIT::JShowerNPE::getY1 |
( |
| ) |
const |
|
inline |
Get light yield due to shower.
- Returns
- light yield [npe/GeV]
Definition at line 55 of file JShowerNPE.hh.
◆ getH1()
double JFIT::JShowerNPE::getH1 |
( |
const double | E_GeV | ) |
const |
|
inline |
Expected number of photo-electrons for shower hypothesis as a function of shower energy.
- Parameters
-
- Returns
- light yield [npe]
Definition at line 67 of file JShowerNPE.hh.
68 {
69 return E_GeV * this->
getY1();
70 }
double getY1() const
Get light yield due to shower.
◆ getP() [1/2]
double JFIT::JShowerNPE::getP |
( |
const double | E_GeV, |
|
|
const bool | hit ) const |
|
inline |
Get probability for observing a hit or not as a function of shower energy.
- Parameters
-
- Returns
- probability
Definition at line 80 of file JShowerNPE.hh.
81 {
83 }
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 getH0() const
Expected number of photo-electrons for random background hypothesis.
double getH1(const double E_GeV) const
Expected number of photo-electrons for shower hypothesis as a function of shower energy.
◆ getChi2() [1/2]
double JFIT::JShowerNPE::getChi2 |
( |
const double | E_GeV, |
|
|
const bool | hit ) const |
|
inline |
Get chi2 for observing a hit or not as a function of shower energy.
- Parameters
-
- Returns
- probability
Definition at line 93 of file JShowerNPE.hh.
94 {
96 }
double getChi2(const double P)
Get chi2 corresponding to given probability.
◆ getY0()
double JFIT::JK40::getY0 |
( |
| ) |
const |
|
inlineinherited |
Get light yield due to random background.
- Returns
- light yield [npe]
Definition at line 49 of file JK40.hh.
◆ getH0()
double JFIT::JK40::getH0 |
( |
| ) |
const |
|
inlineinherited |
Expected number of photo-electrons for random background hypothesis.
- Returns
- light yield [npe]
Definition at line 60 of file JK40.hh.
61 {
63 }
double getY0() const
Get light yield due to random background.
◆ getP() [2/2]
double JFIT::JK40::getP |
( |
const bool | hit | ) |
const |
|
inlineinherited |
Get probability for observing a hit or not.
- Parameters
-
- Returns
- probability
Definition at line 72 of file JK40.hh.
◆ getChi2() [2/2]
double JFIT::JK40::getChi2 |
( |
const bool | hit | ) |
const |
|
inlineinherited |
Get chi2 for observing a hit or not.
- Parameters
-
- Returns
- probability
Definition at line 84 of file JK40.hh.
◆ y1
double JFIT::JShowerNPE::y1 |
|
protected |
light yield due to shower [npe/GeV]
Definition at line 99 of file JShowerNPE.hh.
◆ y0
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: