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

Macro for reading the Garfield 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 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

Definition at line 15 of file read.C.

16{
17/// Macro for reading the Garfield simulated data from Root file
18
19 // Load basic libraries
20 basiclibs();
21
22 // Load Garfield library
23 gSystem->Load("libGarfield");
24
25 // Load this example library
26 gSystem->Load("libvmc_ExGarfield");
27
28 // MC application
29 VMC::Garfield::MCApplication* appl
30 = new VMC::ExGarfield::MCApplication("ExampleGarfield", "The example ExGarfield MC application", kRead);
31
32 for (Int_t i=0; i<5; i++) {
33 cout << " Event no " << i+1 << ":" << endl;
34 appl->ReadEvent(i);
35 appl->GetCalorimeterSD()->PrintTotal();
36 cout << endl;
37 }
38}
void basiclibs()
Definition basiclibs.C:30
Implementation of the TVirtualMCApplication.