CMS 3D CMS Logo

Macros | Functions
pfalgo_common.h File Reference
#include "data.h"

Go to the source code of this file.

Macros

#define PFALGO_DR2MAX_TK_MU   2101
 

Functions

int dr2_int (etaphi_t eta1, etaphi_t phi1, etaphi_t eta2, etaphi_t phi2)
 

Macro Definition Documentation

◆ PFALGO_DR2MAX_TK_MU

#define PFALGO_DR2MAX_TK_MU   2101

Definition at line 13 of file pfalgo_common.h.

Function Documentation

◆ dr2_int()

int dr2_int ( etaphi_t  eta1,
etaphi_t  phi1,
etaphi_t  eta2,
etaphi_t  phi2 
)
inline

Definition at line 6 of file pfalgo_common.h.

6  {
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 }

References HLT_2018_cff::eta1, and HLT_2018_cff::eta2.

Referenced by best_match_with_pt_ref().

HLT_2018_cff.eta1
eta1
Definition: HLT_2018_cff.py:8220
HLT_2018_cff.eta2
eta2
Definition: HLT_2018_cff.py:8221