CMS 3D CMS Logo

MicroGMTRelativeIsolationCheckLUTFactory.cc
Go to the documentation of this file.
1 //
7 // This class implements the RelativeIsolationCheckLUT 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 {
20  ReturnType p;
21 
22  if (fwVersion >= 1) {
23  p = std::make_shared<l1t::MicroGMTRelativeIsolationCheckLUT>(filename);
24  } else {
25  LogError("MicroGMTRelativeIsolationCheckLUTFactory") << "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 = std::make_shared<l1t::MicroGMTRelativeIsolationCheckLUT>(lut);
36  } else {
37  LogError("MicroGMTRelativeIsolationCheckLUTFactory") << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
38  }
39  return p;
40  }
41 }
def create(alignables, pedeDump, additionalData, outputFile, config)
delete x;
Definition: CaloConfig.h:22
std::map< DetId, double > ReturnType
std::shared_ptr< MicroGMTRelativeIsolationCheckLUT > ReturnType
Definition: LUT.h:29
HLT enums.