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
21 Int_t threadId = 1;
23 = new Ex03MCApplication("Example03", "The example03 MC application");
24
25 for (Int_t i=0; i<5; i++) {
26 cout << " Event no " << i+1 << ":" << endl;
27 appl->ReadEvent(i, threadId);
29 cout << endl;
30 }
31}
void read()
Definition read.C:13
Ex03bMCApplication Ex03MCApplication
Implementation of the TVirtualMCApplication.
Ex03CalorimeterSD * GetCalorimeterSD() const
void ReadEvent(Int_t i, Int_t threadId=-1)