CMS 3D CMS Logo

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

#include <MicroGMTLUTFactories.h>

Public Types

typedef std::shared_ptr< MicroGMTRankPtQualLUTReturnType
 

Public Member Functions

 MicroGMTRankPtQualLUTFactory ()
 
 ~MicroGMTRankPtQualLUTFactory ()
 

Static Public Member Functions

static ReturnType create (const std::string &filename, const int fwVersion, const unsigned ptFactor, const unsigned qualFactor)
 
static ReturnType create (l1t::LUT *lut, const int fwVersion)
 

Detailed Description

Author
: Thomas Reis

Definition at line 15 of file MicroGMTLUTFactories.h.

Member Typedef Documentation

◆ ReturnType

Definition at line 18 of file MicroGMTLUTFactories.h.

Constructor & Destructor Documentation

◆ MicroGMTRankPtQualLUTFactory()

l1t::MicroGMTRankPtQualLUTFactory::MicroGMTRankPtQualLUTFactory ( )
inline

Definition at line 17 of file MicroGMTLUTFactories.h.

17 {};

◆ ~MicroGMTRankPtQualLUTFactory()

l1t::MicroGMTRankPtQualLUTFactory::~MicroGMTRankPtQualLUTFactory ( )
inline

Definition at line 18 of file MicroGMTLUTFactories.h.

18 {};

Member Function Documentation

◆ create() [1/2]

MicroGMTRankPtQualLUTFactory::ReturnType l1t::MicroGMTRankPtQualLUTFactory::create ( const std::string &  filename,
const int  fwVersion,
const unsigned  ptFactor,
const unsigned  qualFactor 
)
static

Definition at line 18 of file MicroGMTRankPtQualLUTFactory.cc.

21  {
22  ReturnType p;
23 
24  if (fwVersion >= 1) {
25  p = std::make_shared<l1t::MicroGMTRankPtQualLUT>(filename, ptFactor, qualFactor);
26  } else {
27  LogError("MicroGMTRankPtQualLUTFactory")
28  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
29  }
30  return p;
31  }

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

Referenced by L1TMicroGMTLUTDumper::beginRun(), L1TMuonProducer::beginRun(), and L1TMuonGlobalParamsESProducer::L1TMuonGlobalParamsESProducer().

◆ create() [2/2]

MicroGMTRankPtQualLUTFactory::ReturnType l1t::MicroGMTRankPtQualLUTFactory::create ( l1t::LUT lut,
const int  fwVersion 
)
static

Definition at line 33 of file MicroGMTRankPtQualLUTFactory.cc.

33  {
34  ReturnType p;
35 
36  if (fwVersion >= 1) {
37  p = std::make_shared<l1t::MicroGMTRankPtQualLUT>(lut);
38  } else {
39  LogError("MicroGMTRankPtQualLUTFactory")
40  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
41  }
42  return p;
43  }

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

amcDumpToRaw_cfi.fwVersion
fwVersion
Definition: amcDumpToRaw_cfi.py:11
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
l1t::MicroGMTRankPtQualLUTFactory::ReturnType
std::shared_ptr< MicroGMTRankPtQualLUT > ReturnType
Definition: MicroGMTLUTFactories.h:18
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142