CMS 3D CMS Logo

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

#include <MicroGMTLUTFactories.h>

Public Types

typedef std::shared_ptr< MicroGMTExtrapolationLUTReturnType
 

Public Member Functions

 MicroGMTExtrapolationLUTFactory ()
 
 ~MicroGMTExtrapolationLUTFactory ()
 

Static Public Member Functions

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

Detailed Description

Author
: Thomas Reis

Definition at line 46 of file MicroGMTLUTFactories.h.

Member Typedef Documentation

◆ ReturnType

Definition at line 49 of file MicroGMTLUTFactories.h.

Constructor & Destructor Documentation

◆ MicroGMTExtrapolationLUTFactory()

l1t::MicroGMTExtrapolationLUTFactory::MicroGMTExtrapolationLUTFactory ( )
inline

Definition at line 48 of file MicroGMTLUTFactories.h.

48 {};

◆ ~MicroGMTExtrapolationLUTFactory()

l1t::MicroGMTExtrapolationLUTFactory::~MicroGMTExtrapolationLUTFactory ( )
inline

Definition at line 49 of file MicroGMTLUTFactories.h.

49 {};

Member Function Documentation

◆ create() [1/2]

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

Definition at line 18 of file MicroGMTExtrapolationLUTFactory.cc.

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

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

20  {
21  ReturnType p;
22 
23  int outWidth = 3;
25  outWidth = 4;
26  }
27 
28  if (fwVersion >= 1 && fwVersion < 0x4010000) {
29  p = std::make_shared<l1t::MicroGMTExtrapolationLUT>(filename, outWidth, 6, 6);
30  } else if (fwVersion >= 0x4010000) {
31  p = std::make_shared<l1t::MicroGMTExtrapolationLUT>(filename, 4, 5, 7);
32  } else {
33  LogError("MicroGMTExtrapolationLUTFactory")
34  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
35  }
36  return p;
37  }
std::shared_ptr< MicroGMTExtrapolationLUT > ReturnType
Log< level::Error, false > LogError

◆ create() [2/2]

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

Definition at line 39 of file MicroGMTExtrapolationLUTFactory.cc.

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

41  {
42  ReturnType p;
43 
44  int outWidth = 3;
46  outWidth = 4;
47  }
48 
49  if (fwVersion >= 1 && fwVersion < 0x4010000) {
50  p = std::make_shared<l1t::MicroGMTExtrapolationLUT>(lut, outWidth, 6, 6);
51  } else if (fwVersion >= 0x4010000) {
52  p = std::make_shared<l1t::MicroGMTExtrapolationLUT>(lut, 4, 5, 7);
53  } else {
54  LogError("MicroGMTExtrapolationLUTFactory")
55  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
56  }
57  return p;
58  }
std::shared_ptr< MicroGMTExtrapolationLUT > ReturnType
Log< level::Error, false > LogError