VMC Examples Version 6.7
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
read.C File Reference

Macro for reading the Gflash 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 Gflash simulated data from Root file.

Definition in file read.C.

Function Documentation

◆ read()

void read ( )

Macro for reading the Gflash simulated data from Root file

Definition at line 15 of file read.C.

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