20#include "TG4RunConfiguration.h"
25#include "TGeant3TGeo.h"
31int main(
int argc,
char** argv)
37 ROOT::EnableThreadSafety();
53 TGeant4* geant4 =
new TGeant4(
54 "TGeant4",
"The Geant4 Monte Carlo", runConfiguration, argc, argv);
58 geant4->ProcessGeantMacro(
"g4config.in");
62 new TGeant3TGeo(
"C++ Interface to Geant3");
63 gMC->SetProcess(
"DRAY", 1);
64 gMC->SetProcess(
"LOSS", 1);
65 gMC->SetProcess(
"HADR", 1);
73 geant4->ProcessGeantMacro(
"g4vis.in");
Definition of the A01MCApplication class.
Definition of the A01PrimaryGenerator class.
Implementation of the TVirtualMCApplication.
void SetWriteHits(Bool_t writeHits)
void RunMC(Int_t nofEvents)
void SetWriteStack(Bool_t writeStack)
A01PrimaryGenerator * GetPrimaryGenerator() const
void InitMC(const char *setup)
void SetRandomize(Bool_t val)
int main(int argc, char **argv)
Application main program.