The Geant4 VMC example ExGarfield application executable.
More...
#include "MCApplication.h"
#include "TROOT.h"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
| Application main program.
|
|
The Geant4 VMC example ExGarfield application executable.
- Date
- 28/10/2015
- Author
- I. Hrivnacova; IPN, Orsay
Definition in file exampleExGarfield.cxx.
◆ main()
int main |
( |
int | argc, |
|
|
char ** | argv ) |
Application main program.
Definition at line 30 of file exampleExGarfield.cxx.
31{
32
33
34
35#ifdef G4MULTITHREADED
36 ROOT::EnableThreadSafety();
37#endif
38
39
41 "ExampleExGarfield", "The exampleExGarfield MC application");
42
43#ifdef USE_GEANT4
44
47
48
49 TGeant4* geant4 = new TGeant4(
50 "TGeant4", "The Geant4 Monte Carlo", runConfiguration, argc, argv);
51
52
53
54
55 geant4->ProcessGeantMacro("g4config.in");
56#endif
57
58#ifdef USE_GEANT3
59 new TGeant3TGeo("C++ Interface to Geant3");
60#endif
61
62
64
65#ifdef USE_GEANT4
66
67
68 geant4->ProcessGeantMacro("g4config2.in");
69
70 geant4->ProcessGeantMacro("g4vis.in");
71#endif
72
74
75 delete appl;
76}
Implementation of the TVirtualMCApplication.
void InitMC(const char *setup)
void RunMC(Int_t nofEvents)
User Geant4 VMC run configuration.