Auxiliary class for converting various rates to expectation values of the number of hits within a given time interval.
More...
#include <JK40.hh>
|
| JK40 () |
| Default constructor. More...
|
|
| JK40 (const JTimeRange &T_ns, const double R_Hz) |
| Constructor for single PMT. More...
|
|
| JK40 (const JTimeRange &T_ns, const size_t numberOfPMTs, const JK40Rates &rates_Hz) |
| Constructor for modules. 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...
|
|
double | getP (size_t M) const |
| Get probability to observe a hit with given multiplicity. More...
|
|
Auxiliary class for converting various rates to expectation values of the number of hits within a given time interval.
Definition at line 30 of file JK40.hh.
◆ JL1_t
Type definition of expectation values of number of multiple hits.
Definition at line 34 of file JK40.hh.
◆ JK40() [1/3]
Default constructor.
Definition at line 40 of file JK40.hh.
◆ JK40() [2/3]
JFIT::JK40::JK40 |
( |
const JTimeRange & |
T_ns, |
|
|
const double |
R_Hz |
|
) |
| |
|
inline |
Constructor for single PMT.
- Parameters
-
T_ns | time range [ns] |
R_Hz | K40 singles rate [Hz] |
Definition at line 52 of file JK40.hh.
57 const double T_s = (T_ns.getUpperLimit() - T_ns.getLowerLimit()) * 1.0e-9;
◆ JK40() [3/3]
JFIT::JK40::JK40 |
( |
const JTimeRange & |
T_ns, |
|
|
const size_t |
numberOfPMTs, |
|
|
const JK40Rates & |
rates_Hz |
|
) |
| |
|
inline |
Constructor for modules.
- Parameters
-
T_ns | time range [ns] |
numberOfPMTs | number of PMTs in module |
rates_Hz | K40 singles and multiples rates [Hz] |
Definition at line 70 of file JK40.hh.
76 const double T_s = (T_ns.getUpperLimit() - T_ns.getLowerLimit())* 1.0e-9;
78 __y0 = numberOfPMTs * rates_Hz.getSinglesRate() * T_s;
82 for (
size_t M = rates_Hz.getLowerL1Multiplicity(); M <= rates_Hz.getUpperL1Multiplicity(); ++M) {
83 __y1.push_back(rates_Hz.getMultiplesRate(M) * T_s);
◆ getY0()
double JFIT::JK40::getY0 |
( |
| ) |
const |
|
inline |
Get expectation value for number of single hits.
- Returns
- expectation value
Definition at line 101 of file JK40.hh.
◆ getY1()
double JFIT::JK40::getY1 |
( |
const size_t |
M | ) |
const |
|
inline |
Get expectation value for number of multiple hits.
- Parameters
-
- Returns
- expectation value
Definition at line 113 of file JK40.hh.
115 if (M >= 2 && M - 2 <
__y1.size())
◆ getP()
double JFIT::JK40::getP |
( |
size_t |
M | ) |
const |
|
inline |
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 129 of file JK40.hh.
◆ __y0
expectation value of number of single hits
Definition at line 142 of file JK40.hh.
◆ __y1
expectation values of number of multiple hits
Definition at line 143 of file JK40.hh.
The documentation for this struct was generated from the following file: