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
 
 ~MicroGMTCaloIndexSelectionLUT () 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_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

◆ MicroGMTCaloIndexSelectionLUT() [1/3]

l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT ( )
inline

Definition at line 10 of file MicroGMTCaloIndexSelectionLUT.h.

10 {};

◆ MicroGMTCaloIndexSelectionLUT() [2/3]

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

◆ MicroGMTCaloIndexSelectionLUT() [3/3]

l1t::MicroGMTCaloIndexSelectionLUT::MicroGMTCaloIndexSelectionLUT ( l1t::LUT lut,
int  type 
)
explicit

◆ ~MicroGMTCaloIndexSelectionLUT()

l1t::MicroGMTCaloIndexSelectionLUT::~MicroGMTCaloIndexSelectionLUT ( )
inlineoverride

Definition at line 13 of file MicroGMTCaloIndexSelectionLUT.h.

13 {};

Member Function Documentation

◆ hashInput()

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

Definition at line 18 of file MicroGMTCaloIndexSelectionLUT.h.

18 { return angle; };

References angle().

◆ lookup()

int l1t::MicroGMTCaloIndexSelectionLUT::lookup ( int  angle) const

Definition at line 37 of file MicroGMTCaloIndexSelectionLUT.cc.

37 { return lookupPacked(angle); }

References angle().

◆ unHashInput()

void l1t::MicroGMTCaloIndexSelectionLUT::unHashInput ( int  input,
int &  angle 
) const
inline

Definition at line 19 of file MicroGMTCaloIndexSelectionLUT.h.

19 { angle = input; }

References angle(), and input.

Member Data Documentation

◆ m_angleInWidth

int l1t::MicroGMTCaloIndexSelectionLUT::m_angleInWidth
private

Definition at line 22 of file MicroGMTCaloIndexSelectionLUT.h.

Referenced by MicroGMTCaloIndexSelectionLUT().

input
static const std::string input
Definition: EdmProvDump.cc:48
l1t::MicroGMTConfiguration::PHI
Definition: MicroGMTConfiguration.h:22
l1t::MicroGMTLUT::lookupPacked
virtual int lookupPacked(int input) const
Definition: MicroGMTLUT.cc:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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::MicroGMTLUT::load
int load(const std::string &inFileName)
Definition: MicroGMTLUT.cc:15
l1t::MicroGMTLUT::m_outWidth
unsigned m_outWidth
Definition: MicroGMTLUT.h:35
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
type
type
Definition: HCALResponse.h:21
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
l1t::MicroGMTCaloIndexSelectionLUT::m_angleInWidth
int m_angleInWidth
Definition: MicroGMTCaloIndexSelectionLUT.h:22
l1t::MicroGMTLUT::m_inputs
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition: MicroGMTLUT.h:36
l1t::MicroGMTConfiguration::ETA
Definition: MicroGMTConfiguration.h:23