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