EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
void
eventDisplay
()
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
EicRoot
blob
master
examples
tracking
config.2
eventDisplay.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration