CMS 3D CMS Logo

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

#include <MicroGMTLUTFactories.h>

Public Types

typedef std::shared_ptr< MicroGMTAbsoluteIsolationCheckLUTReturnType
 

Public Member Functions

 MicroGMTAbsoluteIsolationCheckLUTFactory ()
 
 ~MicroGMTAbsoluteIsolationCheckLUTFactory ()
 

Static Public Member Functions

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

Detailed Description

Author
: Thomas Reis

Definition at line 68 of file MicroGMTLUTFactories.h.

Member Typedef Documentation

◆ ReturnType

Definition at line 71 of file MicroGMTLUTFactories.h.

Constructor & Destructor Documentation

◆ MicroGMTAbsoluteIsolationCheckLUTFactory()

l1t::MicroGMTAbsoluteIsolationCheckLUTFactory::MicroGMTAbsoluteIsolationCheckLUTFactory ( )
inline

Definition at line 70 of file MicroGMTLUTFactories.h.

70 {};

◆ ~MicroGMTAbsoluteIsolationCheckLUTFactory()

l1t::MicroGMTAbsoluteIsolationCheckLUTFactory::~MicroGMTAbsoluteIsolationCheckLUTFactory ( )
inline

Definition at line 71 of file MicroGMTLUTFactories.h.

71 {};

Member Function Documentation

◆ create() [1/2]

MicroGMTAbsoluteIsolationCheckLUTFactory::ReturnType l1t::MicroGMTAbsoluteIsolationCheckLUTFactory::create ( const std::string &  filename,
const int  fwVersion 
)
static

Definition at line 18 of file MicroGMTAbsoluteIsolationCheckLUTFactory.cc.

19  {
20  ReturnType p;
21 
22  if (fwVersion >= 1) {
23  p = std::make_shared<l1t::MicroGMTAbsoluteIsolationCheckLUT>(filename);
24  } else {
25  LogError("MicroGMTAbsoluteIsolationCheckLUTFactory")
26  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
27  }
28  return p;
29  }

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

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

◆ create() [2/2]

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

Definition at line 31 of file MicroGMTAbsoluteIsolationCheckLUTFactory.cc.

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

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
edm::LogError
Definition: MessageLogger.h:183
l1t::MicroGMTAbsoluteIsolationCheckLUTFactory::ReturnType
std::shared_ptr< MicroGMTAbsoluteIsolationCheckLUT > ReturnType
Definition: MicroGMTLUTFactories.h:71
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143