16#include "MCApplication.h"
17#include "PrimaryGenerator.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(
"g4config2.in");
Implementation of the TVirtualMCApplication.
PrimaryGenerator * GetPrimaryGenerator() const
void SetPrintModulo(Int_t value)
void RunMC(Int_t nofEvents)
void InitMC(const char *setup)
void SetNofPrimaries(Int_t nofPrimaries)
int main(int argc, char **argv)
Application main program.