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

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

Go to the source code of this file.

Functions

void read ()

Detailed Description

Macro for reading the Garfield simulated data from Root file.

Definition in file read.C.

Function Documentation

◆ read()

void read ( )

Macro for reading the Garfield simulated data from Root file Note that since Root 6 the libraries have to be loaded first via load_g4.C.

Definition at line 13 of file read.C.

14{
15/// Macro for reading the Garfield 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::Garfield::MCApplication* appl
21 = new VMC::ExGarfield::MCApplication("ExampleGarfield", "The example ExGarfield 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}
Implementation of the TVirtualMCApplication.