5 return (
unsigned)signed_int;
7 int all_one = (1 <<
width) - 1;
8 return ((-signed_int) ^ all_one) + 1;
15 globPhi = (
proc)*48 + locPhi;
19 globPhi = globPhi % 576;
22 globPhi = (
proc)*96 + locPhi;
24 globPhi = (globPhi + 600) % 576;
31 int outQual = muQual & 0xC;
42 auto hwPhiExtra =
mu.hwPhi() +
mu.hwDPhiExtra();
43 while (hwPhiExtra < 0) {
46 while (hwPhiExtra > 575) {
static unsigned getTwosComp(const int signedInt, const int width)
static int setOutputMuonQuality(int muQual, tftype type, int haloBit)
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
static int calcMuonHwPhiExtra(const l1t::Muon &mu)
static int calcMuonHwEtaExtra(const l1t::Muon &mu)
static double calcMuonPhiExtra(const l1t::Muon &mu)
static int calcGlobalPhi(int locPhi, tftype t, int proc)
static double calcMuonEtaExtra(const l1t::Muon &mu)