CMS 3D CMS Logo

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

#include <MicroGMTCaloIndexSelectionLUT.h>

Inheritance diagram for l1t::MicroGMTCaloIndexSelectionLUT:
l1t::MicroGMTLUT l1t::LUT

Public Member Functions

int hashInput (int angle) const
 
int lookup (int angle) const
 
 MicroGMTCaloIndexSelectionLUT ()
 
 MicroGMTCaloIndexSelectionLUT (const std::string &fname, int type)
 
 MicroGMTCaloIndexSelectionLUT (l1t::LUT *lut, int type)
 
void unHashInput (int input, int &angle) const
 
virtual ~MicroGMTCaloIndexSelectionLUT ()
 
- 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_angleInWidth
 

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 8 of file MicroGMTCaloIndexSelectionLUT.h.

Constructor & Destructor Documentation

l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT ( )
inline
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT ( const std::string &  fname,
int  type 
)
explicit

Definition at line 3 of file MicroGMTCaloIndexSelectionLUT.cc.

References l1t::MicroGMTConfiguration::ETA, l1t::MicroGMTLUT::load(), m_angleInWidth, l1t::MicroGMTLUT::m_inputs, l1t::MicroGMTLUT::m_outWidth, l1t::MicroGMTLUT::m_totalInWidth, l1t::MicroGMTConfiguration::PHI, and AlCaHLTBitMon_QueryRunRegistry::string.

3  : MicroGMTLUT()
4 {
6  m_angleInWidth = 9;
7  m_outWidth = 5;
9  } else {
10  m_angleInWidth = 10;
11  m_outWidth = 6;
13  }
14 
16 
17  if (fname != std::string("")) {
18  load(fname);
19  }
20 }
type
Definition: HCALResponse.h:21
unsigned m_totalInWidth
Definition: MicroGMTLUT.h:34
int load(const std::string &inFileName)
Definition: MicroGMTLUT.cc:21
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition: MicroGMTLUT.h:36
string fname
main script
unsigned m_outWidth
Definition: MicroGMTLUT.h:35
l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT ( l1t::LUT lut,
int  type 
)
explicit
virtual l1t::MicroGMTCaloIndexSelectionLUT::~MicroGMTCaloIndexSelectionLUT ( )
inlinevirtual

Definition at line 13 of file MicroGMTCaloIndexSelectionLUT.h.

References angle(), and lookup().

13 {};

Member Function Documentation

int l1t::MicroGMTCaloIndexSelectionLUT::hashInput ( int  angle) const
inline

Definition at line 18 of file MicroGMTCaloIndexSelectionLUT.h.

References angle().

18 { return angle; };
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
int l1t::MicroGMTCaloIndexSelectionLUT::lookup ( int  angle) const

Definition at line 40 of file MicroGMTCaloIndexSelectionLUT.cc.

References l1t::MicroGMTLUT::lookupPacked().

Referenced by ~MicroGMTCaloIndexSelectionLUT().

41 {
42  return lookupPacked(angle);
43 }
virtual int lookupPacked(int input) const
Definition: MicroGMTLUT.cc:37
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void l1t::MicroGMTCaloIndexSelectionLUT::unHashInput ( int  input,
int &  angle 
) const
inline

Definition at line 19 of file MicroGMTCaloIndexSelectionLUT.h.

References input.

19 { angle = input; }
static std::string const input
Definition: EdmProvDump.cc:44
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11

Member Data Documentation

int l1t::MicroGMTCaloIndexSelectionLUT::m_angleInWidth
private

Definition at line 21 of file MicroGMTCaloIndexSelectionLUT.h.

Referenced by MicroGMTCaloIndexSelectionLUT().