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 34 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.

References TauDecayModes::dec, l1ScoutingRun3::ugmt::fEta(), corrVsCorr::filename, l1ScoutingRun3::ugmt::fPhi(), amcDumpToRaw_cfi::fwVersion, L1TPhase2MuonOffline_cfi::maxDR, and AlCaHLTBitMon_ParallelJobs::p.

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

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  }
Log< level::Error, false > LogError
float fPhi(int hwPhi)
Definition: conversion.h:18
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType
float fEta(int hwEta)
Definition: conversion.h:17

◆ 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.

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

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  }
Log< level::Error, false > LogError
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType