CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

L1MuGMTLFPtMixLUT Class Reference

#include <L1MuGMTLFPtMixLUT.h>

Inheritance diagram for L1MuGMTLFPtMixLUT:
L1MuGMTLUT

List of all members.

Public Types

enum  { DTRPC, CSCRPC }

Public Member Functions

 L1MuGMTLFPtMixLUT ()
 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 pt_dtcsc, unsigned pt_rpc) const
 specific lookup function for entire output field
unsigned SpecificLookup_pt_mixed (int idx, unsigned pt_dtcsc, unsigned pt_rpc) const
 specific lookup function for pt_mixed
virtual ~L1MuGMTLFPtMixLUT ()
 destructor

Private Member Functions

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

Detailed Description

LFPtMix look-up table

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

Definition at line 42 of file L1MuGMTLFPtMixLUT.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
DTRPC 
CSCRPC 

Definition at line 45 of file L1MuGMTLFPtMixLUT.h.


Constructor & Destructor Documentation

L1MuGMTLFPtMixLUT::L1MuGMTLFPtMixLUT ( ) [inline]

constuctor using function-lookup

Definition at line 48 of file L1MuGMTLFPtMixLUT.h.

References InitParameters().

                      : L1MuGMTLUT("LFPtMix", 
                                       "DTRPC CSCRPC",
                                       "pt_dtcsc(5) pt_rpc(5)",
                                       "pt_mixed(5)", 9, false) {
    InitParameters();
  } ;
virtual L1MuGMTLFPtMixLUT::~L1MuGMTLFPtMixLUT ( ) [inline, virtual]

destructor

Definition at line 56 of file L1MuGMTLFPtMixLUT.h.

{};

Member Function Documentation

void L1MuGMTLFPtMixLUT::InitParameters ( ) [private]

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

Definition at line 34 of file L1MuGMTLFPtMixLUT.cc.

Referenced by L1MuGMTLFPtMixLUT().

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

specific lookup function for entire output field

Definition at line 67 of file L1MuGMTLFPtMixLUT.h.

References L1MuGMTLUT::LookupPacked().

                                                                              {
    std::vector<unsigned> addr(2);
    addr[0] = pt_dtcsc;
    addr[1] = pt_rpc;
    return LookupPacked(idx, addr);
  };
unsigned L1MuGMTLFPtMixLUT::SpecificLookup_pt_mixed ( int  idx,
unsigned  pt_dtcsc,
unsigned  pt_rpc 
) const [inline]

specific lookup function for pt_mixed

Definition at line 59 of file L1MuGMTLFPtMixLUT.h.

References L1MuGMTLUT::Lookup().

Referenced by L1MuGMTMerger::createMergedCand().

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

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

Definition at line 41 of file L1MuGMTLFPtMixLUT.cc.

Referenced by LookupFunctionPacked().

                                                                                                {
  // idx is DTRPC, CSCRPC
  // INPUTS:  pt_dtcsc(5) pt_rpc(5)
  // OUTPUTS: pt_mixed(5) 


  // choosing maximum pt
  
  return pt_dtcsc < pt_rpc ? pt_rpc : pt_dtcsc;
}