27 using namespace EMCAL;
28 using namespace ALTRO;
63 Double_t tau = par[2];
65 Double_t ped = par[4];
66 Double_t xx = ( x[0] - par[1] + tau ) / tau ;
71 signal = ped + par[0] * TMath::Power(xx , n) * TMath::Exp(n * (1 - xx )) ;
90 Int_t * adcH, Int_t * adcL, Int_t keyErr)
92 Bool_t lowGain = kFALSE ;
94 Double_t time = dtime;
99 signalF.SetParameter(0, damp) ;
101 signalF.SetParameter(2,
TAU) ;
102 signalF.SetParameter(3,
ORDER);
103 signalF.SetParameter(4, fgPedestalValue);
105 Double_t signal=0.0, noise=0.0;
106 for (Int_t iTime = 0; iTime <
TIMEBINS; iTime++)
108 signal = signalF.Eval(iTime) ;
116 adcH[iTime] =
static_cast<Int_t
>(signal + 0.5) ;
126 adcL[iTime] =
static_cast<Int_t
>(signal + 0.5) ;
const Double_t fgFEENoise
const int MAXBINVALUE
Max possible ALTRO ADC value ( 10 bit )
const double TIMEBINWITH
each sample is 100 ns
static Int_t fgThreshold
Store ADC values avobe this limit demanded by AliAltoBuffer::WriteChannel()
const double TAU
Approximate shaping time.
const Double_t fgTimeTrigger
static Double_t fgTimeTrigger
Time shift of the digit, apply only if not done at digitization level.
const double HGLGFACTOR
energy transion low/high gaing
Double_t RawResponseFunction(Double_t *x, Double_t *par)
Response function.
const int ORDER
Order of shaping stages of the signal conditioning unit.
static Bool_t RawSampledResponse(Double_t dtime, Double_t damp, Int_t *adcH, Int_t *adcL, Int_t keyErr=0)
static Double_t fgFEENoise
Electronics noise in ADC units, apply only if not done at digitization level.
const int TIMEBINS
number of sampling bins of the raw RO signal (we typically use 15-50; max is 1k+) ...
static Double_t RawResponseFunction(Double_t *x, Double_t *par)
virtual ~AliEMCALRawResponse()
Handling of digits to raw data transformation.
static Int_t fgPedestalValue
Pedestal value, apply only if not done at digitization level.