CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions

L1MuGMTLFMergeRankPtQLUT Class Reference

#include <L1MuGMTLFMergeRankPtQLUT.h>

Inheritance diagram for L1MuGMTLFMergeRankPtQLUT:
L1MuGMTLUT

List of all members.

Public Types

enum  { DT, BRPC, CSC, FRPC }

Public Member Functions

 L1MuGMTLFMergeRankPtQLUT ()
 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 q, unsigned pt) const
 specific lookup function for entire output field
unsigned SpecificLookup_rank_ptq (int idx, unsigned q, unsigned pt) const
 specific lookup function for rank_ptq
virtual ~L1MuGMTLFMergeRankPtQLUT ()
 destructor

Private Member Functions

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

Detailed Description

LFMergeRankPtQ look-up table

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

Definition at line 42 of file L1MuGMTLFMergeRankPtQLUT.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
DT 
BRPC 
CSC 
FRPC 

Definition at line 45 of file L1MuGMTLFMergeRankPtQLUT.h.

{DT, BRPC, CSC, FRPC};

Constructor & Destructor Documentation

L1MuGMTLFMergeRankPtQLUT::L1MuGMTLFMergeRankPtQLUT ( ) [inline]

constuctor using function-lookup

Definition at line 48 of file L1MuGMTLFMergeRankPtQLUT.h.

References InitParameters().

                             : L1MuGMTLUT("LFMergeRankPtQ", 
                                       "DT BRPC CSC FRPC",
                                       "q(3) pt(5)",
                                       "rank_ptq(2)", 8, true) {
    InitParameters();
  } ;
virtual L1MuGMTLFMergeRankPtQLUT::~L1MuGMTLFMergeRankPtQLUT ( ) [inline, virtual]

destructor

Definition at line 56 of file L1MuGMTLFMergeRankPtQLUT.h.

{};

Member Function Documentation

void L1MuGMTLFMergeRankPtQLUT::InitParameters ( ) [private]

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

Definition at line 34 of file L1MuGMTLFMergeRankPtQLUT.cc.

Referenced by L1MuGMTLFMergeRankPtQLUT().

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

specific lookup function for entire output field

Definition at line 67 of file L1MuGMTLFMergeRankPtQLUT.h.

References L1MuGMTLUT::LookupPacked(), and lumiQueryAPI::q.

                                                                   {
    std::vector<unsigned> addr(2);
    addr[0] = q;
    addr[1] = pt;
    return LookupPacked(idx, addr);
  };
unsigned L1MuGMTLFMergeRankPtQLUT::SpecificLookup_rank_ptq ( int  idx,
unsigned  q,
unsigned  pt 
) const [inline]

specific lookup function for rank_ptq

Definition at line 59 of file L1MuGMTLFMergeRankPtQLUT.h.

References L1MuGMTLUT::Lookup(), and lumiQueryAPI::q.

Referenced by L1MuGMTMerger::merge_rank().

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

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

Definition at line 41 of file L1MuGMTLFMergeRankPtQLUT.cc.

Referenced by LookupFunctionPacked().

                                                                                            {
  // idx is DT, BRPC, CSC, FRPC
  // INPUTS:  q(3) pt(5)
  // OUTPUTS: rank_ptq(2) 


  // a dependence of the merge rank on pt an quality can be defined, here
  return 0;
}