CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

L1MuGMTLFMergeRankEtaPhiLUT Class Reference

#include <L1MuGMTLFMergeRankEtaPhiLUT.h>

Inheritance diagram for L1MuGMTLFMergeRankEtaPhiLUT:
L1MuGMTLUT

List of all members.

Public Types

enum  { DT, BRPC, CSC, FRPC }

Public Member Functions

 L1MuGMTLFMergeRankEtaPhiLUT ()
 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 ~L1MuGMTLFMergeRankEtaPhiLUT ()
 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

LFMergeRankEtaPhi look-up table

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

Definition at line 42 of file L1MuGMTLFMergeRankEtaPhiLUT.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
DT 
BRPC 
CSC 
FRPC 

Definition at line 45 of file L1MuGMTLFMergeRankEtaPhiLUT.h.

{DT, BRPC, CSC, FRPC};

Constructor & Destructor Documentation

L1MuGMTLFMergeRankEtaPhiLUT::L1MuGMTLFMergeRankEtaPhiLUT ( ) [inline]

constuctor using function-lookup

Definition at line 48 of file L1MuGMTLFMergeRankEtaPhiLUT.h.

References InitParameters().

                                : L1MuGMTLUT("LFMergeRankEtaPhi", 
                                       "DT BRPC CSC FRPC",
                                       "eta(6) phi(8)",
                                       "rank_etaphi(1)", 10, false) {
    InitParameters();
  } ;
virtual L1MuGMTLFMergeRankEtaPhiLUT::~L1MuGMTLFMergeRankEtaPhiLUT ( ) [inline, virtual]

destructor

Definition at line 56 of file L1MuGMTLFMergeRankEtaPhiLUT.h.

{};

Member Function Documentation

void L1MuGMTLFMergeRankEtaPhiLUT::InitParameters ( ) [private]

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

Definition at line 34 of file L1MuGMTLFMergeRankEtaPhiLUT.cc.

Referenced by L1MuGMTLFMergeRankEtaPhiLUT().

                                                 {
}
virtual unsigned L1MuGMTLFMergeRankEtaPhiLUT::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 L1MuGMTLFMergeRankEtaPhiLUT.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 L1MuGMTLFMergeRankEtaPhiLUT::SpecificLookup ( int  idx,
unsigned  eta,
unsigned  phi 
) const [inline]

specific lookup function for entire output field

Definition at line 67 of file L1MuGMTLFMergeRankEtaPhiLUT.h.

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

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

specific lookup function for rank_etaphi

Definition at line 59 of file L1MuGMTLFMergeRankEtaPhiLUT.h.

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

Referenced by L1MuGMTMerger::merge_rank().

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

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

Definition at line 41 of file L1MuGMTLFMergeRankEtaPhiLUT.cc.

Referenced by LookupFunctionPacked().

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

  // return zero to reduce merge rank for a certain region
  return 1;
}