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 37 of file MicroGMTLUTFactories.h.

Member Typedef Documentation

Definition at line 40 of file MicroGMTLUTFactories.h.

Constructor & Destructor Documentation

l1t::MicroGMTExtrapolationLUTFactory::MicroGMTExtrapolationLUTFactory ( )
inline

Definition at line 39 of file MicroGMTLUTFactories.h.

39 {};
l1t::MicroGMTExtrapolationLUTFactory::~MicroGMTExtrapolationLUTFactory ( )
inline

Member Function Documentation

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

Definition at line 19 of file MicroGMTExtrapolationLUTFactory.cc.

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

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

19  {
20  ReturnType p;
21 
22  int outWidth = 3;
24  outWidth = 4;
25  }
26 
27  if (fwVersion >= 1 && fwVersion < 0x4010000) {
28  p = ReturnType(new MicroGMTExtrapolationLUT(filename, outWidth, 6, 6));
29  } else if (fwVersion >= 0x4010000) {
30  p = ReturnType(new MicroGMTExtrapolationLUT(filename, 4, 5, 7));
31  } else {
32  LogError("MicroGMTExtrapolationLUTFactory") << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
33  }
34  return p;
35  }
type
Definition: HCALResponse.h:21
std::shared_ptr< MicroGMTExtrapolationLUT > ReturnType
MicroGMTExtrapolationLUTFactory::ReturnType l1t::MicroGMTExtrapolationLUTFactory::create ( l1t::LUT lut,
const int  type,
const int  fwVersion 
)
static

Definition at line 38 of file MicroGMTExtrapolationLUTFactory.cc.

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

38  {
39  ReturnType p;
40 
41  int outWidth = 3;
43  outWidth = 4;
44  }
45 
46  if (fwVersion >= 1 && fwVersion < 0x4010000) {
47  p = ReturnType(new MicroGMTExtrapolationLUT(lut, outWidth, 6, 6));
48  } else if (fwVersion >= 0x4010000) {
49  p = ReturnType(new MicroGMTExtrapolationLUT(lut, 4, 5, 7));
50  } else {
51  LogError("MicroGMTExtrapolationLUTFactory") << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
52  }
53  return p;
54  }
type
Definition: HCALResponse.h:21
std::shared_ptr< MicroGMTExtrapolationLUT > ReturnType