Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
19
MicroGMTCaloIndexSelectionLUTFactory::create
(
const
std::string
&
filename
,
const
int
type
,
const
int
fwVersion
) {
20
ReturnType
p
;
21
22
if
(fwVersion >= 1) {
23
p =
ReturnType
(
new
MicroGMTCaloIndexSelectionLUT
(filename, type));
24
}
else
{
25
LogError
(
"MicroGMTCaloIndexSelectionLUTFactory"
) <<
"Invalid firmware version requested: 0x"
<< std::hex << fwVersion <<
std::dec
;
26
}
27
return
p
;
28
}
29
30
MicroGMTCaloIndexSelectionLUTFactory::ReturnType
31
MicroGMTCaloIndexSelectionLUTFactory::create
(
l1t::LUT
*
lut
,
const
int
type
,
const
int
fwVersion
) {
32
ReturnType
p
;
33
34
if
(fwVersion >= 1) {
35
p =
ReturnType
(
new
MicroGMTCaloIndexSelectionLUT
(lut, type));
36
}
else
{
37
LogError
(
"MicroGMTCaloIndexSelectionLUTFactory"
) <<
"Invalid firmware version requested: 0x"
<< std::hex << fwVersion <<
std::dec
;
38
}
39
return
p
;
40
}
41
}
type
type
Definition:
HCALResponse.h:21
MessageLogger.h
l1t::MicroGMTCaloIndexSelectionLUTFactory::ReturnType
std::shared_ptr< MicroGMTCaloIndexSelectionLUT > ReturnType
Definition:
MicroGMTLUTFactories.h:51
beamerCreator.create
def create
Definition:
beamerCreator.py:47
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::LogError
Definition:
MessageLogger.h:164
ecaldqm::ReturnType
std::map< DetId, double > ReturnType
Definition:
DBReaderWorkers.cc:55
l1t::MicroGMTCaloIndexSelectionLUT
Definition:
MicroGMTCaloIndexSelectionLUT.h:8
lumiPlot.lut
tuple lut
Definition:
lumiPlot.py:244
stage2BMTFBufferRaw_cfi.fwVersion
tuple fwVersion
Definition:
stage2BMTFBufferRaw_cfi.py:62
l1t::LUT
Definition:
LUT.h:29
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
lut2db_cfg.filename
tuple filename
Definition:
lut2db_cfg.py:20
MicroGMTLUTFactories.h
TauDecayModes.dec
tuple dec
Definition:
TauDecayModes.py:141
Generated for CMSSW Reference Manual by
1.8.5