KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVedaLossMaterial.h
Go to the documentation of this file.
1 
4 #ifndef __KVEDALOSSMATERIAL_H
5 #define __KVEDALOSSMATERIAL_H
6 
8 #include <Riostream.h>
9 #include "TObjArray.h"
10 #include <vector>
11 
12 class TGeoMaterial;
13 class KVedaLoss;
14 
16 #define ZMAX_VEDALOSS 100
17 #define VERY_BIG_ENERGY 1.e+6
18 
27 
28 private:
29  static KVedaLoss* fgTable;
33  std::vector<Double_t>* par;
37 
38 protected:
39  std::vector<Double_t> fEmin;
40  std::vector<Double_t> fEmax;
41  std::vector< std::vector<Double_t> > fCoeff;
42 
43  static Bool_t fNoLimits;
44 
49 
50 public:
52  KVedaLossMaterial(const KVIonRangeTable*, const Char_t* name, const Char_t* type, const Char_t* state,
53  Double_t density, Double_t Z, Double_t A, Double_t MoleWt = 0.0);
54  virtual ~KVedaLossMaterial();
55 
56  Bool_t ReadRangeTable(FILE* fp);
58  {
59  return (CheckIon(Z) ? A * fEmax[Z - 1] : 0.0);
60  };
62  {
63  return (CheckIon(Z) ? A * fEmin[Z - 1] : 0.0);
64  };
65 
66  virtual TF1* GetRangeFunction(Int_t Z, Int_t A, Double_t isoAmat = 0);
67  virtual TF1* GetDeltaEFunction(Double_t e, Int_t Z, Int_t A, Double_t isoAmat = 0);
68  virtual TF1* GetEResFunction(Double_t e, Int_t Z, Int_t A, Double_t isoAmat = 0);
69  virtual TF1* GetStoppingFunction(Int_t Z, Int_t A, Double_t isoAmat = 0);
70 
71  virtual Double_t GetRangeOfIon(Int_t Z, Int_t A, Double_t E, Double_t isoAmat = 0.);
72  virtual Double_t GetDeltaEOfIon(Int_t Z, Int_t A, Double_t E, Double_t e, Double_t isoAmat = 0.);
73  virtual Double_t GetEResOfIon(Int_t Z, Int_t A, Double_t E, Double_t e, Double_t isoAmat = 0.);
74  virtual Double_t GetPunchThroughEnergy(Int_t Z, Int_t A, Double_t e, Double_t isoAmat = 0.);
75  virtual Double_t GetEIncFromEResOfIon(Int_t Z, Int_t A, Double_t Eres, Double_t e, Double_t isoAmat = 0.);
76 
77  static void SetNoLimits(Bool_t on = kTRUE)
78  {
90  fNoLimits = on;
91  };
92 
93  void GetParameters(Int_t Zion, Int_t& Aion, std::vector<Double_t>& rangepar);
94  static Bool_t CheckIon(Int_t Z)
95  {
96  return (Z > 0 && Z <= ZMAX_VEDALOSS);
97  }
98 
99  ClassDef(KVedaLossMaterial, 4) //Description of material properties used by KVedaLoss range calculation
100 };
101 
102 #endif
int Int_t
#define ZMAX_VEDALOSS
maximum atomic number included in range tables
char Char_t
bool Bool_t
double Double_t
float Float_t
#define ClassDef(name, id)
Material for use in energy loss & range calculations.
Abstract base class for calculation of range & energy loss of charged particles in matter.
Description of material in the KVedaLoss range table.
Double_t EResFunc(Double_t *, Double_t *)
TObjArray fInvRange
KVedaLossInverseRangeFunction objects.
static void SetNoLimits(Bool_t on=kTRUE)
Float_t GetEminValid(Int_t Z, Int_t A) const
virtual Double_t GetEResOfIon(Int_t Z, Int_t A, Double_t E, Double_t e, Double_t isoAmat=0.)
static KVedaLoss * fgTable
Double_t thickness
in g/cm**2
virtual TF1 * GetDeltaEFunction(Double_t e, Int_t Z, Int_t A, Double_t isoAmat=0)
virtual Double_t GetDeltaEOfIon(Int_t Z, Int_t A, Double_t E, Double_t e, Double_t isoAmat=0.)
Double_t StoppingFunc(Double_t *, Double_t *)
Bool_t ReadRangeTable(FILE *fp)
Double_t RF_Z
internal variables used by RangeFunc/DeltaEFunc
std::vector< Double_t > fEmin
Z-dependent minimum energy/nucleon for calculation to be valid.
virtual TF1 * GetRangeFunction(Int_t Z, Int_t A, Double_t isoAmat=0)
virtual ~KVedaLossMaterial()
Destructor.
Double_t RangeFunc(Double_t *, Double_t *)
std::vector< Double_t > fEmax
Z-dependent maximum energy/nucleon for calculation to be valid.
virtual Double_t GetRangeOfIon(Int_t Z, Int_t A, Double_t E, Double_t isoAmat=0.)
static Bool_t fNoLimits
if kTRUE, ignore max E limit for validity of calculation
virtual Double_t GetPunchThroughEnergy(Int_t Z, Int_t A, Double_t e, Double_t isoAmat=0.)
void GetParameters(Int_t Zion, Int_t &Aion, std::vector< Double_t > &rangepar)
static Bool_t CheckIon(Int_t Z)
std::vector< Double_t > * par
Double_t DeltaEFunc(Double_t *, Double_t *)
KVedaLossMaterial()
Default constructor.
virtual TF1 * GetStoppingFunction(Int_t Z, Int_t A, Double_t isoAmat=0)
Float_t GetEmaxValid(Int_t Z, Int_t A) const
std::vector< std::vector< Double_t > > fCoeff
parameters for range tables
virtual Double_t GetEIncFromEResOfIon(Int_t Z, Int_t A, Double_t Eres, Double_t e, Double_t isoAmat=0.)
virtual TF1 * GetEResFunction(Double_t e, Int_t Z, Int_t A, Double_t isoAmat=0)
C++ implementation of VEDALOSS stopping power calculation.
Definition: KVedaLoss.h:33