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
#include <
simulation.C
>
3
4
void
eventDisplay
()
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_MUMEGAS_
22
fMan->
AddTask
(
new
FairMCPointDraw
(
"MmtMoCaPoint"
, kBlue, kFullSquare));
23
#endif
24
25
// Initialize and run visualization manager;
26
fMan->
Run
();
27
28
//
29
// Once graphics window starts up, in ROOT browser follow the sequence:
30
// "Fair Event Manager" -> "Info" -> increment "Current Event";
31
//
32
}
// eventDisplay()
33
EicRoot
blob
master
geometry
STAR.FWD
eventDisplay.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration