Main Page
Namespaces
Classes
Package Documentation
L1Trigger
L1TMuon
src
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
11
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
12
13
#include "
L1Trigger/L1TMuon/interface/MicroGMTLUTFactories.h
"
14
15
using namespace
edm
;
16
17
namespace
l1t
{
18
MicroGMTMatchQualLUTFactory::ReturnType
MicroGMTMatchQualLUTFactory::create
(
19
const
std::string
&
filename
,
const
double
maxDR
,
const
double
fEta,
const
double
fEtaCoarse,
20
const
double
fPhi,
cancel_t
cancelType,
const
int
fwVersion
) {
21
ReturnType
p
;
22
23
if
(fwVersion == 1) {
24
p =
ReturnType
(
new
MicroGMTMatchQualSimpleLUT
(
25
filename, maxDR, fEtaCoarse, fPhi, cancelType));
26
}
else
if
(fwVersion >= 0x2020000) {
27
p =
ReturnType
(
new
MicroGMTMatchQualFineLUT
(
28
filename, maxDR, fEta, fEtaCoarse, fPhi, cancelType));
29
}
else
{
30
LogError
(
"MicroGMTMatchQualLUTFactory"
)
31
<<
"Invalid firmware version requested: 0x"
<< std::hex << fwVersion <<
std::dec
;
32
}
33
return
p
;
34
}
35
36
MicroGMTMatchQualLUTFactory::ReturnType
37
MicroGMTMatchQualLUTFactory::create
(
l1t::LUT
*
lut
,
cancel_t
cancelType,
const
int
fwVersion
) {
38
ReturnType
p
;
39
40
if
(fwVersion == 1) {
41
p =
ReturnType
(
new
MicroGMTMatchQualSimpleLUT
(lut, cancelType));
42
}
else
if
(fwVersion >= 0x2020000) {
43
p =
ReturnType
(
new
MicroGMTMatchQualFineLUT
(lut, cancelType));
44
}
else
{
45
LogError
(
"MicroGMTMatchQualLUTFactory"
) <<
"Invalid firmware version requested: 0x"
<< std::hex << fwVersion <<
std::dec
;
46
}
47
return
p
;
48
}
49
}
l1t::MicroGMTMatchQualFineLUT
Definition:
MicroGMTMatchQualLUT.h:58
MessageLogger.h
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition:
beamerCreator.py:43
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:121
l1t
delete x;
Definition:
CaloConfig.h:22
jets_cff.maxDR
maxDR
Definition:
jets_cff.py:117
edm::LogError
Definition:
MessageLogger.h:174
ecaldqm::ReturnType
std::map< DetId, double > ReturnType
Definition:
DBReaderWorkers.cc:55
l1t::MicroGMTMatchQualSimpleLUT
Definition:
MicroGMTMatchQualLUT.h:44
l1t::cancel_t
cancel_t
Definition:
MicroGMTMatchQualLUT.h:12
l1t::LUT
Definition:
LUT.h:29
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
edm
HLT enums.
Definition:
AlignableModifier.h:17
MicroGMTLUTFactories.h
hgcalDigitizer_cfi.fwVersion
fwVersion
Definition:
hgcalDigitizer_cfi.py:51
lumiPlot.lut
lut
Definition:
lumiPlot.py:244
l1t::MicroGMTMatchQualLUTFactory::ReturnType
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType
Definition:
MicroGMTLUTFactories.h:29
Generated for CMSSW Reference Manual by
1.8.11