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
ExGarfield
read.C
Go to the documentation of this file.
1
//------------------------------------------------
2
// The Virtual Monte Carlo examples
3
// Copyright (C) 2007 - 2016 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
/// \file ExGarfield/read.C
11
/// \brief Macro for reading the Garfield simulated data from Root file
12
13
#include "
../macro/basiclibs.C
"
14
15
void
read
()
16
{
17
/// Macro for reading the Garfield simulated data from Root file
18
19
// Load basic libraries
20
basiclibs
();
21
22
// Load Garfield library
23
gSystem->Load(
"libGarfield"
);
24
25
// Load this example library
26
gSystem->Load(
"libvmc_ExGarfield"
);
27
28
// MC application
29
VMC::Garfield::MCApplication* appl
30
=
new
VMC::ExGarfield::MCApplication
(
"ExampleGarfield"
,
"The example ExGarfield MC application"
, kRead);
31
32
for
(Int_t i=0; i<5; i++) {
33
cout <<
" Event no "
<< i+1 <<
":"
<< endl;
34
appl->ReadEvent(i);
35
appl->GetCalorimeterSD()->PrintTotal();
36
cout << endl;
37
}
38
}
15
void
read
() {
…
}
read
void read()
Definition
read.C:15
basiclibs.C
Macro for loading basic libraries used with all MCs.
basiclibs
void basiclibs()
Definition
basiclibs.C:30
VMC::ExGarfield::MCApplication
Implementation of the TVirtualMCApplication.
Definition
MCApplication.h:48
Generated on Tue Apr 1 2025 13:04:57 for VMC Examples by
1.13.2