VMC Examples
Version 6.8
Toggle main menu visibility
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
void
read
()
15
{
16
/// Macro for reading the E03 simulated data from Root file
17
/// Note that since Root 6 the libraries have to be loaded first
18
/// via load_g4a[b,c].C.
19
20
// MC application
21
Ex03MCApplication
* appl
22
=
new
Ex03MCApplication
(
"Example03"
,
"The example03 MC application"
);
23
24
for
(Int_t i=0; i<5; i++) {
25
cout <<
" Event no "
<< i+1 <<
":"
<< endl;
26
appl->
ReadEvent
(i);
27
appl->
GetCalorimeterSD
()->
PrintTotal
();
28
cout << endl;
29
}
30
}
read
void read()
Definition
read.C:13
Ex03MCApplication
Ex03bMCApplication Ex03MCApplication
Definition
Ex03bMCApplication.h:111
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:273
Generated on
for VMC Examples by
1.17.0