VMC Examples
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
examples
Gflash
read.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
/// \file Gflash/read.C
11
/// \brief Macro for reading the Gflash simulated data from Root file
12
13
void
read
()
14
{
15
/// Macro for reading the Gflash simulated data from Root file
16
/// Note that since Root 6 the libraries have to be loaded first
17
/// via load_g4.C.
18
19
// MC application
20
VMC::Gflash::MCApplication
* appl
21
=
new
VMC::Gflash::MCApplication
(
"ExampleGflash"
,
"The exampleGflash MC application"
);
22
23
for
(Int_t i=0; i<5; i++) {
24
cout <<
" Event no "
<< i+1 <<
":"
<< endl;
25
appl->
ReadEvent
(i);
26
appl->
GetCalorimeterSD
()->
PrintTotal
();
27
cout << endl;
28
}
29
}
read
void read()
Definition
read.C:13
VMC::Gflash::MCApplication
Implementation of the TVirtualMCApplication.
Definition
MCApplication.h:48
VMC::Gflash::MCApplication::GetCalorimeterSD
SensitiveDetector * GetCalorimeterSD() const
Definition
MCApplication.h:119
VMC::Gflash::MCApplication::ReadEvent
void ReadEvent(Int_t i)
Definition
MCApplication.cxx:331
VMC::Gflash::SensitiveDetector::PrintTotal
void PrintTotal() const
Definition
SensitiveDetector.cxx:167
Generated on
for VMC Examples by
1.17.0