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
//
3
// Simulated data file browser;
4
//
5
6
void
eventDisplay
()
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: tracks and hits;
16
fMan->
AddTask
(
new
FairMCTracks
(
"Monte-Carlo Tracks"
));
17
fMan->
AddTask
(
new
FairMCPointDraw
(
"FwdstMoCaPoint"
,kRed, kFullSquare));
18
fMan->
AddTask
(
new
FairMCPointDraw
(
"IpMoCaPoint"
,kRed, kFullSquare));
19
20
// Initialize and run visualization manager;
21
fMan->
Run
();
22
23
//
24
// Once graphics window starts up, in ROOT browser follow the sequence:
25
// "Fair Event Manager" -> "Info" -> increment "Current Event";
26
//
27
}
// eventDisplay()
28
EicRoot
blob
master
examples
tracking
config.1b
eventDisplay.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration