KaliVeda
Toolkit for HIC analysis
KVLightEnergyCsIFull.h
1 
4 #ifndef __KVLIGHTENERGYCSIFULL_H
5 #define __KVLIGHTENERGYCSIFULL_H
6 
7 #include "KVLightEnergyCsI.h"
8 #include "KVIonRangeTableMaterial.h"
9 
18 
19  Double_t gamma(double z, double a, double e);
20  Double_t gamma_ziegler(double z, double a, double e);
21  Double_t gamma_hbg(double z, double a, double e);
22  Double_t dLightIntegral(double* x, double* par);
23  Double_t dLightIntegralApprox(double* x, double* par);
24  Double_t sp_e(double z, double a, double e);
25  Double_t sp_n(double z, double a, double e);
26  Double_t GetDeltaFraction(Double_t beta, Double_t beta_delta);
27  Double_t GetLight(double* x, double* par);
28  Double_t GetLightApprox(double* x, double* par);
29  Double_t GetLightApproxSilicon(double* x, double* par);
30 
31  void init();
32 
33 protected:
34  Int_t fLightFormula;
35  Double_t fZmed;
36  Double_t fAmed;
37  TF1* fDlight;
38 
39 public:
40  enum LightFormula {
45  };
46 
49  {
50  SafeDelete(fDlight);
51  }
52 
54  {
55  fLightFormula = form;
56  init();
57  }
58  void SetLightFormula(const TString&);
60  {
61  return fLightFormula;
62  }
63 
64  void Print(Option_t* opt = "") const override;
65  void SetOptions(const KVNameValueList& opt) override;
66 
67  ClassDefOverride(KVLightEnergyCsIFull, 1) //Light-energy calibration for CsI detectors using the full expression of Marian Parlog
68 };
69 
70 #endif
int Int_t
#define SafeDelete(p)
#define e(i)
double Double_t
const char Option_t
#define ClassDefOverride(name, id)
Exact calibration formula for CsI detectors.
void SetOptions(const KVNameValueList &opt) override
void Print(Option_t *opt="") const override
void SetLightFormula(Int_t form)
Light-energy calibration function for CsI detectors using a Fermi-function dependence on energy for d...
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
double beta(double x, double y)
Double_t x[n]
void init()
TArc a