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 
2 //
3 // Simulated data file browser;
4 //
5 
7 {
8  // Create visualization manager;
9  auto fMan = new EicEventManager();
10  fMan->SetInputFile("simulation.root");
11 
12  // Define objects to be displayed;
13  fMan->AddTask(new FairMCTracks ("Monte-Carlo Tracks"));
14  fMan->AddTask(new FairMCPointDraw("FwdstMoCaPoint",kRed, 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