/[PAMELA software]/PamVMC_update/include/PamVMCMat.h
ViewVC logotype

Annotation of /PamVMC_update/include/PamVMCMat.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Mar 31 08:49:21 2015 UTC (9 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -0 lines
File MIME type: text/plain
Add inclusion of TObjArray.h (fix a compilation error with cmake found on SL5 with Root 5.34.19 and gcc 4.5.2).

1 formato 1.1 #ifndef PAM_VMC_MAT_H
2     #define PAM_VMC_MAT_H
3    
4     #include "TObject.h"
5 pam-fi 1.2 #include "TObjArray.h"
6 formato 1.1
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

  ViewVC Help
Powered by ViewVC 1.1.23