Application main program.
32{
33
34
35
36#ifdef G4MULTITHREADED
37 ROOT::EnableThreadSafety();
38#endif
39
40
44
45
46#ifdef USE_GEANT4
47
50
51
52 TGeant4* geant4 = new TGeant4(
53 "TGeant4", "The Geant4 Monte Carlo", runConfiguration, argc, argv);
54
55
56
57 geant4->ProcessGeantMacro("g4config.in");
58#endif
59
60#ifdef USE_GEANT3
61 TGeant3* geant3 = new TGeant3TGeo("C++ Interface to Geant3");
62 gMC->SetProcess("CKOV", 1);
63 gMC->SetCut("CUTELE", 10e-06);
64 gMC->SetCut("CUTGAM", 10e-06);
65 geant3->SetSWIT(4, 1000);
66
67#endif
68
69
71
72
73
74
75#ifdef USE_GEANT4
76
77
78 geant4->ProcessGeantMacro("g4config2.in");
79
80 geant4->ProcessGeantMacro("g4vis.in");
81#endif
82
83
85
86 delete appl;
87}
Implementation of the TVirtualMCApplication.
void RunMC(Int_t nofEvents)
void InitMC(const char *setup)
Ex06PrimaryGenerator * GetPrimaryGenerator() const
void SetNofPrimaries(Int_t nofPrimaries)