CMS 3D CMS Logo

MicroGMTCaloIndexSelectionLUT.cc
Go to the documentation of this file.
1 #include "../interface/MicroGMTCaloIndexSelectionLUT.h"
2 
4 {
5  if (type == MicroGMTConfiguration::ETA) {
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 }
21 
23 {
24  if (type == MicroGMTConfiguration::ETA) {
25  m_angleInWidth = 9;
26  m_outWidth = 5;
28  } else {
29  m_angleInWidth = 10;
30  m_outWidth = 6;
32  }
33 
35 
36  m_initialized = true;
37 }
38 
39 int
41 {
42  return lookupPacked(angle);
43 }
type
Definition: HCALResponse.h:21
unsigned m_totalInWidth
Definition: MicroGMTLUT.h:34
int load(const std::string &inFileName)
Definition: MicroGMTLUT.cc:21
virtual int lookupPacked(int input) const
Definition: MicroGMTLUT.cc:37
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition: MicroGMTLUT.h:36
Definition: LUT.h:29
string fname
main script
unsigned m_outWidth
Definition: MicroGMTLUT.h:35
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11