Jpp
|
Class to emulate L0 background for an arbitrarily sized detector. More...
#include <JL0BackgroundSimulator.hh>
Public Member Functions | |
JL0BackgroundSimulator (TFile *in, bool twoDim=false) | |
Default constructor. More... | |
~JL0BackgroundSimulator () | |
Destructor. More... | |
void | configureTimeWindow (const int T_ms) |
Configure the duration of an output sample. More... | |
void | setSeed (const UInt_t uSeed=0) |
Set TRandom seed. More... | |
void | configureRatio (const int inputNumberOfLines, const int outputNumberOfLines) |
Configure generation ratio. More... | |
bg_type | generate () |
Generate sample of L0 background L0 data are randomly sampled from a single L0 dataset. More... | |
bg_type | generate_poisson (const int domRate_Hz=500) |
Generate pure poissionian background. More... | |
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. More... | |
h2d_t * | build_H2D (const int k, const int start) |
Generate 2D histogram. More... | |
vector< double > | build_NC (const int k, const int start) |
Build NC sequence. More... | |
h2d_t * | generate_H2D (int rb=1) |
Generate 2D sample. More... | |
bg_type | generate_fitted (int rb=1) |
Generate fitted L1 sample. More... | |
Static Public Member Functions | |
static vector< double > | rebin (const vector< double > &in, const int rb) |
Rebin vector. More... | |
static bg_type | fit_H2D (h2d_t *in) |
Fit 2D sample. More... | |
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 57 of file JL0BackgroundSimulator.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 83 of file JL0BackgroundSimulator.hh.
|
inline |
|
inline |
Configure the duration of an output sample.
T_ms | sample duration in ms |
Definition at line 160 of file JL0BackgroundSimulator.hh.
|
inline |
|
inline |
Configure generation ratio.
inputNumberOfLines | number of lines of input detector |
outputNumberOfLines | number of lines of output detector |
Definition at line 179 of file JL0BackgroundSimulator.hh.
|
inline |
Generate sample of L0 background L0 data are randomly sampled from a single L0 dataset.
Definition at line 194 of file JL0BackgroundSimulator.hh.
|
inline |
Generate pure poissionian background.
Definition at line 223 of file JL0BackgroundSimulator.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 248 of file JL0BackgroundSimulator.hh.
|
inline |
Generate 2D histogram.
Definition at line 287 of file JL0BackgroundSimulator.hh.
|
inline |
Build NC sequence.
Definition at line 326 of file JL0BackgroundSimulator.hh.
|
inlinestatic |
|
inline |
Generate 2D sample.
Definition at line 365 of file JL0BackgroundSimulator.hh.
|
inline |
Generate fitted L1 sample.
Definition at line 443 of file JL0BackgroundSimulator.hh.
Definition at line 59 of file JL0BackgroundSimulator.hh.
Definition at line 60 of file JL0BackgroundSimulator.hh.
Definition at line 62 of file JL0BackgroundSimulator.hh.
|
private |
Definition at line 64 of file JL0BackgroundSimulator.hh.
|
private |
Definition at line 65 of file JL0BackgroundSimulator.hh.
|
private |
Definition at line 66 of file JL0BackgroundSimulator.hh.
|
private |
Definition at line 68 of file JL0BackgroundSimulator.hh.
|
private |
Definition at line 70 of file JL0BackgroundSimulator.hh.