Configuration macro for Geant4 VMC for Monopole example.
More...
Go to the source code of this file.
Configuration macro for Geant4 VMC for Monopole example.
For geometry defined with Root and selected G4Root navigation
Definition in file g4tgeoConfig.C.
◆ Config()
The configuration function for Geant4 VMC for Monopole example called during MC application initialization. For geometry defined with Root and selected G4Root navigation
Definition at line 16 of file g4tgeoConfig.C.
17{
18
19
20
21
22
23 Bool_t specialStacking = false;
24 Bool_t mtApplication = false;
27 specialStacking, mtApplication);
28
29
30
31
32
33
34
35
36 runConfiguration->SetParameter("monopoleMass", 100.);
37 runConfiguration->SetParameter("monopoleElCharge", 0.);
38 runConfiguration->SetParameter("monopoleMagCharge", 1.);
39
40
41 TGeant4* geant4
42 = new TGeant4("TGeant4", "The Geant4 Monte Carlo", runConfiguration);
43
44 cout << "Geant4 has been created." << endl;
45
46
47
48 geant4->ProcessGeantMacro("g4config.in");
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81}