Jpp 19.3.0-rc.3
the software that should make you happy
|
Class to emulate L0 background for an arbitrarily sized detector. More...
#include <JLightCurveBackgroundGenerator.hh>
Public Member Functions | |
JLightCurveBackgroundGenerator (TFile *in, bool twoDim=false) | |
Default constructor. | |
~JLightCurveBackgroundGenerator () | |
Destructor. | |
void | configureTimeWindow (const int T_ms) |
Configure the duration of an output sample. | |
void | setSeed (const UInt_t uSeed=0) |
Set TRandom seed. | |
void | configureRatio (const int inputNumberOfLines, const int outputNumberOfLines) |
Configure generation ratio. | |
bg_type | generate () |
Generate sample of L0 background L0 data are randomly sampled from a single L0 dataset. | |
bg_type | generate_poisson (const int domRate_Hz=500) |
Generate pure poissionian background. | |
bg_type | generate_shuffled (bool randomizeRun=false) |
Generate sample of L0 background The sampling of the L0 data is not sequential but random within the L0 dataset. | |
h2d_t * | build_H2D (const int k, const int start) |
Generate 2D histogram. | |
vector< double > | build_NC (const int k, const int start) |
Build NC sequence. | |
h2d_t * | generate_H2D (int rb=1) |
Generate 2D sample. | |
bg_type | generate_fitted (int rb=1) |
Generate fitted L1 sample. | |
Static Public Member Functions | |
static vector< double > | rebin (const vector< double > &in, const int rb) |
Rebin vector. | |
static bg_type | fit_H2D (h2d_t *in) |
Fit 2D sample. | |
Private Attributes | |
vector< vector< double > > | rt |
vector< vector< double > > | nc |
vector< h2d_t * > | rt2d |
int | TWindow_ms |
int | genRatio |
int | outputSize |
double | genScale |
TRandom * | rnd |
Class to emulate L0 background for an arbitrarily sized detector.
Definition at line 59 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Default constructor.
The input file contains a sequence of histograms with sampled L0 data; Each histogram is loaded as a vector, which will be considered as an individual L0 dataset.
in | input file from JRipple |
twoDim | make 2D histogram with distribution of hit time differences vs time |
Definition at line 85 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Destructor.
Definition at line 153 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Configure the duration of an output sample.
T_ms | sample duration in ms |
Definition at line 162 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Set TRandom seed.
uSeed | seed |
Definition at line 171 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Configure generation ratio.
inputNumberOfLines | number of lines of input detector |
outputNumberOfLines | number of lines of output detector |
Definition at line 181 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Generate sample of L0 background L0 data are randomly sampled from a single L0 dataset.
Definition at line 196 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Generate pure poissionian background.
Definition at line 225 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Generate sample of L0 background The sampling of the L0 data is not sequential but random within the L0 dataset.
Definition at line 250 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Generate 2D histogram.
Definition at line 289 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Build NC sequence.
Definition at line 328 of file JLightCurveBackgroundGenerator.hh.
|
inlinestatic |
Rebin vector.
Definition at line 350 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Generate 2D sample.
Definition at line 367 of file JLightCurveBackgroundGenerator.hh.
Fit 2D sample.
Definition at line 393 of file JLightCurveBackgroundGenerator.hh.
|
inline |
Generate fitted L1 sample.
Definition at line 445 of file JLightCurveBackgroundGenerator.hh.
Definition at line 61 of file JLightCurveBackgroundGenerator.hh.
Definition at line 62 of file JLightCurveBackgroundGenerator.hh.
Definition at line 64 of file JLightCurveBackgroundGenerator.hh.
|
private |
Definition at line 66 of file JLightCurveBackgroundGenerator.hh.
|
private |
Definition at line 67 of file JLightCurveBackgroundGenerator.hh.
|
private |
Definition at line 68 of file JLightCurveBackgroundGenerator.hh.
|
private |
Definition at line 70 of file JLightCurveBackgroundGenerator.hh.
|
private |
Definition at line 72 of file JLightCurveBackgroundGenerator.hh.