L1Trigger
L1TMuon
src
MicroGMTCaloIndexSelectionLUTFactory.cc
Go to the documentation of this file.
1
//
7
// This class implements the CaloIndexSelectionLUT 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
MicroGMTCaloIndexSelectionLUTFactory::ReturnType
MicroGMTCaloIndexSelectionLUTFactory::create
(
19
const
std::string
&
filename
,
const
int
type
,
const
int
fwVersion
) {
20
ReturnType
p
;
21
22
if
(
fwVersion
>= 1) {
23
p
= std::make_shared<l1t::MicroGMTCaloIndexSelectionLUT>(
filename
,
type
);
24
}
else
{
25
LogError
(
"MicroGMTCaloIndexSelectionLUTFactory"
)
26
<<
"Invalid firmware version requested: 0x"
<< std::hex <<
fwVersion
<<
std::dec
;
27
}
28
return
p
;
29
}
30
31
MicroGMTCaloIndexSelectionLUTFactory::ReturnType
MicroGMTCaloIndexSelectionLUTFactory::create
(
l1t::LUT
* lut,
32
const
int
type
,
33
const
int
fwVersion
) {
34
ReturnType
p
;
35
36
if
(
fwVersion
>= 1) {
37
p
= std::make_shared<l1t::MicroGMTCaloIndexSelectionLUT>(lut,
type
);
38
}
else
{
39
LogError
(
"MicroGMTCaloIndexSelectionLUTFactory"
)
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
l1t::MicroGMTCaloIndexSelectionLUTFactory::ReturnType
std::shared_ptr< MicroGMTCaloIndexSelectionLUT > ReturnType
Definition:
MicroGMTLUTFactories.h:60
corrVsCorr.filename
filename
Definition:
corrVsCorr.py:123
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
l1t
delete x;
Definition:
CaloConfig.h:22
type
type
Definition:
SiPixelVCal_PayloadInspector.cc:37
MicroGMTLUTFactories.h
edm::LogError
Log< level::Error, false > LogError
Definition:
MessageLogger.h:123
l1t::LUT
Definition:
LUT.h:29
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:143
Generated for CMSSW Reference Manual by
1.8.16