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