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
LeptoquarksReco.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file LeptoquarksReco.h
1
#ifndef __LeptoquarksReco_H__
2
#define __LeptoquarksReco_H__
3
4
#include "
PidCandidate.h
"
5
6
/* Fun4All includes */
7
#include <
fun4all/SubsysReco.h
>
8
#include <calobase/RawTowerDefs.h>
9
10
/* STL includes */
11
#include <math.h>
12
#include <map>
13
14
/*HepMC include */
15
#include <
phhepmc/PHHepMCGenEvent.h
>
16
#include <
phhepmc/PHHepMCGenEventMap.h
>
17
#include <HepMC/GenEvent.h>
18
class
TNtuple;
19
class
TTree;
20
class
TFile;
21
22
class
PHCompositeNode
;
23
class
CaloRawTowerEval
;
24
class
RawTowerContainer
;
25
class
RawTowerGeomContainer
;
26
class
JetMap
;
27
class
SvtxTrackMap
;
28
class
SvtxVertexMap
;
29
class
SvtxEvalStack
;
30
class
PHHepMCGenEventMap
;
31
32
class
PidCandidate
;
33
34
typedef
std::map<float, PidCandidate*>
type_map_tcan
;
35
typedef
std::map< RawTowerDefs::CalorimeterId , std::pair< RawTowerContainer*, RawTowerGeomContainer* > >
type_map_cdata
;
36
37
class
LeptoquarksReco
:
public
SubsysReco
38
{
39
40
public
:
41
42
LeptoquarksReco
(
std::string
filename
);
43
44
int
45
Init
(
PHCompositeNode
*);
46
int
47
process_event
(
PHCompositeNode
*);
48
int
49
End
(
PHCompositeNode
*);
50
51
52
void
53
set_save_towers
(
bool
savetower=
true
)
54
{
55
_save_towers
= savetower;
56
}
57
58
59
void
60
set_save_tracks
(
bool
savetracks=
true
)
61
{
62
_save_tracks
= savetracks;
63
}
64
65
66
void
67
set_beam_energies
(
float
beam_electron ,
float
beam_proton )
68
{
69
_ebeam_E
= fabs( beam_electron );
70
_pbeam_E
= fabs( beam_proton );
71
}
72
73
void
74
set_reco_jet_collection
(
std::string
newname )
75
{
76
_jetcolname
= newname;
77
}
78
79
private
:
80
81
bool
_verbose
;
82
bool
_save_towers
;
83
bool
_save_tracks
;
84
85
int
_ievent
;
86
int
_total_pass
;
87
88
std::string
_filename
;
89
TFile *
_tfile
;
90
91
/* output tree and variables */
92
TTree*
_t_event
;
93
TNtuple*
_ntp_tower
;
94
TNtuple*
_ntp_track
;
95
96
/* beam energies electron and proton */
97
float
_ebeam_E
;
98
float
_pbeam_E
;
99
100
/* set minimum energy for tau jets to consider */
101
float
_tau_jet_emin
;
102
104
std::string
_jetcolname
;
105
108
std::map< std::string, CaloRawTowerEval* >
_map_towereval
;
109
112
std::map< PidCandidate::PROPERTY , std::vector< float > >
_map_tau_candidate_branches
;
113
116
std::map< std::string , float >
_map_event_branches
;
117
118
int
AddTrueTauTag
(
type_map_tcan
&,
PHHepMCGenEventMap
* );
119
120
int
AddJetInformation
(
type_map_tcan
&,
JetMap
*,
type_map_cdata
* );
121
122
int
AddJetStructureInformation
(
type_map_tcan
&,
type_map_cdata
* );
123
124
int
AddTrackInformation
(
type_map_tcan
&,
SvtxTrackMap
*,
SvtxVertexMap
*,
SvtxEvalStack
*,
double
);
125
126
int
WritePidCandidatesToTree
(
type_map_tcan
& );
127
128
int
AddGlobalEventInformation
(
type_map_tcan
& ,
type_map_cdata
* );
129
131
PidCandidate
*
FindMinDeltaRCandidate
(
type_map_tcan
*,
const
float
,
const
float
);
132
134
float
CalculateDeltaR
(
float
,
float
,
float
,
float
);
135
137
void
ResetBranchMap
();
138
140
enum
CALOTYPE
141
{
142
calo_cemc
,
143
calo_ihcal
,
144
calo_ohcal
,
145
calo_femc
,
146
calo_fhcal
,
147
calo_eemc
148
};
149
150
};
151
152
#endif // __LeptoquarksReco_H__
analysis
blob
master
EICAnalysis
LeptoquarksReco.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:48
using
1.8.2 with
sPHENIX GitHub integration