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
read.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/read.C
12
/// \brief Macro for reading the E03 simulated data from Root file
13
14
#include "
../macro/basiclibs.C
"
15
16
void
read
()
17
{
18
/// Macro for reading the E03 simulated data from Root file
19
20
// Load basic libraries
21
basiclibs
();
22
23
// Load this example library
24
gSystem->Load(
"libexample03"
);
25
26
// MC application
27
Ex03MCApplication
* appl
28
=
new
Ex03MCApplication
(
"Example03"
,
"The example03 MC application"
, kRead);
29
30
for
(Int_t i=0; i<5; i++) {
31
cout <<
" Event no "
<< i+1 <<
":"
<< endl;
32
appl->
ReadEvent
(i);
33
appl->
GetCalorimeterSD
()->
PrintTotal
();
34
cout << endl;
35
}
36
}
16
void
read
() {
…
}
read
void read()
Definition
read.C:15
Ex03MCApplication
Ex03bMCApplication Ex03MCApplication
Definition
Ex03bMCApplication.h:111
basiclibs.C
Macro for loading basic libraries used with all MCs.
basiclibs
void basiclibs()
Definition
basiclibs.C:30
Ex03CalorimeterSD::PrintTotal
void PrintTotal() const
Definition
Ex03CalorimeterSD.cxx:212
Ex03MCApplication
Implementation of the TVirtualMCApplication.
Definition
Ex03MCApplication.h:40
Ex03MCApplication::GetCalorimeterSD
Ex03CalorimeterSD * GetCalorimeterSD() const
Definition
Ex03MCApplication.h:136
Ex03MCApplication::ReadEvent
void ReadEvent(Int_t i)
Definition
Ex03MCApplication.cxx:271
Generated on Tue Apr 1 2025 13:04:57 for VMC Examples by
1.13.2