VMC Examples Version 6.6
Loading...
Searching...
No Matches
read.C File Reference

Macro for reading the E03 simulated data from Root file. More...

Include dependency graph for read.C:

Go to the source code of this file.

Functions

void read ()
 

Detailed Description

Macro for reading the E03 simulated data from Root file.

Definition in file read.C.

Function Documentation

◆ read()

void read ( )

Macro for reading the E03 simulated data from Root file

Definition at line 16 of file read.C.

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}
Ex03bMCApplication Ex03MCApplication
void basiclibs()
Definition basiclibs.C:30
Implementation of the TVirtualMCApplication.
Ex03CalorimeterSD * GetCalorimeterSD() const