CMS 3D CMS Logo

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

#include <MicroGMTLUTFactories.h>

Public Types

typedef std::shared_ptr< MicroGMTMatchQualLUTReturnType
 

Public Member Functions

 MicroGMTMatchQualLUTFactory ()
 
 ~MicroGMTMatchQualLUTFactory ()
 

Static Public Member Functions

static ReturnType create (const std::string &filename, const double maxDR, const double fEta, const double fEtaCoarse, const double fPhi, cancel_t cancelType, const int fwVersion)
 
static ReturnType create (l1t::LUT *lut, cancel_t cancelType, const int fwVersion)
 

Detailed Description

Author
: Thomas Reis

Definition at line 26 of file MicroGMTLUTFactories.h.

Member Typedef Documentation

Definition at line 29 of file MicroGMTLUTFactories.h.

Constructor & Destructor Documentation

l1t::MicroGMTMatchQualLUTFactory::MicroGMTMatchQualLUTFactory ( )
inline

Definition at line 28 of file MicroGMTLUTFactories.h.

28 {};
l1t::MicroGMTMatchQualLUTFactory::~MicroGMTMatchQualLUTFactory ( )
inline

Member Function Documentation

MicroGMTMatchQualLUTFactory::ReturnType l1t::MicroGMTMatchQualLUTFactory::create ( const std::string &  filename,
const double  maxDR,
const double  fEta,
const double  fEtaCoarse,
const double  fPhi,
cancel_t  cancelType,
const int  fwVersion 
)
static

Definition at line 18 of file MicroGMTMatchQualLUTFactory.cc.

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

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

20  {
21  ReturnType p;
22 
23  if (fwVersion == 1) {
24  p = ReturnType(new MicroGMTMatchQualSimpleLUT(
25  filename, maxDR, fEtaCoarse, fPhi, cancelType));
26  } else if (fwVersion >= 0x2020000) {
27  p = ReturnType(new MicroGMTMatchQualFineLUT(
28  filename, maxDR, fEta, fEtaCoarse, fPhi, cancelType));
29  } else {
30  LogError("MicroGMTMatchQualLUTFactory")
31  << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
32  }
33  return p;
34  }
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType
MicroGMTMatchQualLUTFactory::ReturnType l1t::MicroGMTMatchQualLUTFactory::create ( l1t::LUT lut,
cancel_t  cancelType,
const int  fwVersion 
)
static

Definition at line 37 of file MicroGMTMatchQualLUTFactory.cc.

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

37  {
38  ReturnType p;
39 
40  if (fwVersion == 1) {
41  p = ReturnType(new MicroGMTMatchQualSimpleLUT(lut, cancelType));
42  } else if (fwVersion >= 0x2020000) {
43  p = ReturnType(new MicroGMTMatchQualFineLUT(lut, cancelType));
44  } else {
45  LogError("MicroGMTMatchQualLUTFactory") << "Invalid firmware version requested: 0x" << std::hex << fwVersion << std::dec;
46  }
47  return p;
48  }
std::shared_ptr< MicroGMTMatchQualLUT > ReturnType