CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
22 int
24 {
25  return lookupPacked(angle);
26 }
type
Definition: HCALResponse.h:21
unsigned m_totalInWidth
Definition: MicroGMTLUT.h:33
int load(const std::string &inFileName)
Definition: MicroGMTLUT.cc:14
std::vector< MicroGMTConfiguration::input_t > m_inputs
Definition: MicroGMTLUT.h:35
string fname
main script
unsigned m_outWidth
Definition: MicroGMTLUT.h:34
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11