CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::MicroGMTExtrapolationLUT Class Reference

#include <MicroGMTExtrapolationLUT.h>

Inheritance diagram for l1t::MicroGMTExtrapolationLUT:
l1t::MicroGMTLUT l1t::LUT

Public Member Functions

int getEtaRedInWidth () const
 
int getPtRedInWidth () const
 
int hashInput (int angle, int pt) const
 
int lookup (int angle, int pt) const
 
 MicroGMTExtrapolationLUT ()
 
 MicroGMTExtrapolationLUT (const std::string &fname, const int outWidth, const int etaRedInWidth, const int ptRedInWidth)
 
 MicroGMTExtrapolationLUT (l1t::LUT *lut, const int outWidth, const int etaRedInWidth, const int ptRedInWidth)
 
void unHashInput (int input, int &angle, int &pt) const
 
 ~MicroGMTExtrapolationLUT () override
 
- Public Member Functions inherited from l1t::MicroGMTLUT
int checkedInput (unsigned in, unsigned maxWidth) const
 
void initialize ()
 
int load (const std::string &inFileName)
 
virtual int lookupPacked (int input) const
 
 MicroGMTLUT ()
 
 MicroGMTLUT (l1t::LUT *lut)
 
void save (std::ofstream &output)
 
virtual ~MicroGMTLUT ()
 
- Public Member Functions inherited from l1t::LUT
int data (unsigned int address) const
 
bool empty () const
 
 LUT ()
 
 LUT (std::istream &stream)
 
unsigned int maxSize () const
 
unsigned int nrBitsAddress () const
 
unsigned int nrBitsData () const
 
int read (std::istream &stream)
 
void write (std::ostream &stream) const
 
 ~LUT ()
 

Private Attributes

int m_etaRedInWidth
 
int m_etaRedMask
 
int m_ptRedInWidth
 
int m_ptRedMask
 

Additional Inherited Members

- Public Types inherited from l1t::LUT
enum  ReadCodes {
  SUCCESS = 0, NO_ENTRIES = 1, DUP_ENTRIES = 2, MISS_ENTRIES = 3,
  MAX_ADDRESS_OUTOFRANGE = 4, NO_HEADER = 5
}
 
- Protected Attributes inherited from l1t::MicroGMTLUT
bool m_initialized
 
std::vector< MicroGMTConfiguration::input_tm_inputs
 
unsigned m_outWidth
 
unsigned m_totalInWidth
 

Detailed Description

Definition at line 10 of file MicroGMTExtrapolationLUT.h.

Constructor & Destructor Documentation

◆ MicroGMTExtrapolationLUT() [1/3]

l1t::MicroGMTExtrapolationLUT::MicroGMTExtrapolationLUT ( )
inline

Definition at line 12 of file MicroGMTExtrapolationLUT.h.

12 {};

◆ MicroGMTExtrapolationLUT() [2/3]

l1t::MicroGMTExtrapolationLUT::MicroGMTExtrapolationLUT ( const std::string &  fname,
const int  outWidth,
const int  etaRedInWidth,
const int  ptRedInWidth 
)
explicit

◆ MicroGMTExtrapolationLUT() [3/3]

l1t::MicroGMTExtrapolationLUT::MicroGMTExtrapolationLUT ( l1t::LUT lut,
const int  outWidth,
const int  etaRedInWidth,
const int  ptRedInWidth 
)
explicit

◆ ~MicroGMTExtrapolationLUT()

l1t::MicroGMTExtrapolationLUT::~MicroGMTExtrapolationLUT ( )
inlineoverride

Definition at line 21 of file MicroGMTExtrapolationLUT.h.

21 {};

Member Function Documentation

◆ getEtaRedInWidth()

int l1t::MicroGMTExtrapolationLUT::getEtaRedInWidth ( ) const

Definition at line 62 of file MicroGMTExtrapolationLUT.cc.

62 { return m_etaRedInWidth; }

◆ getPtRedInWidth()

int l1t::MicroGMTExtrapolationLUT::getPtRedInWidth ( ) const

Definition at line 64 of file MicroGMTExtrapolationLUT.cc.

64 { return m_ptRedInWidth; }

◆ hashInput()

int l1t::MicroGMTExtrapolationLUT::hashInput ( int  angle,
int  pt 
) const

Definition at line 50 of file MicroGMTExtrapolationLUT.cc.

