EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eventDisplay.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file eventDisplay.C
1 
3 {
4  // Load basic libraries;
5  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
6 
7  // Create visualization manager;
8  EicEventManager *fMan = new EicEventManager();
9  fMan->SetInputFile("simulation.root");
10 
11  // Define objects to be displayed;
12  fMan->AddTask(new FairMCTracks ("Monte-Carlo Tracks"));
13  fMan->AddTask(new FairMCPointDraw("VtxMoCaPoint", kRed, kFullSquare));
14  fMan->AddTask(new FairMCPointDraw("TpcMoCaPoint", kGreen, kFullSquare));
15 
16  // Initialize and run visualization manager;
17  fMan->Run();
18 
19  //
20  // Once graphics window starts up, in ROOT browser follow the sequence:
21  // "Fair Event Manager" -> "Info" -> increment "Current Event";
22  //
23 } // eventDisplay()
24