Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SynRadAna.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SynRadAna.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef SYNRADANA_H
4
#define SYNRADANA_H
5
6
#include <
fun4all/SubsysReco.h
>
7
8
#include <string>
9
#include <vector>
10
11
class
PHCompositeNode
;
12
class
Fun4AllHistoManager
;
13
14
class
SynRadAna
:
public
SubsysReco
15
{
16
public
:
17
SynRadAna
(
const
std::string
&
filename
=
"SynRadAna.root"
);
18
19
virtual
~SynRadAna
();
20
26
int
Init
(
PHCompositeNode
*topNode)
override
;
27
33
int
InitRun
(
PHCompositeNode
*topNode)
override
;
34
38
int
process_event
(
PHCompositeNode
*topNode)
override
;
39
41
int
ResetEvent
(
PHCompositeNode
*topNode)
override
;
42
44
int
EndRun
(
const
int
runnumber
)
override
;
45
47
int
End
(
PHCompositeNode
*topNode)
override
;
48
50
int
Reset
(
PHCompositeNode
*
/*topNode*/
)
override
;
51
52
void
Print
(
const
std::string
&what =
"ALL"
)
const override
;
53
58
int
get_embedding_id
()
const
{
return
_embedding_id
; }
59
//
64
void
set_embedding_id
(
int
id
) {
_embedding_id
=
id
; }
65
66
void
67
AddNode
(
const
std::string
&
name
)
68
{
69
_node_postfix
.push_back(name);
70
}
71
72
void
73
AddHit
(
const
std::string
&
name
)
74
{
75
_node_postfix
.push_back(name);
76
}
77
78
void
79
AddTower
(
const
std::string
&
name
)
80
{
81
_tower_postfix
.push_back(name);
82
}
83
84
bool
isDoMvtxHits
()
const
85
{
86
return
do_MVTXHits
;
87
}
88
89
void
setDoMvtxHits
(
bool
doMvtxHits)
90
{
91
do_MVTXHits
= doMvtxHits;
92
}
93
94
bool
isDoTPCHits
()
const
95
{
96
return
do_TPCHits
;
97
}
98
99
void
setDoTPCHits
(
bool
doTPCHits)
100
{
101
do_TPCHits
= doTPCHits;
102
}
103
104
bool
isDoPhoton
()
const
105
{
106
return
do_photon
;
107
}
108
109
void
setDoPhoton
(
bool
doPhoton)
110
{
111
do_photon
= doPhoton;
112
}
113
114
private
:
118
int
_embedding_id
;
119
120
double
m_eventWeight
;
121
122
bool
do_photon
;
123
bool
do_MVTXHits
;
124
bool
do_TPCHits
;
125
126
std::string
m_outputFIle
;
127
128
std::vector<std::string>
_node_postfix
;
129
std::vector<std::string>
_tower_postfix
;
131
Fun4AllHistoManager
*
132
getHistoManager
();
133
134
// common prefix for QA histograms
135
std::string
get_histo_prefix
();
136
};
137
138
#endif // SYNRADANA_H
analysis
blob
master
EIC-SynRad
SynRadAna
SynRadAna.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:48
using
1.8.2 with
sPHENIX GitHub integration