KaliVeda
Toolkit for HIC analysis
KVLightEnergyCsI.h
1 #ifndef KV_LIGHT_ENERGY_CSI_H
2 #define KV_LIGHT_ENERGY_CSI_H
3 
4 #include "KVCalibrator.h"
5 
40 
43  std::unique_ptr<TF1> inv_fit_func;
44 
45 protected:
46  mutable Double_t Z;
47  mutable Double_t A;
48 
49 public:
50  KVLightEnergyCsI(Bool_t make_func = kTRUE);
51  Double_t Compute(Double_t chan, const KVNameValueList& z_and_a = "") const override;
52  Double_t Invert(Double_t, const KVNameValueList& z_and_a = "") const override;
53 
54  Bool_t IsAvailableFor(const KVNameValueList& z_and_a) const override;
55 
56  void Fit(TH1*, int z, int a, double a3 = 6.0, double a4 = 0.385);
57  void invFit(TH1*, int z, int a, double a3 = 6.0, double a4 = 0.385);
58 
59  ClassDefOverride(KVLightEnergyCsI, 1) //Light-energy calibration for CsI detectors
60 };
61 
62 #endif
bool Bool_t
double Double_t
#define ClassDefOverride(name, id)
Base class for all detector calibrations.
Definition: KVCalibrator.h:99
Light-energy calibration function for CsI detectors using a Fermi-function dependence on energy for d...
KVLightEnergyCsI(Bool_t make_func=kTRUE)
std::unique_ptr< TF1 > inv_fit_func
Double_t CalculLumiere(Double_t *, Double_t *)
Double_t Compute(Double_t chan, const KVNameValueList &z_and_a="") const override
void invFit(TH1 *, int z, int a, double a3=6.0, double a4=0.385)
Double_t Invert(Double_t, const KVNameValueList &z_and_a="") const override
Bool_t IsAvailableFor(const KVNameValueList &z_and_a) const override
Double_t InvCalc(Double_t *, Double_t *)
void Fit(TH1 *, int z, int a, double a3=6.0, double a4=0.385)
Handles lists of named parameters with different types, a list of KVNamedParameter objects.