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