VMC Examples
Version 6.7
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
1
2
3
6
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
~
Functions
1
2
3
6
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
~
Variables
c
f
n
Enumerations
Enumerator
Files
File List
File Members
All
3
b
c
e
f
g
h
i
l
m
n
o
r
s
t
u
v
Functions
b
c
g
h
i
l
m
n
o
r
s
t
u
v
Variables
Typedefs
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Pages
Loading...
Searching...
No Matches
examples
E03
run_multi.C
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4
// All rights reserved.
5
//
6
// For the licensing terms see geant4_vmc/LICENSE.
7
// Contact: root-vmc@cern.ch
8
//-------------------------------------------------
9
10
/// \ingroup E03
11
/// \file E03/run_multi.C
12
/// \brief Macro for running Example03 with mixed Geant3 and Geant4.
13
14
// #include "set_g3_vis.C"
15
// #include "set_g4_vis.C"
16
17
void
run_multi
(
const
TString& configMacro1 =
"g3tgeoConfig.C"
,
const
TString& configMacro2 =
"g4tgeoConfig4Seq.C"
)
18
{
19
/// Macro function for running Example03c with Geant3 and Geant4 together from
20
/// Root interactive session
21
/// Note that since Root 6 the libraries have to be loaded first
22
/// via load_multi.C.
23
/// \param configMacro configuration macro names, default \ref E03/g3tgeoConfig.C and E03/g4tgeoConfig4Seq.C
24
25
26
// MC application
27
auto
appl =
new
Ex03MCApplication
(
"Example03"
,
"The example03 MC application"
, kTRUE, kTRUE);
28
// appl->SetVerboseLevel(4);
29
appl->GetPrimaryGenerator()->SetNofPrimaries(20);
30
appl->SetPrintModulo(1);
31
32
appl->InitMC({configMacro1.Data(), configMacro2.Data()});
33
34
// visualization setting
35
// Not available with multi engine run
36
// set_g3_vis();
37
// set_g4_vis();
38
39
appl->RunMC(5);
40
41
delete
appl;
42
}
17
void
run_multi
(
const
TString& configMacro1 =
"g3tgeoConfig.C"
,
const
TString& configMacro2 =
"g4tgeoConfig4Seq.C"
) {
…
}
Ex03MCApplication
Ex03bMCApplication Ex03MCApplication
Definition
Ex03bMCApplication.h:111
run_multi
void run_multi(const TString &configMacro1="g3tgeoConfig.C", const TString &configMacro2="g4tgeoConfig4Seq.C")
Definition
run_multi.C:17
Generated on Tue Apr 1 2025 13:04:57 for VMC Examples by
1.13.2