test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MicroGMTRankPtQualLUTFactory.cc
Go to the documentation of this file.
1 //
7 // This class implements the RankPtQualLUT factory. Based on the firmware
8 // version it selects the appropriate concrete implementation.
9 //
10 
12 
14 
15 using namespace edm;
16 
17 namespace l1t {
19  MicroGMTRankPtQualLUTFactory::create(const std::string& filename, const int fwVersion, const unsigned ptFactor, const unsigned qualFactor) {
20  ReturnType p;
21 
22  if (fwVersion >= 1) {
23  p = ReturnType(new MicroGMTRankPtQualLUT(filename, ptFactor, qualFactor));
24  } else {
25  LogError("MicroGMTRankPtQualLUTFactory") << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
26  }
27  return p;
28  }
29 
32  ReturnType p;
33 
34  if (fwVersion >= 1) {
35  p = ReturnType(new MicroGMTRankPtQualLUT(lut));
36  } else {
37  LogError("MicroGMTRankPtQualLUTFactory") << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
38  }
39  return p;
40  }
41 }
std::map< DetId, double > ReturnType
std::shared_ptr< MicroGMTRankPtQualLUT > ReturnType
tuple lut
Definition: lumiPlot.py:244
Definition: LUT.h:29
tuple filename
Definition: lut2db_cfg.py:20