1 |
#ifndef PAM_VMC_MAT_H |
2 |
#define PAM_VMC_MAT_H |
3 |
|
4 |
#include "TObject.h" |
5 |
#include "TObjArray.h" |
6 |
|
7 |
struct PamVMCElem : public TObject { |
8 |
Int_t fz; |
9 |
Double_t fa, fprc; |
10 |
|
11 |
PamVMCElem():fz(0),fa(0.),fprc(0.) {}; |
12 |
PamVMCElem(Int_t z, Double_t a, Double_t prc): fz(z), fa(a), fprc(prc){}; |
13 |
|
14 |
}; |
15 |
|
16 |
|
17 |
struct PamVMCMat : public TObject { |
18 |
Int_t fid; |
19 |
Double_t fa, fz, frho; |
20 |
|
21 |
PamVMCMat():fa(0.),fz(0.),frho(0.) {}; |
22 |
PamVMCMat(Int_t id, Double_t a, Double_t z, Double_t rho): fid(id),fa(a),fz(z),frho(rho){}; |
23 |
|
24 |
}; |
25 |
|
26 |
struct PamVMCMix : public PamVMCMat{ |
27 |
Int_t fnum; //number of elements |
28 |
TObjArray felements; //array of of elements |
29 |
|
30 |
void AddElement(Int_t z, Double_t a, Double_t prc){ |
31 |
|
32 |
felements.Add(new PamVMCElem(z,a,prc)); |
33 |
|
34 |
} |
35 |
|
36 |
}; |
37 |
|
38 |
|
39 |
struct PamVMCMed : public TObject { |
40 |
Int_t fnumed, fimat, fisvol, fifield; |
41 |
Double_t ffieldm, ftmaxfd, fstemax, fdeemax, fepsil, fstmin; |
42 |
|
43 |
PamVMCMed():fnumed(0),fimat(0),fisvol(0),fifield(0),ffieldm(0.), |
44 |
ftmaxfd(0.),fstemax(0.),fdeemax(0.), fepsil(0.), fstmin(0.){}; |
45 |
|
46 |
PamVMCMed(Int_t numed, Int_t imat, Int_t isvol, Int_t ifield, |
47 |
Double_t fieldm, Double_t tmaxfd, Double_t stemax, |
48 |
Double_t deemax, Double_t epsil, Double_t stmin): |
49 |
fnumed(numed), fimat(imat), fisvol(isvol), fifield(ifield), |
50 |
ffieldm(fieldm), ftmaxfd(tmaxfd), fstemax(stemax), fdeemax(deemax), |
51 |
fepsil(epsil), fstmin(stmin){}; |
52 |
|
53 |
}; |
54 |
|
55 |
#endif //PAM_VMC_MAT |