Auxiliary class for simultaneously handling light yields and response of module.
More...
#include <JK40Hit.hh>
|
| | JK40Hit () |
| | Default constructor.
|
| |
| | JK40Hit (const JDAQModuleIdentifier &id, const JK40 &k40, const size_t n) |
| | Constructor.
|
| |
| size_t | getN () const |
| | Get number of hits.
|
| |
| double | getP () const |
| | Get probability.
|
| |
| double | getP (const bool hit) const |
| | Get probability for observing a hit or not.
|
| |
| double | getY0 () const |
| | Get light yield due to random background.
|
| |
| double | getH0 () const |
| | Expected number of photo-electrons for random background hypothesis.
|
| |
| double | getChi2 (const bool hit) const |
| | Get chi2 for observing a hit or not.
|
| |
|
| size_t | __n |
| |
| double | y0 |
| | light yield due to random background [npe]
|
| |
Auxiliary class for simultaneously handling light yields and response of module.
Definition at line 23 of file JK40Hit.hh.
◆ JK40Hit() [1/2]
| JFIT::JK40Hit::JK40Hit |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 32 of file JK40Hit.hh.
32 :
33 JDAQModuleIdentifier(),
36 {}
JK40()
Default constructor.
◆ JK40Hit() [2/2]
| JFIT::JK40Hit::JK40Hit |
( |
const JDAQModuleIdentifier & | id, |
|
|
const JK40 & | k40, |
|
|
const size_t | n ) |
|
inline |
Constructor.
- Parameters
-
| id | module identifier |
| k40 | k40 |
| n | number of hits |
Definition at line 46 of file JK40Hit.hh.
48 :
49 JDAQModuleIdentifier(id),
52 {}
◆ getN()
| size_t JFIT::JK40Hit::getN |
( |
| ) |
const |
|
inline |
Get number of hits.
- Returns
- number of hits
Definition at line 60 of file JK40Hit.hh.
◆ getP() [1/2]
| double JFIT::JK40Hit::getP |
( |
| ) |
const |
|
inline |
Get probability.
- Returns
- probability
Definition at line 71 of file JK40Hit.hh.
72 {
74 }
size_t getN() const
Get number of hits.
double getP() const
Get probability.
◆ getP() [2/2]
| double JFIT::JK40::getP |
( |
const bool | hit | ) |
const |
|
inline |
Get probability for observing a hit or not.
- Parameters
-
- Returns
- probability
Definition at line 72 of file JK40.hh.
73 {
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.
double getH0() const
Expected number of photo-electrons for random background hypothesis.
◆ 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.
50 {
52 }
double y0
light yield due to random background [npe]
◆ 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.
◆ getChi2()
| 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.
85 {
87 }
double getChi2(const double P)
Get chi2 corresponding to given probability.
◆ __n
| size_t JFIT::JK40Hit::__n |
|
protected |
◆ 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: