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  // Load basic libraries;
9  gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C");
10 
11  // Create visualization manager;
12  EicEventManager *fMan = new EicEventManager();
13  fMan->SetInputFile("simulation.root");
14 
15  // Define objects to be displayed;
16  fMan->AddTask(new FairMCTracks ("Monte-Carlo Tracks"));
17  fMan->AddTask(new FairMCPointDraw("B0trackerMoCaPoint",kRed, kFullSquare));
18  fMan->AddTask(new FairMCPointDraw("RpMoCaPoint", kRed, kFullSquare));
19  fMan->AddTask(new FairMCPointDraw("ZdcMoCaPoint", kCyan, kFullSquare));
20  fMan->AddTask(new FairMCPointDraw("IpptMoCaPoint", kGreen, kFullSquare));
21  fMan->AddTask(new FairMCPointDraw("TpcMoCaPoint", kGreen, kFullSquare));
22  fMan->AddTask(new FairMCPointDraw("VstMoCaPoint", kGreen, kFullSquare));
23 
24  // Initialize and run visualization manager;
25  fMan->Run();
26 
27  //
28  // Once graphics window starts up, in ROOT browser follow the sequence:
29  // "Fair Event Manager" -> "Info" -> increment "Current Event";
30  //
31 } // eventDisplay()
32