VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
Gflash
run_g4.C
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2015 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 Gflash
11
/// \file Gflash/run_g4.C
12
/// \brief Macro for running ExampleGflash with Geant4.
13
14
#include "
set_g4_vis.C
"
15
16
void
run_g4
(
const
TString& configMacro =
"g4Config.C"
)
17
{
18
/// Macro function for running Example Gflash with Geant4 from
19
/// Root interactive session
20
/// Note that since Root 6 the libraries have to be loaded first
21
/// via load_g4.C.
22
/// \param configMacro configuration macro name, default \ref Gflash/g4Config.C
23
24
// MC application
25
VMC::Gflash::MCApplication
* appl
26
=
new
VMC::Gflash::MCApplication
(
"ExampleGflash"
,
"The exampleGflash MC application"
);
27
appl->
InitMC
(configMacro);
28
29
// Visualization setting
30
set_g4_vis
();
31
32
// Enter in Geant4 interactive session
33
//((TGeant4*)gMC)->StartGeantUI();
34
35
appl->
RunMC
(10);
36
37
delete
appl;
38
}
run_g4
void run_g4(const TString &configMacro="g4Config.C")
Definition
run_g4.C:16
set_g4_vis
void set_g4_vis()
Definition
set_g4_vis.C:15
set_g4_vis.C
Macro for setting G4 visualization for example Gflash.
VMC::Gflash::MCApplication
Implementation of the TVirtualMCApplication.
Definition
MCApplication.h:48
VMC::Gflash::MCApplication::InitMC
void InitMC(const char *setup)
Definition
MCApplication.cxx:235
VMC::Gflash::MCApplication::RunMC
void RunMC(Int_t nofEvents)
Definition
MCApplication.cxx:273
Generated on
for VMC Examples by
1.17.0