KaliVeda
Toolkit for HIC analysis
KVPulseHeightDefect.h
1 /*
2 $Id: KVPulseHeightDefect.h,v 1.2 2008/01/24 10:09:38 franklan Exp $
3 $Revision: 1.2 $
4 $Date: 2008/01/24 10:09:38 $
5 */
6 
9 
10 #ifndef __KVPULSEHEIGHTDEFECT_H
11 #define __KVPULSEHEIGHTDEFECT_H
12 
13 #include <KVCalibrator.h>
14 
44 public:
45 
46  void init();
47 
49  KVPulseHeightDefect(KVDetector*);
50  virtual ~KVPulseHeightDefect();
51 
52  Double_t Compute(Double_t, const KVNameValueList& = "") const override;
53  Double_t Invert(Double_t, const KVNameValueList& = "") const override;
54 
55  void SetZ(Int_t z)
56  {
57  fZ = z;
58  };
59  Int_t GetZ() const
60  {
61  return fZ;
62  };
66  TF1* GetELossFunction(Int_t Z, Int_t A, Bool_t Wrong = kFALSE);
67 
68  ClassDefOverride(KVPulseHeightDefect, 1) //Silicon PHD described by Moulton formula
69 };
70 
71 #endif
int Int_t
bool Bool_t
double Double_t
#define ClassDefOverride(name, id)
Base class for all detector calibrations.
Definition: KVCalibrator.h:99
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
Silicon PHD described by Moulton formula.
KVPulseHeightDefect()
Default constructor.
TF1 * GetELossFunction(Int_t Z, Int_t A, Bool_t Wrong=kFALSE)
virtual ~KVPulseHeightDefect()
Destructor.
Double_t ELossActive(Double_t *x, Double_t *par)
TF1 * fDeltaEphd
deltaE calculated including PHD
Double_t Compute(Double_t, const KVNameValueList &="") const override
TF1 * fMoulton
Moulton formula for PHD = f(E,Z)
TF1 * GetMoultonPHDFunction(Int_t Z)
Create TF1* fMoulton if not already done.
Double_t PHDMoulton(Double_t *x, Double_t *par)
Double_t Invert(Double_t, const KVNameValueList &="") const override
void init()
default initialisations
Int_t fZ
Z of nucleus to be calibrated.