KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVedaLossMaterial.h
1
3
4#ifndef __KVEDALOSSMATERIAL_H
5#define __KVEDALOSSMATERIAL_H
6
7#include "KVIonRangeTableMaterial.h"
8#include <Riostream.h>
9#include "TObjArray.h"
10#include <vector>
11
12class TGeoMaterial;
13class KVedaLoss;
14
16#define ZMAX_VEDALOSS 100
17#define VERY_BIG_ENERGY 1.e+6
18
28
29private:
34 std::vector<Double_t>* par;
38
39protected:
40 std::vector<Double_t> fEmin;
41 std::vector<Double_t> fEmax;
42 std::vector< std::vector<Double_t> > fCoeff;
43
45
50
51public:
53 KVedaLossMaterial(const KVIonRangeTable*, const Char_t* name, const Char_t* type, const Char_t* state,
54 Double_t density, Double_t Z, Double_t A, Double_t MoleWt = 0.0);
55 virtual ~KVedaLossMaterial();
56
57 Bool_t ReadRangeTable(FILE* fp);
59 {
60 return (CheckIon(Z) ? A * fEmax[Z - 1] : 0.0);
61 };
63 {
64 return (CheckIon(Z) ? A * fEmin[Z - 1] : 0.0);
65 };
66
67 virtual TF1* GetRangeFunction(Int_t Z, Int_t A, Double_t isoAmat = 0);
68 virtual TF1* GetDeltaEFunction(Double_t e, Int_t Z, Int_t A, Double_t isoAmat = 0);
69 virtual TF1* GetEResFunction(Double_t e, Int_t Z, Int_t A, Double_t isoAmat = 0);
70 virtual TF1* GetStoppingFunction(Int_t Z, Int_t A, Double_t isoAmat = 0);
71
72 virtual Double_t GetRangeOfIon(Int_t Z, Int_t A, Double_t E, Double_t isoAmat = 0.);
73 virtual Double_t GetDeltaEOfIon(Int_t Z, Int_t A, Double_t E, Double_t e, Double_t isoAmat = 0.);
74 virtual Double_t GetEResOfIon(Int_t Z, Int_t A, Double_t E, Double_t e, Double_t isoAmat = 0.);
75 virtual Double_t GetPunchThroughEnergy(Int_t Z, Int_t A, Double_t e, Double_t isoAmat = 0.);
76 virtual Double_t GetEIncFromEResOfIon(Int_t Z, Int_t A, Double_t Eres, Double_t e, Double_t isoAmat = 0.);
77
78 static void SetNoLimits(Bool_t on = kTRUE)
79 {
91 fNoLimits = on;
92 };
93
94 void GetParameters(Int_t Zion, Int_t& Aion, std::vector<Double_t>& rangepar);
96 {
97 return (Z > 0 && Z <= ZMAX_VEDALOSS);
98 }
99
100 ClassDef(KVedaLossMaterial, 4) //Description of material properties used by KVedaLoss range calculation
101};
102
103#endif
int Int_t
bool Bool_t
char Char_t
float Float_t
double Double_t
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
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:63