CMS 3D CMS Logo

MicroGMTAbsoluteIsolationCheckLUT.cc
Go to the documentation of this file.
2 
4 {
6  m_outWidth = 1;
7 
8  if (fname != std::string("")) {
9  load(fname);
10  }
11 
13 }
14 
16 {
18  m_outWidth = 1;
19 
21  m_initialized = true;
22 }
23 
24 int
26 {
27  return lookupPacked(checkedInput(energySum, m_energySumInWidth));
28 }
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
int checkedInput(unsigned in, unsigned maxWidth) const
Definition: MicroGMTLUT.cc:62
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
double energySum(const DataFrame &df, int fs, int ls)