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 | nikolas | 1.1 | #ifndef PAMVMCSQLMGR_H |
2 | #define PAMVMCSQLMGR_H | ||
3 | #include <iostream> | ||
4 | |||
5 | pam-rm2 | 1.5 | #include <GLTables.h> |
6 | nikolas | 1.1 | #include "TString.h" |
7 | #include <TSQLServer.h> | ||
8 | #include <TSystem.h> | ||
9 | |||
10 | class PamVMCSQLMgr: public TObject { | ||
11 | |||
12 | private: | ||
13 | |||
14 | static PamVMCSQLMgr * fsql; | ||
15 | |||
16 | TSQLServer * fdbc; | ||
17 | GL_TABLES * fglt; | ||
18 | GL_PARAM * fglparam; | ||
19 | GL_ROOT * fglroot; | ||
20 | GL_CALO_CALIB *fglcalo; | ||
21 | |||
22 | TString fdbhost; | ||
23 | TString fdbuser; | ||
24 | TString fdbpsw; | ||
25 | |||
26 | TString fpathtodata; | ||
27 | |||
28 | protected: | ||
29 | PamVMCSQLMgr(); | ||
30 | |||
31 | public: | ||
32 | |||
33 | pam-rm2 | 1.5 | virtual ~PamVMCSQLMgr(){ |
34 | nikolas | 1.1 | delete fdbc; |
35 | delete fglt; | ||
36 | delete fglparam; | ||
37 | delete fglroot; | ||
38 | delete fglcalo; | ||
39 | } | ||
40 | |||
41 | static PamVMCSQLMgr * Instance(); | ||
42 | |||
43 | TString GetDataPath(){ return fpathtodata; } | ||
44 | |||
45 | TSQLServer * GetSQL(){ return fdbc; } | ||
46 | |||
47 | GL_TABLES * GetTAB(){ return fglt; } | ||
48 | |||
49 | GL_PARAM * GetPAR(){ return fglparam; } | ||
50 | |||
51 | Int_t Query_GL_PARAM(UInt_t time, UInt_t type){ | ||
52 | |||
53 | return fglparam->Query_GL_PARAM(time,type,fdbc); | ||
54 | } | ||
55 | |||
56 | GL_ROOT * GetROOT(){ return fglroot; } | ||
57 | |||
58 | Int_t Query_GL_ROOT(UInt_t id){ | ||
59 | |||
60 | return fglroot->Query_GL_ROOT(id,fdbc); | ||
61 | } | ||
62 | |||
63 | GL_CALO_CALIB * GetCaloCalib(){ return fglcalo; } | ||
64 | |||
65 | Int_t Query_GL_CALO_CALIB(UInt_t time, UInt_t &uptime, | ||
66 | UInt_t section){ | ||
67 | |||
68 | return fglcalo->Query_GL_CALO_CALIB(time,uptime,section,fdbc); | ||
69 | } | ||
70 | |||
71 | |||
72 | }; | ||
73 | |||
74 | #endif |
ViewVC Help | |
Powered by ViewVC 1.1.23 |