KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVLightEnergyCsI_SharpCutOff.cpp
1#include "KVLightEnergyCsI_SharpCutOff.h"
2
4
5
6
7
18
20{
21 //Calcul de la lumiere totale a partir de Z, A d'une particule et son energie
22 //
23 //~~~~~~~~~~~~~~~~~~
24 // x[0] = energie (MeV)
25 // par[0] = a1 : gain factor
26 // par[1] = a2 : nuclear & recombination quenching term
27 // par[2] = a3 : threshold (MeV/u) for delta-ray production
28 // par[3] = a4 : fractional energy loss removed by delta rays
29 //~~~~~~~~~~~~~~~~~~
30 //
31
32 Double_t energie = x[0];
33 Double_t c1 = par[0];
34 Double_t c2 = Z * Z * A * par[1];
35 Double_t c3 = A * par[2];
36 Double_t c4 = energie > c3 ? par[3] : 0.;
37
38 Double_t lumcalc = c1 * energie;
39 if (c2 > 0.0) {
40 lumcalc = lumcalc - c1 * c2 * TMath::Log(1. + energie / c2)
41 + c1 * c2 * c4 * TMath::Log((energie + c2) / (c3 + c2));
42 }
43
44 return lumcalc;
45}
46
47
48
double Double_t
Light-energy calibration function for CsI detectors using a sharp cut-off for delta-ray production.
return c1
Double_t x[n]
return c2
return c3
Double_t Log(Double_t x)
ClassImp(TPyArg)