L1Trigger
Phase2L1ParticleFlow
src
firmware
pfalgo_common.h
Go to the documentation of this file.
1
#ifndef L1Trigger_Phase2L1ParticleFlow_FIRMWARE_PFALGO_COMMON_H
2
#define L1Trigger_Phase2L1ParticleFlow_FIRMWARE_PFALGO_COMMON_H
3
4
#include "
data.h
"
5
6
inline
int
dr2_int
(
etaphi_t
eta1
,
etaphi_t
phi1,
etaphi_t
eta2
,
etaphi_t
phi2) {
7
ap_int<etaphi_t::width + 1> deta = (
eta1
-
eta2
);
8
ap_int<etaphi_t::width + 1> dphi = (phi1 - phi2);
9
return
deta * deta + dphi * dphi;
10
}
11
12
#ifndef CMSSW_GIT_HASH
13
#define PFALGO_DR2MAX_TK_MU 2101
14
#endif
15
16
#endif
HLT_FULL_cff.eta2
eta2
Definition:
HLT_FULL_cff.py:9542
etaphi_t
ap_int< 10 > etaphi_t
Definition:
data.h:7
HLT_FULL_cff.eta1
eta1
Definition:
HLT_FULL_cff.py:9541
dr2_int
int dr2_int(etaphi_t eta1, etaphi_t phi1, etaphi_t eta2, etaphi_t phi2)
Definition:
pfalgo_common.h:6
data.h
Generated for CMSSW Reference Manual by
1.8.16