Bartender LYSO
Digitizer simulation for the LYSO calorimeter prototype
Loading...
Searching...
No Matches
daq.hh
1
5#ifndef DAQ_HH
6#define DAQ_HH
7
8#include <TMath.h>
9#include <TRandom3.h>
10
11class DAQ
12{
13 public:
14 DAQ() { binRand = new TRandom3(0); };
15 ~DAQ() { delete binRand; };
16
17 // Sampling
19 Float_t fSamplingSpeed_Template;
20 Bool_t fIsBinSizeConstant;
21 Double_t fSigmaBinSize;
22 TRandom3 *binRand;
23
24 // Amplification
25 Float_t fGain;
26 Float_t fGain_Template;
27 inline Double_t ComputeFactorOfGainConversion() { return TMath::Power(10, (1./20)*(fGain - fGain_Template)); }
28
29 // Shaping
30 Bool_t fIsShaping;
31 Double_t fTau_shaping;
33 Double_t fSigmaNoise;
34};
35
36
37#endif // DAQ_HH
Definition daq.hh:12
Float_t fSamplingSpeed
Sampling speed [GSPS] of the DAQ.
Definition daq.hh:18
Double_t fSigmaNoise
Noise of the DAQ, evaluated as the stDev of the pedestal distribution.
Definition daq.hh:33
Float_t fGain
Gain of the amplification stage.
Definition daq.hh:25
Double_t fR_shaper_Template
Value [Ohm] of the resistance of the shaper.
Definition daq.hh:32