src
L1Trigger
L1TMuon
src
MicroGMTAbsoluteIsolationCheckLUTFactory.cc
Go to the documentation of this file.
1
//
7
// This class implements the AbsoluteIsolationCheckLUT 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
MicroGMTAbsoluteIsolationCheckLUTFactory::ReturnType
MicroGMTAbsoluteIsolationCheckLUTFactory::create
(
19
const
std::string
&
filename
,
const
int
fwVersion
) {
20
ReturnType
p
;
21
22
if
(
fwVersion
>= 1) {
23
p
= std::make_shared<l1t::MicroGMTAbsoluteIsolationCheckLUT>(
filename
);
24
}
else
{
25
LogError
(
"MicroGMTAbsoluteIsolationCheckLUTFactory"
)
26
<<
"Invalid firmware version requested: 0x"
<< std::hex <<
fwVersion
<<
std::dec
;
27
}
28
return
p
;
29
}
30
31
MicroGMTAbsoluteIsolationCheckLUTFactory::ReturnType
MicroGMTAbsoluteIsolationCheckLUTFactory::create
(
32
l1t::LUT
* lut,
const
int
fwVersion
) {
33
ReturnType
p
;
34
35
if
(
fwVersion
>= 1) {
36
p
= std::make_shared<l1t::MicroGMTAbsoluteIsolationCheckLUT>(lut);
37
}
else
{
38
LogError
(
"MicroGMTAbsoluteIsolationCheckLUTFactory"
)
39
<<
"Invalid firmware version requested: 0x"
<< std::hex <<
fwVersion
<<
std::dec
;
40
}
41
return
p
;
42
}
43
}
// namespace l1t
amcDumpToRaw_cfi.fwVersion
fwVersion
Definition:
amcDumpToRaw_cfi.py:11
MessageLogger.h
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition:
beamerCreator.py:44
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:123
l1t
delete x;
Definition:
CaloConfig.h:22
edm::LogError
Log< level::Error, false > LogError
Definition:
MessageLogger.h:129
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
l1t::LUT
Definition:
LUT.h:29
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
edm
HLT enums.
Definition:
AlignableModifier.h:19
MicroGMTLUTFactories.h
l1t::MicroGMTAbsoluteIsolationCheckLUTFactory::ReturnType
std::shared_ptr< MicroGMTAbsoluteIsolationCheckLUT > ReturnType
Definition:
MicroGMTLUTFactories.h:71
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
Generated for CMSSW Reference Manual by
1.8.14