CMS 3D CMS Logo

MicroGMTMatchQualLUTFactory.cc
Go to the documentation of this file.
1 //
7 // This class implements the MatchQualLUT 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 double maxDR,
20  const double fEta,
21  const double fEtaCoarse,
22  const double fPhi,
23  cancel_t cancelType,
24  const int fwVersion) {
25  ReturnType p;
26 
27  if (fwVersion == 1) {
28  p = ReturnType(new MicroGMTMatchQualSimpleLUT(filename, maxDR, fEtaCoarse, fPhi, cancelType));
29  } else if (fwVersion >= 0x2020000) {
30  p = ReturnType(new MicroGMTMatchQualFineLUT(filename, maxDR, fEta, fEtaCoarse, fPhi, cancelType));
31  } else {
32  LogError("MicroGMTMatchQualLUTFactory")
33  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
34  }
35  return p;
36  }
37 
39  cancel_t cancelType,
40  const int fwVersion) {
41  ReturnType p;
42 
43  if (fwVersion == 1) {
44  p = ReturnType(new MicroGMTMatchQualSimpleLUT(lut, cancelType));
45  } else if (fwVersion >= 0x2020000) {
46  p = ReturnType(new MicroGMTMatchQualFineLUT(lut, cancelType));
47  } else {
48  LogError("MicroGMTMatchQualLUTFactory")
49  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
50  }
51  return p;
52  }
53 } // namespace l1t
amcDumpToRaw_cfi.fwVersion
fwVersion
Definition: amcDumpToRaw_cfi.py:11
MessageLogger.h
edm
HLT enums.
Definition: AlignableModifier.h:19
l1t::cancel_t
cancel_t
Definition: MicroGMTMatchQualLUT.h:11
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition: beamerCreator.py:44
ecaldqm::ReturnType
std::map< DetId, double > ReturnType
Definition: DBReaderWorkers.cc:54
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
l1t::MicroGMTMatchQualFineLUT
Definition: MicroGMTMatchQualLUT.h:66
edm::LogError
Definition: MessageLogger.h:183
l1t
delete x;
Definition: CaloConfig.h:22
l1t::MicroGMTMatchQualLUTFactory::ReturnType
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType
Definition: MicroGMTLUTFactories.h:32
MicroGMTLUTFactories.h
hltEgammaEleL1TrkIsoL1Seeded_cfi.maxDR
maxDR
Definition: hltEgammaEleL1TrkIsoL1Seeded_cfi.py:10
l1t::LUT
Definition: LUT.h:29
l1t::MicroGMTMatchQualSimpleLUT
Definition: MicroGMTMatchQualLUT.h:51
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143