CMS 3D CMS Logo

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

#include <MicroGMTLUTFactories.h>

Public Types

typedef std::shared_ptr< MicroGMTCaloIndexSelectionLUTReturnType
 

Public Member Functions

 MicroGMTCaloIndexSelectionLUTFactory ()
 
 ~MicroGMTCaloIndexSelectionLUTFactory ()
 

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

Member Typedef Documentation

◆ ReturnType

Definition at line 62 of file MicroGMTLUTFactories.h.

Constructor & Destructor Documentation

◆ MicroGMTCaloIndexSelectionLUTFactory()

l1t::MicroGMTCaloIndexSelectionLUTFactory::MicroGMTCaloIndexSelectionLUTFactory ( )
inline

Definition at line 59 of file MicroGMTLUTFactories.h.

59 {}

◆ ~MicroGMTCaloIndexSelectionLUTFactory()

l1t::MicroGMTCaloIndexSelectionLUTFactory::~MicroGMTCaloIndexSelectionLUTFactory ( )
inline

Definition at line 60 of file MicroGMTLUTFactories.h.

60 {}

Member Function Documentation

◆ create() [1/2]

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

Definition at line 18 of file MicroGMTCaloIndexSelectionLUTFactory.cc.

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

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

19  {
20  ReturnType p;
21 
22  if (fwVersion >= 1) {
23  p = std::make_shared<l1t::MicroGMTCaloIndexSelectionLUT>(filename, type);
24  } else {
25  LogError("MicroGMTCaloIndexSelectionLUTFactory")
26  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
27  }
28  return p;
29  }
std::shared_ptr< MicroGMTCaloIndexSelectionLUT > ReturnType
Log< level::Error, false > LogError

◆ create() [2/2]

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

Definition at line 31 of file MicroGMTCaloIndexSelectionLUTFactory.cc.

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

33  {
34  ReturnType p;
35 
36  if (fwVersion >= 1) {
37  p = std::make_shared<l1t::MicroGMTCaloIndexSelectionLUT>(lut, type);
38  } else {
39  LogError("MicroGMTCaloIndexSelectionLUTFactory")
40  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
41  }
42  return p;
43  }
std::shared_ptr< MicroGMTCaloIndexSelectionLUT > ReturnType
Log< level::Error, false > LogError