CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros | Typedefs | Enumerations | Functions
data.h File Reference
#include <ap_int.h>

Go to the source code of this file.

Classes

struct  CaloObj
 
struct  EmCaloObj
 
struct  HadCaloObj
 
struct  MuObj
 
struct  PFChargedObj
 
struct  PFNeutralObj
 
struct  TkObj
 

Macros

#define NALLNEUTRALS   (NPHOTON + NSELCALO)
 
#define NCALO   15
 
#define NCALO_TMUX   (NCALO * TMUX_OUT * NETA_TMUX * NPHI_TMUX)
 
#define NEMCALO   13
 
#define NEMCALO_TMUX   (NEMCALO * TMUX_OUT * NETA_TMUX * NPHI_TMUX)
 
#define NETA_TMUX   2
 
#define NMU   2
 
#define NMU_TMUX   (NMU * TMUX_OUT * NETA_TMUX * NPHI_TMUX)
 
#define NNEUTRALS   25
 
#define NPHI_TMUX   1
 
#define NPHOTON   NEMCALO
 
#define NSELCALO   10
 
#define NTRACK   22
 
#define NTRACK_TMUX   (NTRACK * TMUX_OUT * NETA_TMUX * NPHI_TMUX)
 
#define TMUX_IN   18
 
#define TMUX_OUT   6
 

Typedefs

typedef ap_uint< 10 > em2calo_dr_t
 
typedef ap_int< 10 > etaphi_t
 
typedef ap_uint< 3 > particleid_t
 
typedef ap_int< 16 > pt_t
 
typedef ap_uint< 13 > tk2calo_dq_t
 
typedef ap_uint< 14 > tk2calo_dr_t
 
typedef ap_uint< 14 > tk2em_dr_t
 
typedef ap_int< 5 > vtx_t
 
typedef ap_int< 10 > z0_t
 

Enumerations

enum  PID {
  PID_Charged = 0, PID_Neutral = 1, PID_Photon = 2, PID_Electron = 3,
  PID_Muon = 4
}
 

Functions

void clear (HadCaloObj &c)
 
void clear (EmCaloObj &c)
 
void clear (TkObj &c)
 
void clear (MuObj &c)
 
void clear (PFChargedObj &c)
 
void clear (PFNeutralObj &c)
 

Macro Definition Documentation

#define NALLNEUTRALS   (NPHOTON + NSELCALO)

Definition at line 96 of file data.h.

#define NCALO   15

Definition at line 91 of file data.h.

#define NCALO_TMUX   (NCALO * TMUX_OUT * NETA_TMUX * NPHI_TMUX)

Definition at line 205 of file data.h.

#define NEMCALO   13

Definition at line 92 of file data.h.

#define NEMCALO_TMUX   (NEMCALO * TMUX_OUT * NETA_TMUX * NPHI_TMUX)

Definition at line 206 of file data.h.

#define NETA_TMUX   2

Definition at line 198 of file data.h.

#define NMU   2

Definition at line 93 of file data.h.

#define NMU_TMUX   (NMU * TMUX_OUT * NETA_TMUX * NPHI_TMUX)

Definition at line 207 of file data.h.

#define NNEUTRALS   25

Definition at line 97 of file data.h.

#define NPHI_TMUX   1

Definition at line 199 of file data.h.

#define NPHOTON   NEMCALO

Definition at line 94 of file data.h.

#define NSELCALO   10

Definition at line 95 of file data.h.

#define NTRACK   22

Definition at line 90 of file data.h.

#define NTRACK_TMUX   (NTRACK * TMUX_OUT * NETA_TMUX * NPHI_TMUX)

Definition at line 204 of file data.h.

#define TMUX_IN   18

Definition at line 202 of file data.h.

#define TMUX_OUT   6

Definition at line 203 of file data.h.

Typedef Documentation

typedef ap_uint<10> em2calo_dr_t

Definition at line 13 of file data.h.

typedef ap_int<10> etaphi_t

Definition at line 7 of file data.h.

typedef ap_uint<3> particleid_t

Definition at line 9 of file data.h.

typedef ap_int<16> pt_t

Definition at line 6 of file data.h.

typedef ap_uint<13> tk2calo_dq_t

Definition at line 14 of file data.h.

typedef ap_uint<14> tk2calo_dr_t

Definition at line 12 of file data.h.

typedef ap_uint<14> tk2em_dr_t

Definition at line 11 of file data.h.

typedef ap_int<5> vtx_t

Definition at line 8 of file data.h.

typedef ap_int<10> z0_t

