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  getParameters(iConfig, setName.c_str(), type);
5 }
6 
8  getParameters(iConfig, setName, type);
9 
10 }
11 
12 void
13 l1t::MicroGMTCaloIndexSelectionLUT::getParameters (const edm::ParameterSet& iConfig, const char* setName, int type) {
15  if (type == 0) {
16  m_angleInWidth = config.getParameter<int>("eta_in_width");
17  } else {
18  m_angleInWidth = config.getParameter<int>("phi_in_width");
19  }
20 
21  m_totalInWidth = m_angleInWidth;
22  std::string m_fname = config.getParameter<std::string>("filename");
23  if (m_fname != std::string("")) {
24  load(m_fname);
25  }
26 
27  m_inputs.push_back(MicroGMTConfiguration::PT);
28  m_inputs.push_back(MicroGMTConfiguration::ETA);
29 }
30 
31 
33 {
34 
35 }
36 
37 
38 int
40 {
41  return lookupPacked(angle);
42 }
type
Definition: HCALResponse.h:21
T getParameter(std::string const &) const
MicroGMTCaloIndexSelectionLUT(const edm::ParameterSet &iConfig, const std::string &setName, int type)
def getParameters
Definition: cfg-viewer.py:438
def load
Definition: svgfig.py:546
void getParameters(const edm::ParameterSet &iConfig, const char *setName, int type)
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11