VMC Examples
Version 6.6
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
}
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 Thu Oct 17 2024 08:29:51 for VMC Examples by
1.12.0