20#include "TG4RunConfiguration.h"
25#include "TGeant3TGeo.h"
31int main(
int argc,
char** argv)
37 ROOT::EnableThreadSafety();
52 TGeant4* geant4 =
new TGeant4(
53 "TGeant4",
"The Geant4 Monte Carlo", runConfiguration, argc, argv);
57 geant4->ProcessGeantMacro(
"g4config.in");
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);
78 geant4->ProcessGeantMacro(
"g4config2.in");
80 geant4->ProcessGeantMacro(
"g4vis.in");
Definition of the Ex06MCApplication class.
Definition of the Ex06PrimaryGenerator class.
Implementation of the TVirtualMCApplication.
void RunMC(Int_t nofEvents)
void InitMC(const char *setup)
Ex06PrimaryGenerator * GetPrimaryGenerator() const
void SetNofPrimaries(Int_t nofPrimaries)
int main(int argc, char **argv)
Application main program.