16#include "Ex03PrimaryGenerator.h"
20#include "TG4RunConfiguration.h"
25#include "TGeant3TGeo.h"
31int main(
int argc,
char** argv)
37 ROOT::EnableThreadSafety();
40 Bool_t isMulti =
false;
49 "ExampleE03",
"The exampleE03 MC application", isMulti, isMulti);
60 TGeant4* geant4 =
new TGeant4(
61 "TGeant4",
"The Geant4 Monte Carlo", runConfiguration, argc, argv);
65 geant4->ProcessGeantMacro(
"g4config.in");
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);
86 geant4->ProcessGeantMacro(
"g4vis.in");
Definition of the Ex03cMCApplication class.
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)
int main(int argc, char **argv)
Application main program.