Parent Directory | Revision Log
- Introduced user-defined names of output files and random seeds number. Users can do it use options of PamVMCApplication constructor: PamVMCApplication(const char* name, const char *title, const char* filename="pamtest", Int_t seed=0). The Random object that I use is TRandom3 object which has astronomical large period (in case of default initialization 0). All random generators in the code use this object by calling of gRandom singleton which keeps it. - Corrected TOF digitization routine. No problems with TDC hits due to hadronic interactions anymore. - Some small changes was done to compile code under Root 5.23. + geant4_vmc v. 2.6 without any warnings - Some classes of PamG4RunConfiguartion was changed for geant4_vmc v. 2.6.Some obsolete classes was deleted as soon as developers implemented regions. - Navigation was changed from "geomRootToGeant4" to "geomRoot", because on VMC web page written that as soon as Geant4 has no option ONLY/MANY translation of overlapped geometry to Geant4 through VGM could be wrong. I'd like to stay with Root navigation: http://root.cern.ch/root/vmc/Geant4VMC.html. This should be default option. - New Tracker digitization routine written by Sergio was implemented - PamVMC again became compatible with geant4_vmc v.2.5 and ROOT 5.20. The problem was that ROOT developers introduced in TVirtualMC class a new method SetMagField and new base class:TVirtualMagField from which user-defined classes shoukd be derived
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 |
ViewVC Help | |
Powered by ViewVC 1.1.23 |