16#include "Ex03PrimaryGenerator.h"
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 new TGeant3TGeo(
"C++ Interface to Geant3");
62 gMC->SetProcess(
"DRAY", 1);
63 gMC->SetProcess(
"LOSS", 1);
64 gMC->SetProcess(
"HADR", 0);
72 geant4->ProcessGeantMacro(
"g4vis.in");
Definition of the Ex03bMCApplication class.
void SetNofPrimaries(Int_t nofPrimaries)
Implementation of the TVirtualMCApplication.
void InitMC(const char *setup)
void SetPrintModulo(Int_t value)
void RunMC(Int_t nofEvents)
Ex03PrimaryGenerator * GetPrimaryGenerator() const
int main(int argc, char **argv)
Application main program.