CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

L1MuGMTLFSortRankEtaPhiLUT Class Reference

#include <L1MuGMTLFSortRankEtaPhiLUT.h>

Inheritance diagram for L1MuGMTLFSortRankEtaPhiLUT:
L1MuGMTLUT

List of all members.

Public Types

enum  { DT, BRPC, CSC, FRPC }

Public Member Functions

 L1MuGMTLFSortRankEtaPhiLUT ()
 constuctor using function-lookup
virtual unsigned LookupFunctionPacked (int idx, unsigned address) const
 access to lookup function with packed input and output
unsigned SpecificLookup (int idx, unsigned eta, unsigned phi) const
 specific lookup function for entire output field
unsigned SpecificLookup_rank_etaphi (int idx, unsigned eta, unsigned phi) const
 specific lookup function for rank_etaphi
virtual ~L1MuGMTLFSortRankEtaPhiLUT ()
 destructor

Private Member Functions

void InitParameters ()
 Initialize scales, configuration parameters, alignment constants, ...
unsigned TheLookupFunction (int idx, unsigned eta, unsigned phi) const
 The lookup function - here the functionality of the LUT is implemented.

Detailed Description

LFSortRankEtaPhi look-up table

this class was automatically generated by L1MuGMTLUT::MakeSubClass()

Definition at line 42 of file L1MuGMTLFSortRankEtaPhiLUT.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
DT 
BRPC 
CSC 
FRPC 

Definition at line 45 of file L1MuGMTLFSortRankEtaPhiLUT.h.

{DT, BRPC, CSC, FRPC};

Constructor & Destructor Documentation

L1MuGMTLFSortRankEtaPhiLUT::L1MuGMTLFSortRankEtaPhiLUT ( ) [inline]

constuctor using function-lookup

Definition at line 48 of file L1MuGMTLFSortRankEtaPhiLUT.h.

References InitParameters().

                               : L1MuGMTLUT("LFSortRankEtaPhi", 
                                       "DT BRPC CSC FRPC",
                                       "eta(6) phi(8)",
                                       "rank_etaphi(2)", 11, false) {
    InitParameters();
  } ;
virtual L1MuGMTLFSortRankEtaPhiLUT::~L1MuGMTLFSortRankEtaPhiLUT ( ) [inline, virtual]

destructor

Definition at line 56 of file L1MuGMTLFSortRankEtaPhiLUT.h.

{};

Member Function Documentation

void L1MuGMTLFSortRankEtaPhiLUT::InitParameters ( ) [private]

Initialize scales, configuration parameters, alignment constants, ...

Definition at line 34 of file L1MuGMTLFSortRankEtaPhiLUT.cc.

Referenced by L1MuGMTLFSortRankEtaPhiLUT().

                                                {
}
virtual unsigned L1MuGMTLFSortRankEtaPhiLUT::LookupFunctionPacked ( int  idx,
unsigned  address 
) const [inline, virtual]

access to lookup function with packed input and output

Reimplemented from L1MuGMTLUT.

Definition at line 78 of file L1MuGMTLFSortRankEtaPhiLUT.h.

References L1MuGMTLUT::m_Inputs, TheLookupFunction(), and L1MuGMTLUT::u2vec().

                                                                          {
    std::vector<unsigned> addr = u2vec(address, m_Inputs);
    return TheLookupFunction(idx ,addr[0] ,addr[1]);

  };
unsigned L1MuGMTLFSortRankEtaPhiLUT::SpecificLookup ( int  idx,
unsigned  eta,
unsigned  phi 
) const [inline]

specific lookup function for entire output field

Definition at line 67 of file L1MuGMTLFSortRankEtaPhiLUT.h.

References eta(), L1MuGMTLUT::LookupPacked(), and phi.

                                                                      {
    std::vector<unsigned> addr(2);
    addr[0] = eta;
    addr[1] = phi;
    return LookupPacked(idx, addr);
  };
unsigned L1MuGMTLFSortRankEtaPhiLUT::SpecificLookup_rank_etaphi ( int  idx,
unsigned  eta,
unsigned  phi 
) const [inline]

specific lookup function for rank_etaphi

Definition at line 59 of file L1MuGMTLFSortRankEtaPhiLUT.h.

References eta(), L1MuGMTLUT::Lookup(), and phi.

Referenced by L1MuGMTSortRankUnit::isDisabled(), and L1MuGMTSortRankUnit::sort_rank().

                                                                                  {
    std::vector<unsigned> addr(2);
    addr[0] = eta;
    addr[1] = phi;
    return Lookup(idx, addr) [0];
  };
unsigned L1MuGMTLFSortRankEtaPhiLUT::TheLookupFunction ( int  idx,
unsigned  eta,
unsigned  phi 
) const [private]

The lookup function - here the functionality of the LUT is implemented.

Definition at line 61 of file L1MuGMTLFSortRankEtaPhiLUT.cc.

Referenced by LookupFunctionPacked().

                                                                                                 {
  // idx is DT, BRPC, CSC, FRPC
  // INPUTS:  eta(6) phi(8)
  // OUTPUTS: rank_etaphi(2) 

  // by default return code 10 (binary)
  unsigned int rank_etaphi = 2;
  return rank_etaphi;
}