VMC Examples Version 6.6
Loading...
Searching...
No Matches
g4Config1.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.

For geometry defined with Geant4 in a user run configuration.

Definition in file g4Config1.C.

Function Documentation

◆ Config()

void Config ( )

The configuration function for Geant4 VMC for Example03 called during MC application initialization. For geometry defined with Geant4 in a user run configuration.

Definition at line 16 of file g4Config1.C.

17{
18/// The configuration function for Geant4 VMC for Example03
19/// called during MC application initialization.
20/// For geometry defined with Geant4 in a user run configuration.
21
22 // Run configuration with user geometry construction via Geant4
23 Ex03RunConfiguration1* runConfiguration
24 = new Ex03RunConfiguration1("FTFP_BERT");
25
26 // Run configuration with user geometry construction via Geant4
27 // + special cuts activated
28 // Ex03RunConfiguration1* runConfiguration
29 // = new Ex03RunConfiguration1("FTFP_BERT", "specialCuts");
30
31 // TGeant4
32 TGeant4* geant4
33 = new TGeant4("TGeant4", "The Geant4 Monte Carlo", runConfiguration);
34
35 // Customise Geant4 setting
36 // (verbose level, global range cut, ..)
37 geant4->ProcessGeantMacro("g4config.in");
38
39 cout << "Geant4 has been created." << endl;
40}
User Geant4 VMC run configuration.