CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

L1MuGMTLFDisableHotLUT Class Reference

#include <L1MuGMTLFDisableHotLUT.h>

Inheritance diagram for L1MuGMTLFDisableHotLUT:
L1MuGMTLUT

List of all members.

Public Types

enum  { DT, CSC }

Public Member Functions

 L1MuGMTLFDisableHotLUT ()
 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_disable_hot (int idx, unsigned eta, unsigned phi) const
 specific lookup function for disable_hot
virtual ~L1MuGMTLFDisableHotLUT ()
 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

LFDisableHot look-up table

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

Definition at line 43 of file L1MuGMTLFDisableHotLUT.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
DT 
CSC 

Definition at line 46 of file L1MuGMTLFDisableHotLUT.h.

{DT, CSC};

Constructor & Destructor Documentation

L1MuGMTLFDisableHotLUT::L1MuGMTLFDisableHotLUT ( ) [inline]

constuctor using function-lookup

Definition at line 49 of file L1MuGMTLFDisableHotLUT.h.

References InitParameters().

                           : L1MuGMTLUT("LFDisableHot", 
                                       "DT CSC",
                                       "eta(6) phi(8)",
                                       "disable_hot(1)", 10, false) {
    InitParameters();
  } ;
virtual L1MuGMTLFDisableHotLUT::~L1MuGMTLFDisableHotLUT ( ) [inline, virtual]

destructor

Definition at line 57 of file L1MuGMTLFDisableHotLUT.h.

{};

Member Function Documentation

void L1MuGMTLFDisableHotLUT::InitParameters ( ) [private]

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

Definition at line 34 of file L1MuGMTLFDisableHotLUT.cc.

Referenced by L1MuGMTLFDisableHotLUT().

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

access to lookup function with packed input and output

Reimplemented from L1MuGMTLUT.

Definition at line 79 of file L1MuGMTLFDisableHotLUT.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 L1MuGMTLFDisableHotLUT::SpecificLookup ( int  idx,
unsigned  eta,
unsigned  phi 
) const [inline]

specific lookup function for entire output field

Definition at line 68 of file L1MuGMTLFDisableHotLUT.h.

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

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

specific lookup function for disable_hot

Definition at line 60 of file L1MuGMTLFDisableHotLUT.h.

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

Referenced by L1MuGMTMatcher::lookup_mq().

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

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

Definition at line 52 of file L1MuGMTLFDisableHotLUT.cc.

Referenced by LookupFunctionPacked().

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

  // TBD: implementation of reading disable-hot configuration

  return 0;
}