20#include "DetectorConstruction.h"
21#include "MCApplication.h"
24#include "TG4RunConfiguration.h"
31int main(
int argc,
char** argv)
35 std::cerr <<
"Monopole example: Geant3 is not supported." << std::endl;
43 ROOT::EnableThreadSafety();
48 "ExampleMonopole",
"The exampleMonopole MC application");
66 "geomRootToGeant4",
"FTFP_BERT+monopole",
"stepLimiter",
false,
false);
69 TGeant4* geant4 =
new TGeant4(
70 "TGeant4",
"The Geant4 Monte Carlo", runConfiguration, argc, argv);
71 std::cout <<
"Geant4 has been created." << std::endl;
75 geant4->ProcessGeantMacro(
"g4config.in");
84 geant4->ProcessGeantMacro(
"g4config2.in");
89 geant4->ProcessGeantMacro(
"g4vis.in");
The detector construction (via TGeo )
void SetAbsorberSizeYZ(Double_t sizeYZ)
void SetAbsorberSizeX(Double_t sizeX)
void SetMaxStepSize(Double_t maxStepSize)
void SetAbsorberMaterial(const TString &name)
Implementation of the TVirtualMCApplication.
void InitMC(const char *setup)
void SetBinSize(Double_t binSize)
void RunMC(Int_t nofEvents)
DetectorConstruction * GetDetectorConstruction() const
int main(int argc, char **argv)
Application main program.