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

Configuration macro for Geant4 VirtualMC for Example03. More...

Go to the source code of this file.

Functions

void Config ()
 

Detailed Description

Configuration macro for Geant4 VirtualMC for Example03.

Demonstrates activation of VMC cuts and process controls

Definition in file g4tgeoConfig4Seq.C.

Function Documentation

◆ Config()

void Config ( )

The configuration function for Geant4 VMC for Example03 called during MC application initialization. For geometry defined with Root and selected G4Root navigation and forced Geant4 sequential mode.

Definition at line 16 of file g4tgeoConfig4Seq.C.

17{
18/// The configuration function for Geant4 VMC for Example03
19/// called during MC application initialization.
20/// For geometry defined with Root and selected G4Root navigation
21/// and forced Geant4 sequential mode.
22
23 // Run configuration with special cuts and special controls activated
24 TG4RunConfiguration* runConfiguration
25 = new TG4RunConfiguration("geomRoot", "FTFP_BERT",
26 "specialCuts+specialControls", false, false);
27
28 // Activate usage of old regions manager
29 // that sets production thresholds by ranges
30 // runConfiguration->SetSpecialCutsOld(true);
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("g4config.in");
41}