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 
4 {
5  // Create visualization manager;
6  auto fMan = new EicEventManager();
7  fMan->SetInputFile("simulation.root");
8 
9  // Define objects to be displayed;
10  fMan->AddTask(new FairMCTracks ("Monte-Carlo Tracks"));
11  fMan->AddTask(new FairMCPointDraw ("VstMoCaPoint", kRed, kFullSquare));
12  fMan->AddTask(new FairMCPointDraw ("FstMoCaPoint", kRed, kFullSquare));
13  fMan->AddTask(new FairMCPointDraw ("FgtMoCaPoint", kBlue, kFullSquare));
14  fMan->AddTask(new FairMCPointDraw ("BstMoCaPoint", kRed, kFullSquare));
15  fMan->AddTask(new FairMCPointDraw ("BgtMoCaPoint", kBlue, kFullSquare));
16  fMan->AddTask(new FairMCPointDraw ("TpcMoCaPoint", kGreen, kFullSquare));
17 
18  // Initialize and run visualization manager;
19  fMan->Run();
20 
21  //
22  // Once graphics window starts up, in ROOT browser follow the sequence:
23  // "Fair Event Manager" -> "Info" -> increment "Current Event";
24  //
25 } // eventDisplay()