50  {
51  int result = 0;
53  result += pt;
54  return result;
55 }

References PVValHelper::eta, DiDispStaMuonMonitor_cfi::pt, and mps_fire::result.

◆ lookup()

int l1t::MicroGMTExtrapolationLUT::lookup ( int  angle,
int  pt 
) const

Definition at line 39 of file MicroGMTExtrapolationLUT.cc.

39  {
40  // normalize these two to the same scale and then calculate?
41  if (m_initialized) {
42  // unsigned eta_twocomp = MicroGMTConfiguration::getTwosComp(eta, m_etaRedInWidth);
44  }
45  int result = 0;
46  // normalize to out width
47  return result;
48 }

References PVValHelper::eta, DiDispStaMuonMonitor_cfi::pt, and mps_fire::result.

◆ unHashInput()

void l1t::MicroGMTExtrapolationLUT::unHashInput ( int  input,
int &  angle,
int &  pt 
) const

Definition at line 57 of file MicroGMTExtrapolationLUT.cc.

57  {
58  pt = input & m_ptRedMask;
60 }

References PVValHelper::eta, input, and DiDispStaMuonMonitor_cfi::pt.

Member Data Documentation

◆ m_etaRedInWidth

int l1t::MicroGMTExtrapolationLUT::m_etaRedInWidth
private

Definition at line 33 of file MicroGMTExtrapolationLUT.h.

Referenced by MicroGMTExtrapolationLUT().

◆ m_etaRedMask

int l1t::MicroGMTExtrapolationLUT::m_etaRedMask
private

Definition at line 36 of file MicroGMTExtrapolationLUT.h.

Referenced by MicroGMTExtrapolationLUT().

◆ m_ptRedInWidth

int l1t::MicroGMTExtrapolationLUT::m_ptRedInWidth
private

Definition at line 34 of file MicroGMTExtrapolationLUT.h.

Referenced by MicroGMTExtrapolationLUT().

◆ m_ptRedMask

int l1t::MicroGMTExtrapolationLUT::m_ptRedMask
private

Definition at line 37 of file MicroGMTExtrapolationLUT.h.

Referenced by MicroGMTExtrapolationLUT().

input
static const std::string input
Definition: EdmProvDump.cc:48
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
l1t::MicroGMTLUT::lookupPacked
virtual int lookupPacked(int input) const
Definition: MicroGMTLUT.cc:30
PVValHelper::eta
Definition: PVValidationHelpers.h:69
l1t::MicroGMTConfiguration::PT
Definition: MicroGMTConfiguration.h:20
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
l1t::MicroGMTExtrapolationLUT::m_etaRedMask
int m_etaRedMask
Definition: MicroGMTExtrapolationLUT.h:36
l1t::MicroGMTLUT::checkedInput
int checkedInput(unsigned in, unsigned maxWidth) const
Definition: MicroGMTLUT.cc:51
l1t::MicroGMTLUT::m_initialized
bool m_initialized
Definition: MicroGMTLUT.h:37
l1t::MicroGMTLUT::m_totalInWidth
unsigned m_totalInWidth
Definition: MicroGMTLUT.h:34
l1t::MicroGMTLUT::MicroGMTLUT
MicroGMTLUT()
Definition: MicroGMTLUT.h:16
l1t::MicroGMTExtrapolationLUT::m_ptRedInWidth
int m_ptRedInWidth
Definition: MicroGMTExtrapolationLUT.h:34
l1t::MicroGMTLUT::load
int load(const std::string &inFileName)
Definition: MicroGMTLUT.cc:15
l1t::MicroGMTLUT::m_outWidth
unsigned m_outWidth
Definition: MicroGMTLUT.h:35
l1t::MicroGMTExtrapolationLUT::m_etaRedInWidth
int m_etaRedInWidth
Definition: MicroGMTExtrapolationLUT.h:33
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
l1t::MicroGMTLUT::m_inputs
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition: MicroGMTLUT.h:36
l1t::MicroGMTExtrapolationLUT::m_ptRedMask
int m_ptRedMask
Definition: MicroGMTExtrapolationLUT.h:37
mps_fire.result
result
Definition: mps_fire.py:303
l1t::MicroGMTConfiguration::ETA_COARSE
Definition: MicroGMTConfiguration.h:24
l1t::MicroGMTExtrapolationLUT::hashInput
int hashInput(int angle, int pt) const
Definition: MicroGMTExtrapolationLUT.cc:50