VMC Examples Version 6.8
Loading...
Searching...
No Matches
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
14void 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
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);
28 cout << endl;
29 }
30}
void read()
Definition read.C:13
Ex03bMCApplication Ex03MCApplication
Implementation of the TVirtualMCApplication.
Ex03CalorimeterSD * GetCalorimeterSD() const