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 | #include "PamVMCGeoIDMgr.h" |
2 | |
3 | PamVMCGeoIDMgr::PamVMCGeoIDMgr() { |
4 | TString t; |
5 | //Calorimeter |
6 | t="CAST"; |
7 | fdmap.Add(new TObjString(t), new pCalID(3)); |
8 | //Tof |
9 | t="S11Y"; |
10 | fdmap.Add(new TObjString(t), new pTofID(1)); |
11 | t="S12X"; |
12 | fdmap.Add(new TObjString(t), new pTofID(1)); |
13 | t="S21X"; |
14 | fdmap.Add(new TObjString(t), new pTofID(1)); |
15 | t="S22Y"; |
16 | fdmap.Add(new TObjString(t), new pTofID(1)); |
17 | t="S31Y"; |
18 | fdmap.Add(new TObjString(t), new pTofID(1)); |
19 | t="S32X"; |
20 | fdmap.Add(new TObjString(t), new pTofID(1)); |
21 | //Tracker |
22 | t="TSPA"; |
23 | fdmap.Add(new TObjString(t), new pTrkID(2)); |
24 | //some additional sensetive volumes, not use in analysys |
25 | t="TPAN"; |
26 | fdmap.Add(new TObjString(t), new pTrkTPAN_ID(1)); |
27 | t="TRCN"; |
28 | fdmap.Add(new TObjString(t), new pTrkTRCN_ID(2)); |
29 | t="TRSL"; |
30 | fdmap.Add(new TObjString(t), new pTrkTRSL_ID(2)); |
31 | |
32 | //AC |
33 | t="C1D1"; |
34 | fdmap.Add(new TObjString(t), new pCardID(1)); |
35 | t="C2D1"; |
36 | fdmap.Add(new TObjString(t), new pCardID(1)); |
37 | t="SID1"; |
38 | fdmap.Add(new TObjString(t), new pCasID(1)); |
39 | t="TOP1"; |
40 | fdmap.Add(new TObjString(t), new pCatID()); |
41 | //S4 |
42 | t="S4"; |
43 | fdmap.Add(new TObjString(t), new pS4ID()); |
44 | //ND |
45 | t="NDTI"; |
46 | fdmap.Add(new TObjString(t), new pNdID(1)); |
47 | } |
48 | PamVMCGeoIDMgr * PamVMCGeoIDMgr::fgeoid = 0; |
49 | |
50 | PamVMCGeoIDMgr * PamVMCGeoIDMgr::Instance(){ |
51 | if(fgeoid == 0) { |
52 | fgeoid = new PamVMCGeoIDMgr(); |
53 | } |
54 | return fgeoid; |
55 | } |
56 | |
57 | pGeoID * PamVMCGeoIDMgr::GetGeoID(const char *name){ |
58 | return (pGeoID*) fdmap(name); |
59 | } |
ViewVC Help | |
Powered by ViewVC 1.1.23 |