CMS 3D CMS Logo

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  const int fwVersion,
20  const unsigned ptFactor,
21  const unsigned qualFactor) {
22  ReturnType p;
23 
24  if (fwVersion >= 1) {
25  p = std::make_shared<l1t::MicroGMTRankPtQualLUT>(filename, ptFactor, qualFactor);
26  } else {
27  LogError("MicroGMTRankPtQualLUTFactory")
28  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
29  }
30  return p;
31  }
32 
34  ReturnType p;
35 
36  if (fwVersion >= 1) {
37  p = std::make_shared<l1t::MicroGMTRankPtQualLUT>(lut);
38  } else {
39  LogError("MicroGMTRankPtQualLUTFactory")
40  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
41  }
42  return p;
43  }
44 } // namespace l1t
amcDumpToRaw_cfi.fwVersion
fwVersion
Definition: amcDumpToRaw_cfi.py:11
MessageLogger.h
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition: beamerCreator.py:44
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
l1t::MicroGMTRankPtQualLUTFactory::ReturnType
std::shared_ptr< MicroGMTRankPtQualLUT > ReturnType
Definition: MicroGMTLUTFactories.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogError
Definition: MessageLogger.h:183
l1t
delete x;
Definition: CaloConfig.h:22
MicroGMTLUTFactories.h
l1t::LUT
Definition: LUT.h:29
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143