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
(
const
std::string
&
filename
,
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
38
MicroGMTMatchQualLUTFactory::ReturnType
MicroGMTMatchQualLUTFactory::create
(
l1t::LUT
* lut,
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
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
l1t::MicroGMTMatchQualFineLUT
Definition:
MicroGMTMatchQualLUT.h:66
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::MicroGMTMatchQualLUTFactory::ReturnType
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType
Definition:
MicroGMTLUTFactories.h:32
MicroGMTLUTFactories.h
edm::LogError
Log< level::Error, false > LogError
Definition:
MessageLogger.h:123
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
l1t::LUT
Definition:
LUT.h:29
l1t::MicroGMTMatchQualSimpleLUT
Definition:
MicroGMTMatchQualLUT.h:51
jets_cff.maxDR
maxDR
Definition:
jets_cff.py:130
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
Generated for CMSSW Reference Manual by
1.8.16