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
FairEventManager.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairEventManager.h
1
5
#ifndef FairEventManager_H
6
#define FairEventManager_H
7
8
#include "TEveEventManager.h"
9
10
#include "
FairRunAna.h
"
11
#include "
FairRootManager.h
"
12
13
class
FairRootManager
;
//does not work with streamer, reason unclear
14
class
FairTask
;
15
class
TList;
16
17
class
FairEventManager
:
public
TEveEventManager
18
{
19
public
:
20
static
FairEventManager
*
Instance
();
21
FairEventManager
();
22
virtual
~FairEventManager
();
23
virtual
void
Open
();
24
virtual
void
GotoEvent
(Int_t event);
// *MENU*
25
virtual
void
NextEvent
();
// *MENU*
26
virtual
void
PrevEvent
();
// *MENU*
27
virtual
void
Close
();
28
virtual
void
DisplaySettings
();
// *Menu*
29
virtual
Int_t
Color
(Int_t
pdg
);
30
void
AddTask
(
FairTask
*
t
) {
fRunAna
->
AddTask
(t);}
31
virtual
void
Init
();
32
virtual
Int_t
GetCurrentEvent
() {
return
fEntry
;}
33
virtual
void
SetPriOnly
(Bool_t Pri) {
fPriOnly
=Pri;}
34
virtual
Bool_t
IsPriOnly
() {
return
fPriOnly
;}
35
virtual
void
SelectPDG
(Int_t PDG) {
fCurrentPDG
= PDG;}
36
virtual
Int_t
GetCurrentPDG
() {
return
fCurrentPDG
;}
37
virtual
void
SetMaxEnergy
( Float_t
max
) {
fMaxEnergy
=
max
;}
38
virtual
void
SetMinEnergy
( Float_t
min
) {
fMinEnergy
=
min
;}
39
virtual
void
SetEvtMaxEnergy
( Float_t
max
) {
fEvtMaxEnergy
=
max
;}
40
virtual
void
SetEvtMinEnergy
( Float_t
min
) {
fEvtMinEnergy
=
min
;}
41
virtual
Float_t
GetEvtMaxEnergy
() {
return
fEvtMaxEnergy
;}
42
virtual
Float_t
GetEvtMinEnergy
() {
return
fEvtMinEnergy
;}
43
virtual
Float_t
GetMaxEnergy
() {
return
fMaxEnergy
;}
44
virtual
Float_t
GetMinEnergy
() {
return
fMinEnergy
;}
45
void
UpdateEditor
();
46
virtual
void
AddParticlesToPdgDataBase
();
47
48
ClassDef
(
FairEventManager
,1);
49
private
:
50
FairRootManager
*
fRootManager
;
51
Int_t
fEntry
;
52
protected
:
53
FairRunAna
*
fRunAna
;
54
TGListTreeItem*
fEvent
;
55
private
:
56
Bool_t
fPriOnly
;
57
Int_t
fCurrentPDG
;
58
Float_t
fMinEnergy
;
59
Float_t
fMaxEnergy
;
60
Float_t
fEvtMinEnergy
;
61
Float_t
fEvtMaxEnergy
;
62
63
static
FairEventManager
*
fgRinstance
;
64
65
FairEventManager
(
const
FairEventManager
&);
66
FairEventManager
&
operator=
(
const
FairEventManager
&);
67
};
68
69
#endif
EicRoot
blob
master
eventdisplay
FairEventManager.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:35
using
1.8.2 with
EIC GitHub integration