VMC Examples Version 6.6
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
14#include "../macro/basiclibs.C"
15
16void 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
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);
34 cout << endl;
35 }
36}
void read()
Definition read.C:15
Ex03bMCApplication Ex03MCApplication
Macro for loading basic libraries used with all MCs.
void basiclibs()
Definition basiclibs.C:30
Implementation of the TVirtualMCApplication.
Ex03CalorimeterSD * GetCalorimeterSD() const