CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions
l1t::MicroGMTMatchQualLUTFactory Class Reference

#include <MicroGMTLUTFactories.h>

Public Types

typedef std::shared_ptr< MicroGMTMatchQualLUTReturnType
 

Public Member Functions

 MicroGMTMatchQualLUTFactory ()
 
 ~MicroGMTMatchQualLUTFactory ()
 

Static Public Member Functions

static ReturnType create (const std::string &filename, const double maxDR, const double fEta, const double fEtaCoarse, const double fPhi, cancel_t cancelType, const int fwVersion)
 
static ReturnType create (l1t::LUT *lut, cancel_t cancelType, const int fwVersion)
 

Detailed Description

Author
: Thomas Reis

Definition at line 29 of file MicroGMTLUTFactories.h.

Member Typedef Documentation

◆ ReturnType

Definition at line 32 of file MicroGMTLUTFactories.h.

Constructor & Destructor Documentation

◆ MicroGMTMatchQualLUTFactory()

l1t::MicroGMTMatchQualLUTFactory::MicroGMTMatchQualLUTFactory ( )
inline

Definition at line 31 of file MicroGMTLUTFactories.h.

31 {};

◆ ~MicroGMTMatchQualLUTFactory()

l1t::MicroGMTMatchQualLUTFactory::~MicroGMTMatchQualLUTFactory ( )
inline

Definition at line 32 of file MicroGMTLUTFactories.h.

32 {};

Member Function Documentation

◆ create() [1/2]

MicroGMTMatchQualLUTFactory::ReturnType l1t::MicroGMTMatchQualLUTFactory::create ( const std::string &  filename,
const double  maxDR,
const double  fEta,
const double  fEtaCoarse,
const double  fPhi,
cancel_t  cancelType,
const int  fwVersion 
)
static

Definition at line 18 of file MicroGMTMatchQualLUTFactory.cc.

24  {
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  }

References TauDecayModes::dec, corrVsCorr::filename, amcDumpToRaw_cfi::fwVersion, jets_cff::maxDR, and AlCaHLTBitMon_ParallelJobs::p.

Referenced by L1TMicroGMTLUTDumper::beginRun(), l1t::MicroGMTCancelOutUnit::initialise(), and L1TMuonGlobalParamsESProducer::L1TMuonGlobalParamsESProducer().

◆ create() [2/2]

MicroGMTMatchQualLUTFactory::ReturnType l1t::MicroGMTMatchQualLUTFactory::create ( l1t::LUT lut,
cancel_t  cancelType,
const int  fwVersion 
)
static

Definition at line 38 of file MicroGMTMatchQualLUTFactory.cc.

40  {
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  }

References TauDecayModes::dec, amcDumpToRaw_cfi::fwVersion, and AlCaHLTBitMon_ParallelJobs::p.

amcDumpToRaw_cfi.fwVersion
fwVersion
Definition: amcDumpToRaw_cfi.py:11
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
l1t::MicroGMTMatchQualLUTFactory::ReturnType
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType
Definition: MicroGMTLUTFactories.h:32
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
jets_cff.maxDR
maxDR
Definition: jets_cff.py:126
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143