55 : m_MIAU(miau),
m_id(id), m_mu(nullptr) {}
72 int lut_id =
m_id / 4;
81 unsigned phi_fine = phi & ((1 << 3) - 1);
82 unsigned phi_coarse = phi >> 3;
95 unsigned phi_sel_bits = phipro2_lut->
SpecificLookup_phi_sel(lut_id, phi_coarse, cphi_fine, cphi_ofs, charge);
104 for (
unsigned int i = 0;
i < 9;
i++)
105 if ((phi_sel_bits & (1 <<
i)) == (unsigned)(1 <<
i))
108 for (
unsigned int i = 9;
i < 18;
i++)
109 if ((phi_sel_bits & (1 <<
i)) == (
unsigned)(1 <<
i))
131 for (
int i = 0;
i < 18;
i++) {
Log< level::Info, true > LogVerbatim
void print() const
print results after phi projection
static L1MuGMTMIAUPhiPro2LUT * getMIAUPhiPro2LUT()
virtual bool empty() const
return empty flag
unsigned charge_packed() const
return charge packed as in hardware (0=pos, 1=neg)
virtual ~L1MuGMTPhiProjectionUnit()
destructor
L1MuGMTPhiProjectionUnit(const L1MuGMTMipIsoAU &miau, int id)
constructor
static L1MuGMTMIAUEtaConvLUT * getMIAUEtaConvLUT()
const L1MuGlobalMuonTrigger & GMT() const
unsigned SpecificLookup_cphi_fine(int idx, unsigned phi_fine, unsigned eta, unsigned pt, unsigned charge) const
specific lookup function for cphi_fine
void run()
run phi projection unit
unsigned eta_packed() const
return eta packed as in hardware
unsigned SpecificLookup_phi_sel(int idx, unsigned cphi_start, unsigned cphi_fine, unsigned cphi_ofs, unsigned charge) const
specific lookup function for phi_sel
unsigned SpecificLookup_cphi_ofs(int idx, unsigned phi_fine, unsigned eta, unsigned pt, unsigned charge) const
specific lookup function for cphi_ofs
const L1MuGMTMipIsoAU & m_MIAU
unsigned SpecificLookup_eta_out(int idx, unsigned eta_in) const
specific lookup function for eta_out
void SetPhiSelBits(int idx, unsigned phisel)
Set phi select bits for current bx.
static L1MuGMTMIAUPhiPro1LUT * getMIAUPhiPro1LUT()
void reset()
clear phi projection unit
unsigned pt_packed() const
return pt packed as in hardware
const L1MuRegionalCand * m_mu
L1MuGMTDebugBlock * DebugBlockForFill() const
for debug: return the debug block (in order to fill it)
const L1MuRegionalCand * muon(int idx) const
return input muon (idx: 0..3: DT/CSC, 4..7: RPC)
unsigned phi_packed() const
return phi packed as in hardware