4 |
void run_g4_test(const TString& configMacro = "g4Config.C") { |
void run_g4_test(const TString& configMacro = "g4Config.C") { |
5 |
|
|
6 |
// Load basic libraries |
// Load basic libraries |
7 |
gROOT->LoadMacro("./macro/basiclibs.C"); |
gROOT->LoadMacro("../macro/basiclibs.C"); |
8 |
basiclibs(); |
basiclibs(); |
9 |
|
|
10 |
// Load PAMELA libs |
// Load PAMELA libs |
15 |
|
|
16 |
// Load Geant4 libraries |
// Load Geant4 libraries |
17 |
|
|
18 |
gROOT->LoadMacro("./macro/PamG4Libs.C"); |
gROOT->LoadMacro("../macro/PamG4Libs.C"); |
19 |
PamG4Libs(); |
PamG4Libs(); |
20 |
|
|
21 |
// Load this example libraries |
// Load this example libraries |
32 |
|
|
33 |
// Initialize MC |
// Initialize MC |
34 |
appl->InitMC(configMacro); |
appl->InitMC(configMacro); |
35 |
((TGeant4*)gMC)->ProcessGeantMacro("g4config2.in"); |
((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4config2.in"); |
36 |
|
|
37 |
#define EVENTS 5000 |
#define EVENTS 5000 |
38 |
|
|
78 |
} |
} |
79 |
|
|
80 |
// Visualization settings |
// Visualization settings |
81 |
// ((TGeant4*)gMC)->ProcessGeantMacro("g4vis.in"); |
// ((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4vis.in"); |
82 |
|
|
83 |
// Run MC |
// Run MC |
84 |
// appl->RunMC(1000); |
// appl->RunMC(1000); |