Jpp
18.0.0-rc.3
the software that should make you happy
|
Default K40 simulator interface. More...
#include <JK40DefaultSimulatorInterface.hh>
Classes | |
struct | JBuffer1D_t |
1D-linear buffer. More... | |
struct | JBuffer2D_t |
2D-square buffer. More... | |
Public Member Functions | |
virtual double | getSinglesRate (const JPMTIdentifier &pmt) const =0 |
Get singles rate as a function of PMT. More... | |
virtual double | getMultiplesRate (const JModuleIdentifier &module, const int M) const =0 |
Get multiples rate as a function of optical module. More... | |
virtual double | getProbability (const double ct) const =0 |
Get probability of coincidence. More... | |
virtual void | generateHits (const JModule &module, const JTimeRange &period, JModuleData &output) const |
Generate hits. More... | |
Static Public Member Functions | |
static unsigned int | getRandomIndex (const JBuffer1D_t &buffer, const double random) |
Get index based on random value. More... | |
static double | getSigma () |
Get intrinsic time smearing of K40 coincidences. More... | |
static void | setSigma (const double sigma) |
Set intrinsic time smearing of K40 coincidences. More... | |
Protected Member Functions | |
JK40DefaultSimulatorInterface () | |
Default constructor. More... | |
Static Private Member Functions | |
static double & | get_sigma () |
Get intrinsic time smearing of K40 coincidences. More... | |
Private Attributes | |
JBuffer2D_t | probability2D |
This correlation matrix is a two-dimensional array in which element [i][j] corresponds to the probability of a genuine coincidence due to K40 decays, where i and j refer to the indices of the PMTs in the optical module. More... | |
JBuffer1D_t | probability1D |
This probability vector is a one-dimensional array in which element [i] corresponds to the probability of a genuine coincidence due to K40 decays, where i refers to the index of the PMT in the optical module. More... | |
JBuffer1D_t | probabilityND |
This probability vector is a one-dimensional array in which element [i] corresponds to the probability of an additional hit, where i refers to the index of the PMT in the optical module. More... | |
JBuffer1D_t | rateL1_Hz |
Multiples rate as a function of the multiplicity. More... | |
Default K40 simulator interface.
This class provides for a default implementation of the JK40Simulator interface which is based on a set of virtual methods. These methods constitute a user interface to the K40 background simulation.
Definition at line 35 of file JK40DefaultSimulatorInterface.hh.
|
inlineprotected |
|
pure virtual |
Get singles rate as a function of PMT.
pmt | PMT identifier |
Implemented in JDETECTOR::JK40DefaultSimulator, and JTRIGGER::JK40RunByRunSimulator.
|
pure virtual |
Get multiples rate as a function of optical module.
module | optical module identifier |
M | multiplicity (M >= 2) |
Implemented in JDETECTOR::JK40DefaultSimulator.
|
pure virtual |
Get probability of coincidence.
ct | cosine space angle between PMT axes |
Implemented in JDETECTOR::JK40DefaultSimulator.
|
inlinevirtual |
Generate hits.
module | module |
period | time window [ns] |
output | background data |
Implements JDETECTOR::JK40Simulator.
Definition at line 112 of file JK40DefaultSimulatorInterface.hh.
|
inlinestatic |
Get index based on random value.
It is assumed that the values of the input buffer monotonously decrease or increase. This method throws an exception when the summed values in the input buffer is zero.
buffer | input values |
random | random value <0,1] |
Definition at line 244 of file JK40DefaultSimulatorInterface.hh.
|
inlinestatic |
Get intrinsic time smearing of K40 coincidences.
Definition at line 278 of file JK40DefaultSimulatorInterface.hh.
|
inlinestatic |
Set intrinsic time smearing of K40 coincidences.
sigma | sigma [ns] |
Definition at line 289 of file JK40DefaultSimulatorInterface.hh.
|
inlinestaticprivate |
Get intrinsic time smearing of K40 coincidences.
Definition at line 300 of file JK40DefaultSimulatorInterface.hh.
|
mutableprivate |
This correlation matrix is a two-dimensional array in which element [i][j] corresponds to the probability of a genuine coincidence due to K40 decays, where i and j refer to the indices of the PMTs in the optical module.
Definition at line 313 of file JK40DefaultSimulatorInterface.hh.
|
mutableprivate |
This probability vector is a one-dimensional array in which element [i] corresponds to the probability of a genuine coincidence due to K40 decays, where i refers to the index of the PMT in the optical module.
Definition at line 320 of file JK40DefaultSimulatorInterface.hh.
|
mutableprivate |
This probability vector is a one-dimensional array in which element [i] corresponds to the probability of an additional hit, where i refers to the index of the PMT in the optical module.
Definition at line 327 of file JK40DefaultSimulatorInterface.hh.
|
mutableprivate |
Multiples rate as a function of the multiplicity.
The index i corresponds to multiplicity M = i + 2.
Definition at line 333 of file JK40DefaultSimulatorInterface.hh.