KaliVeda
Toolkit for HIC analysis
KVedaLossRangeFitter.h
1 
4 #ifndef __KVEDALOSSRANGEFITTER_H
5 #define __KVEDALOSSRANGEFITTER_H
6 
7 #include "KVBase.h"
8 #include <KVIonRangeTableMaterial.h>
9 #include "KVedaLossMaterial.h"
10 #include <TF1.h>
11 #include <KVedaLoss.h>
12 
13 class TGraph;
14 
24 class KVedaLossRangeFitter : public KVBase {
26 
27 protected:
33 
34 public:
36  virtual ~KVedaLossRangeFitter();
37 
40 
44 
45  void DoFits(TString output_file, Int_t Zmin = 1, Int_t Zmax = 100);
46  void PrintFitParameters(Int_t, std::ostream&);
47  void PrintFitHeader(std::ostream&);
48 
49  ClassDef(KVedaLossRangeFitter, 1) //Fit a range table using the VEDALOSS functional
50 };
51 
52 #endif
int Int_t
double Double_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:142
Material for use in energy loss & range calculations.
Description of material in the KVedaLoss range table.
Fit a range table using the VEDALOSS functional.
TGraph * GenerateRangeTable(Int_t Z)
void PrintFitParameters(Int_t, std::ostream &)
KVIonRangeTableMaterial * fMaterial
range table to fit
void SetMaterial(KVIonRangeTableMaterial *m)
Sets range table to fit. Also finds material with closest Z in VEDALOSS library.
KVedaLossRangeFitter()
Default constructor.
void DoFits(TString output_file, Int_t Zmin=1, Int_t Zmax=100)
Perform fits to range tables for elements from Zmin to Zmax.
TGraph * GenerateVEDALOSSRangeTable(Int_t Z)
virtual ~KVedaLossRangeFitter()
Destructor.
void PrintFitHeader(std::ostream &)
KVedaLossMaterial * fClosestVedaMat
closest known VEDALOSS material
void SetInitialParameters(Int_t Z)
Double_t range(Double_t *, Double_t *)
express logR as a polynomial of log(E/A)
C++ implementation of VEDALOSS stopping power calculation.
Definition: KVedaLoss.h:63