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
EpFinderEval.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EpFinderEval.h
1
2
3
#ifndef __EpFinderEval_H__
4
#define __EpFinderEval_H__
5
6
#include <
fun4all/SubsysReco.h
>
7
#include <string>
8
#include <vector>
9
10
//Forward declerations
11
class
PHCompositeNode
;
12
class
TFile;
13
class
TTree;
14
class
EpFinder
;
15
class
PHG4TruthInfoContainer
;
16
class
RawTowerContainer
;
17
class
RawTowerGeomContainer
;
18
19
#define PHI_BINS 20
20
21
#define FPRIM_PHI_BINS 20
22
#define FPRIM_ETA_BINS 20
23
#define RFPRIM_ETA_BINS 5
24
25
//Brief: basic ntuple and histogram creation for sim evaluation
26
class
EpFinderEval
:
public
SubsysReco
27
{
28
public
:
29
//Default constructor
30
EpFinderEval
(
const
std::string
&
name
=
"EpFinderEval"
);
31
32
//Initialization, called for initialization
33
int
Init
(
PHCompositeNode
*);
34
35
int
InitRun
(
PHCompositeNode
*);
36
37
//Process Event, called for each event
38
int
process_event
(
PHCompositeNode
*);
39
40
//End, write and close files
41
int
End
(
PHCompositeNode
*);
42
43
//Change output filename
44
void
set_filename
(
const
char
*
file
)
45
{
if
(file)
_outfile_name
=
file
; }
46
47
private
:
48
//output filename
49
std::string
_outfile_name
;
50
51
//Event counter
52
int
_event
;
53
54
//User modules
55
void
fill_tree
(
PHCompositeNode
*);
56
57
//Get all the nodes
58
int
GetNodes
(
PHCompositeNode
*);
59
60
// Sum tower energy
61
void
sumTowerEnergy
(
PHCompositeNode
*topNode,
std::string
detName );
62
63
// Determine phi,eta bin
64
int
GetPhiBin
(
float
tphi
,
float
numPhiDivisions);
65
int
GetEtaBin
(
float
teta
,
float
eta_low,
float
eta_high,
float
numEtaDivisions);
66
67
//TTrees
68
TTree*
_eval_tree_event
;
69
70
float
rplane_angle
;
71
float
bimpact
;
72
float
prim_rplane_angle
;
73
74
float
fprim_rplane_angle
;
75
float
fprim_phiweighted_rplane_angle
;
76
float
fprim_phiweightedandshifted_rplane_angle
;
77
78
float
rfprim_rplane_angle
;
79
float
rfprim_phiweighted_rplane_angle
;
80
float
rfprim_phiweightedandshifted_rplane_angle
;
81
82
float
femc_raw_rplane_angle
;
83
float
femc_phiweighted_rplane_angle
;
84
float
femc_phiweightedandshifted_rplane_angle
;
85
86
float
rfemc_raw_rplane_angle
;
87
float
rfemc_phiweighted_rplane_angle
;
88
float
rfemc_phiweightedandshifted_rplane_angle
;
89
90
float
femcL_raw_rplane_angle
;
91
float
femcL_phiweighted_rplane_angle
;
92
float
femcL_phiweightedandshifted_rplane_angle
;
93
94
float
femcR_raw_rplane_angle
;
95
float
femcR_phiweighted_rplane_angle
;
96
float
femcR_phiweightedandshifted_rplane_angle
;
97
98
float
femc_h_clE
;
99
100
PHG4TruthInfoContainer
*
_truth_container
;
101
RawTowerContainer
*
towers
;
102
RawTowerGeomContainer
*
towergeom
;
103
104
EpFinder
*
RpFinder
;
105
EpFinder
*
rRpFinder
;
106
EpFinder
*
RpFinderL
;
107
EpFinder
*
RpFinderR
;
108
EpFinder
*
primRpFinder
;
109
EpFinder
*
fprimRpFinder
;
110
EpFinder
*
rfprimRpFinder
;
111
112
// phi binning
113
114
std::vector<std::pair<int,int>>
phi_list
[
PHI_BINS
];
115
std::vector<std::pair<int,int>>
rphi_list
[
PHI_BINS
];
116
std::vector<std::pair<int,int>>
fprim_phi_list
[
FPRIM_PHI_BINS
];
117
std::vector<std::pair<int,int>>
rfprim_phi_list
[
FPRIM_PHI_BINS
];
118
119
};
120
121
#endif //* __EpFinderEval_H__ *//
analysis
blob
master
EpFinder
EpFinderEval.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:51
using
1.8.2 with
sPHENIX GitHub integration