Definition at line 10 of file data.h.

Enumeration Type Documentation

enum PID
Enumerator
PID_Charged 
PID_Neutral 
PID_Photon 
PID_Electron 
PID_Muon 

Definition at line 16 of file data.h.

16 { PID_Charged = 0, PID_Neutral = 1, PID_Photon = 2, PID_Electron = 3, PID_Muon = 4 };
Definition: data.h:16

Function Documentation

void clear ( HadCaloObj c)
inline

Definition at line 124 of file data.h.

References HadCaloObj::hwEmPt, CaloObj::hwEta, HadCaloObj::hwIsEM, CaloObj::hwPhi, and CaloObj::hwPt.

124  {
125  c.hwPt = 0;
126  c.hwEta = 0;
127  c.hwPhi = 0;
128  c.hwEmPt = 0;
129  c.hwIsEM = false;
130 }
bool hwIsEM
Definition: data.h:122
pt_t hwEmPt
Definition: data.h:121
etaphi_t hwPhi
Definition: data.h:118
pt_t hwPt
Definition: data.h:117
etaphi_t hwEta
Definition: data.h:118
void clear ( EmCaloObj c)
inline

Definition at line 136 of file data.h.

References EmCaloObj::hwEta, EmCaloObj::hwPhi, EmCaloObj::hwPt, and EmCaloObj::hwPtErr.

136  {
137  c.hwPt = 0;
138  c.hwPtErr = 0;
139  c.hwEta = 0;
140  c.hwPhi = 0;
141 }
pt_t hwPt
Definition: data.h:133
etaphi_t hwEta
Definition: data.h:134
pt_t hwPtErr
Definition: data.h:133
etaphi_t hwPhi
Definition: data.h:134
void clear ( TkObj c)
inline

Definition at line 149 of file data.h.

References TkObj::hwEta, TkObj::hwPhi, TkObj::hwPt, TkObj::hwPtErr, TkObj::hwTightQuality, and TkObj::hwZ0.

149  {
150  c.hwPt = 0;
151  c.hwPtErr = 0;
152  c.hwEta = 0;
153  c.hwPhi = 0;
154  c.hwZ0 = 0;
155  c.hwTightQuality = false;
156 }
pt_t hwPt
Definition: data.h:144
bool hwTightQuality
Definition: data.h:147
pt_t hwPtErr
Definition: data.h:144
z0_t hwZ0
Definition: data.h:146
etaphi_t hwPhi
Definition: data.h:145
etaphi_t hwEta
Definition: data.h:145
void clear ( MuObj c)
inline

Definition at line 162 of file data.h.

References MuObj::hwEta, MuObj::hwPhi, MuObj::hwPt, and MuObj::hwPtErr.

162  {
163  c.hwPt = 0;
164  c.hwPtErr = 0;
165  c.hwEta = 0;
166  c.hwPhi = 0;
167 }
etaphi_t hwEta
Definition: data.h:160
pt_t hwPt
Definition: data.h:159
pt_t hwPtErr
Definition: data.h:159
etaphi_t hwPhi
Definition: data.h:160
void clear ( PFChargedObj c)
inline

Definition at line 175 of file data.h.

References PFChargedObj::hwEta, PFChargedObj::hwId, PFChargedObj::hwPhi, PFChargedObj::hwPt, and PFChargedObj::hwZ0.

175  {
176  c.hwPt = 0;
177  c.hwEta = 0;
178  c.hwPhi = 0;
179  c.hwId = 0;
180  c.hwZ0 = 0;
181 }
etaphi_t hwEta
Definition: data.h:171
particleid_t hwId
Definition: data.h:172
pt_t hwPt
Definition: data.h:170
etaphi_t hwPhi
Definition: data.h:171
z0_t hwZ0
Definition: data.h:173
void clear ( PFNeutralObj c)
inline

Definition at line 189 of file data.h.

References PFNeutralObj::hwEta, PFNeutralObj::hwId, PFNeutralObj::hwPhi, PFNeutralObj::hwPt, and PFNeutralObj::hwPtPuppi.

189  {
190  c.hwPt = 0;
191  c.hwEta = 0;
192  c.hwPhi = 0;
193  c.hwId = 0;
194  c.hwPtPuppi = 0;
195 }
pt_t hwPtPuppi
Definition: data.h:187
etaphi_t hwEta
Definition: data.h:185
pt_t hwPt
Definition: data.h:184
particleid_t hwId
Definition: data.h:186
etaphi_t hwPhi
Definition: data.h:185