test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
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
lumiPlot.lut
tuple lut
Definition:
lumiPlot.py:244
stage2BMTFBufferRaw_cfi.fwVersion
tuple fwVersion
Definition:
stage2BMTFBufferRaw_cfi.py:62
l1t::MicroGMTMatchQualSimpleLUT
Definition:
MicroGMTMatchQualLUT.h:44
l1t::cancel_t
cancel_t
Definition:
MicroGMTMatchQualLUT.h:12
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
l1t::MicroGMTMatchQualLUTFactory::ReturnType
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType
Definition:
MicroGMTLUTFactories.h:29
TauDecayModes.dec
tuple dec
Definition:
TauDecayModes.py:141
Generated for CMSSW Reference Manual by
1.8.5