Application main program.
32{
33
34
35
36#ifdef G4MULTITHREADED
37 ROOT::EnableThreadSafety();
38#endif
39
40 Bool_t isMulti = false;
41 Int_t debug = 0;
42#ifdef USE_MULTI
43 isMulti = true;
44 debug = 1;
45#endif
46
47
49 "ExampleE03", "The exampleE03 MC application", isMulti, isMulti);
53
54#ifdef USE_GEANT4
55
58
59
60 TGeant4* geant4 = new TGeant4(
61 "TGeant4", "The Geant4 Monte Carlo", runConfiguration, argc, argv);
62
63
64
65 geant4->ProcessGeantMacro("g4config.in");
66#endif
67
68#ifdef USE_GEANT3
69 TGeant3TGeo* geant3 =
70 new TGeant3TGeo("C++ Interface to Geant3 with TGeo geometry");
71 geant3->SetProcess("DRAY", 1);
72 geant3->SetProcess("LOSS", 1);
73 geant3->SetProcess("HADR", 0);
74#endif
75
76
77#ifdef USE_MULTI
79#else
81#endif
82
83#ifdef USE_GEANT4
84#ifndef USE_MULTI
85
86 geant4->ProcessGeantMacro("g4vis.in");
87#endif
88#endif
89
91
92 delete appl;
93}
void SetNofPrimaries(Int_t nofPrimaries)
Implementation of the TVirtualMCApplication.
void InitMC(const char *setup)
void RunMC(Int_t nofEvents)
void SetDebug(Int_t debug)
Set debug option for multiple run.
Ex03PrimaryGenerator * GetPrimaryGenerator() const
void SetPrintModulo(Int_t value)