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 iSize, const int oSize) |
Set rebinning 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 |
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 161 of file JL0BackgroundSimulator.hh.
|
inline |
|
inline |
Set rebinning ratio.
rebin | void setRebin(const int rb) { rebin = rb; } Configure generation ratio |
inputSize | number of lines of input detector |
outputSize | number of lines of output detector |
Definition at line 189 of file JL0BackgroundSimulator.hh.
|
inline |
Generate sample of L0 background L0 data are randomly sampled from a single L0 dataset.
Definition at line 204 of file JL0BackgroundSimulator.hh.
|
inline |
Generate pure poissionian background.
Definition at line 233 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 258 of file JL0BackgroundSimulator.hh.
|
inline |
Generate 2D histogram.
Definition at line 297 of file JL0BackgroundSimulator.hh.
|
inline |
Build NC sequence.
Definition at line 336 of file JL0BackgroundSimulator.hh.
|
inlinestatic |
|
inline |
Generate 2D sample.
Definition at line 375 of file JL0BackgroundSimulator.hh.
|
inline |
Generate fitted L1 sample.
Definition at line 453 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 69 of file JL0BackgroundSimulator.hh.
|
private |
Definition at line 71 of file JL0BackgroundSimulator.hh.