VMC Examples Version 6.6
Loading...
Searching...
No Matches
g4tgeoConfig2.C File Reference

Go to the source code of this file.

Functions

void Config ()
 

Function Documentation

◆ Config()

void Config ( )

The configuration function for Geant4 VMC for Example A01 called during MC application initialization. For geometry defined with Root and selected G4Root navigation calling g4config2.in with activated local magnetic field

Definition at line 17 of file g4tgeoConfig2.C.

18{
19/// The configuration function for Geant4 VMC for Example A01
20/// called during MC application initialization.
21/// For geometry defined with Root and selected G4Root navigation
22/// calling g4config2.in with activated local magnetic field
23
24 // Run configuration
25 TG4RunConfiguration* runConfiguration
26 = new TG4RunConfiguration("geomRoot", "FTFP_BERT");
27
28 // Run configuration with special cuts activated
29 // TG4RunConfiguration* runConfiguration
30 // = new TG4RunConfiguration("geomRoot", "FTFP_BERT", "specialCuts");
31
32 // TGeant4
33 TGeant4* geant4
34 = new TGeant4("TGeant4", "The Geant4 Monte Carlo", runConfiguration);
35
36 cout << "Geant4 has been created." << endl;
37
38 // Customise Geant4 setting
39 // (verbose level, global range cut, ..)
40 geant4->ProcessGeantMacro("g4config2.in");
41}