CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Friends
L1TMuonGlobalParamsHelper Class Reference

#include <L1TMuonGlobalParamsHelper.h>

Inheritance diagram for L1TMuonGlobalParamsHelper:
L1TMuonGlobalParams_PUBLIC

Public Types

enum  {
  absIsoCheckMem = 0, relIsoCheckMem = 1, idxSelMemPhi = 2, idxSelMemEta = 3,
  fwdPosSingleMatchQual = 4, fwdNegSingleMatchQual = 5, ovlPosSingleMatchQual = 6, ovlNegSingleMatchQual = 7,
  bOPosMatchQual = 8, bONegMatchQual = 9, fOPosMatchQual = 10, fONegMatchQual = 11,
  bPhiExtrapolation = 12, oPhiExtrapolation = 13, fPhiExtrapolation = 14, bEtaExtrapolation = 15,
  oEtaExtrapolation = 16, fEtaExtrapolation = 17, sortRank = 18, FWVERSION = 19,
  INPUTS_TO_DISABLE = 20, MASKED_INPUTS = 21, NUM_GMTPARAMNODES = 22
}
 
enum  dpIdx { maxdr = 0, fEta = 1, fEtaCoarse = 2, fPhi = 3 }
 
enum  linkNr {
  CALOLINK1 = 8, EMTFPLINK1 = 36, OMTFPLINK1 = 42, BMTFLINK1 = 48,
  OMTFNLINK1 = 60, EMTFNLINK1 = 66
}
 
enum  spIdx { fname = 0 }
 
enum  upIdx {
  ptFactor = 0, qualFactor = 1, FWVERSION_IDX = 0, CALOINPUTS = 0,
  BMTFINPUTS = 1, OMTFINPUTS = 2, EMTFINPUTS = 3
}
 
- Public Types inherited from L1TMuonGlobalParams_PUBLIC
enum  { Version = 1 }
 

Public Member Functions

l1t::LUTabsIsoCheckMemLUT ()
 
std::string absIsoCheckMemLUTPath () const
 
l1t::LUTbEtaExtrapolationLUT ()
 
std::string bEtaExtrapolationLUTPath () const
 
std::bitset< 12 > bmtfInputsToDisable () const
 
l1t::LUTbONegMatchQualLUT ()
 
double bONegMatchQualLUTfEta () const
 
double bONegMatchQualLUTfEtaCoarse () const
 
double bONegMatchQualLUTfPhi () const
 
double bONegMatchQualLUTMaxDR () const
 
std::string bONegMatchQualLUTPath () const
 
l1t::LUTbOPosMatchQualLUT ()
 
double bOPosMatchQualLUTfEta () const
 
double bOPosMatchQualLUTfEtaCoarse () const
 
double bOPosMatchQualLUTfPhi () const
 
double bOPosMatchQualLUTMaxDR () const
 
std::string bOPosMatchQualLUTPath () const
 
l1t::LUTbPhiExtrapolationLUT ()
 
std::string bPhiExtrapolationLUTPath () const
 
std::bitset< 28 > caloInputsToDisable () const
 
std::bitset< 12 > emtfInputsToDisable () const
 
std::bitset< 6 > emtfnInputsToDisable () const
 
std::bitset< 6 > emtfpInputsToDisable () const
 
l1t::LUTfEtaExtrapolationLUT ()
 
std::string fEtaExtrapolationLUTPath () const
 
l1t::LUTfONegMatchQualLUT ()
 
double fONegMatchQualLUTfEta () const
 
double fONegMatchQualLUTfEtaCoarse () const
 
double fONegMatchQualLUTfPhi () const
 
double fONegMatchQualLUTMaxDR () const
 
std::string fONegMatchQualLUTPath () const
 
l1t::LUTfOPosMatchQualLUT ()
 
double fOPosMatchQualLUTfEta () const
 
double fOPosMatchQualLUTfEtaCoarse () const
 
double fOPosMatchQualLUTfPhi () const
 
double fOPosMatchQualLUTMaxDR () const
 
std::string fOPosMatchQualLUTPath () const
 
l1t::LUTfPhiExtrapolationLUT ()
 
std::string fPhiExtrapolationLUTPath () const
 
l1t::LUTfwdNegSingleMatchQualLUT ()
 
double fwdNegSingleMatchQualLUTfEta () const
 
double fwdNegSingleMatchQualLUTfPhi () const
 
double fwdNegSingleMatchQualLUTMaxDR () const
 
std::string fwdNegSingleMatchQualLUTPath () const
 
l1t::LUTfwdPosSingleMatchQualLUT ()
 
double fwdPosSingleMatchQualLUTfEta () const
 
double fwdPosSingleMatchQualLUTfPhi () const
 
double fwdPosSingleMatchQualLUTMaxDR () const
 
std::string fwdPosSingleMatchQualLUTPath () const
 
unsigned fwVersion () const
 
l1t::LUTidxSelMemEtaLUT ()
 
std::string idxSelMemEtaLUTPath () const
 
l1t::LUTidxSelMemPhiLUT ()
 
std::string idxSelMemPhiLUTPath () const
 
std::bitset< 72 > inputsToDisable () const
 
 L1TMuonGlobalParamsHelper ()
 
 L1TMuonGlobalParamsHelper (const L1TMuonGlobalParams &)
 
void loadFromOnline (l1t::TriggerSystem &trgSys, const std::string &processorId="")
 
std::bitset< 12 > maskedBmtfInputs () const
 
std::bitset< 28 > maskedCaloInputs () const
 
std::bitset< 12 > maskedEmtfInputs () const
 
std::bitset< 6 > maskedEmtfnInputs () const
 
std::bitset< 6 > maskedEmtfpInputs () const
 
std::bitset< 72 > maskedInputs () const
 
std::bitset< 12 > maskedOmtfInputs () const
 
std::bitset< 6 > maskedOmtfnInputs () const
 
std::bitset< 6 > maskedOmtfpInputs () const
 
l1t::LUToEtaExtrapolationLUT ()
 
std::string oEtaExtrapolationLUTPath () const
 
std::bitset< 12 > omtfInputsToDisable () const
 
std::bitset< 6 > omtfnInputsToDisable () const
 
std::bitset< 6 > omtfpInputsToDisable () const
 
l1t::LUToPhiExtrapolationLUT ()
 
std::string oPhiExtrapolationLUTPath () const
 
l1t::LUTovlNegSingleMatchQualLUT ()
 
double ovlNegSingleMatchQualLUTfEta () const
 
double ovlNegSingleMatchQualLUTfEtaCoarse () const
 
double ovlNegSingleMatchQualLUTfPhi () const
 
double ovlNegSingleMatchQualLUTMaxDR () const
 
std::string ovlNegSingleMatchQualLUTPath () const
 
l1t::LUTovlPosSingleMatchQualLUT ()
 
double ovlPosSingleMatchQualLUTfEta () const
 
double ovlPosSingleMatchQualLUTfEtaCoarse () const
 
double ovlPosSingleMatchQualLUTfPhi () const
 
double ovlPosSingleMatchQualLUTMaxDR () const
 
std::string ovlPosSingleMatchQualLUTPath () const
 
void print (std::ostream &) const
 
l1t::LUTrelIsoCheckMemLUT ()
 
std::string relIsoCheckMemLUTPath () const
 
void setAbsIsoCheckMemLUT (const l1t::LUT &lut)
 
void setAbsIsoCheckMemLUTPath (const std::string &path)
 
void setBEtaExtrapolationLUT (const l1t::LUT &lut)
 
void setBEtaExtrapolationLUTPath (const std::string &path)
 
void setBmtfInputsToDisable (const std::bitset< 12 > &disables)
 
void setBONegMatchQualLUT (const l1t::LUT &lut)
 
void setBONegMatchQualLUTMaxDR (double maxDR, double fEta, double fEtaCoarse, double fPhi)
 
void setBONegMatchQualLUTPath (const std::string &path)
 
void setBOPosMatchQualLUT (const l1t::LUT &lut)
 
void setBOPosMatchQualLUTMaxDR (double maxDR, double fEta, double fEtaCoarse, double fPhi)
 
void setBOPosMatchQualLUTPath (const std::string &path)
 
void setBPhiExtrapolationLUT (const l1t::LUT &lut)
 
void setBPhiExtrapolationLUTPath (const std::string &path)
 
void setCaloInputsToDisable (const std::bitset< 28 > &disables)
 
void setEmtfnInputsToDisable (const std::bitset< 6 > &disables)
 
void setEmtfpInputsToDisable (const std::bitset< 6 > &disables)
 
void setFEtaExtrapolationLUT (const l1t::LUT &lut)
 
void setFEtaExtrapolationLUTPath (const std::string &path)
 
void setFONegMatchQualLUT (const l1t::LUT &lut)
 
void setFONegMatchQualLUTMaxDR (double maxDR, double fEta, double fEtaCoarse, double fPhi)
 
void setFONegMatchQualLUTPath (const std::string &path)
 
void setFOPosMatchQualLUT (const l1t::LUT &lut)
 
void setFOPosMatchQualLUTMaxDR (double maxDR, double fEta, double fEtaCoarse, double fPhi)
 
void setFOPosMatchQualLUTPath (const std::string &path)
 
void setFPhiExtrapolationLUT (const l1t::LUT &lut)
 
void setFPhiExtrapolationLUTPath (const std::string &path)
 
void setFwdNegSingleMatchQualLUT (const l1t::LUT &lut)
 
void setFwdNegSingleMatchQualLUTMaxDR (double maxDR, double fEta, double fPhi)
 
void setFwdNegSingleMatchQualLUTPath (const std::string &path)
 
void setFwdPosSingleMatchQualLUT (const l1t::LUT &lut)
 
void setFwdPosSingleMatchQualLUTMaxDR (double maxDR, double fEta, double fPhi)
 
void setFwdPosSingleMatchQualLUTPath (const std::string &path)
 
void setFwVersion (unsigned fwVersion)
 
void setIdxSelMemEtaLUT (const l1t::LUT &lut)
 
void setIdxSelMemEtaLUTPath (const std::string &path)
 
void setIdxSelMemPhiLUT (const l1t::LUT &lut)
 
void setIdxSelMemPhiLUTPath (const std::string &path)
 
void setInputsToDisable (const std::bitset< 72 > &inputsToDisable)
 
void setMaskedBmtfInputs (const std::bitset< 12 > &masked)
 
void setMaskedCaloInputs (const std::bitset< 28 > &masked)
 
void setMaskedEmtfnInputs (const std::bitset< 6 > &masked)
 
void setMaskedEmtfpInputs (const std::bitset< 6 > &masked)
 
void setMaskedInputs (const std::bitset< 72 > &masked)
 
void setMaskedOmtfnInputs (const std::bitset< 6 > &masked)
 
void setMaskedOmtfpInputs (const std::bitset< 6 > &masked)
 
void setOEtaExtrapolationLUT (const l1t::LUT &lut)
 
void setOEtaExtrapolationLUTPath (const std::string &path)
 
void setOmtfnInputsToDisable (const std::bitset< 6 > &disables)
 
void setOmtfpInputsToDisable (const std::bitset< 6 > &disables)
 
void setOPhiExtrapolationLUT (const l1t::LUT &lut)
 
void setOPhiExtrapolationLUTPath (const std::string &path)
 
void setOvlNegSingleMatchQualLUT (const l1t::LUT &lut)
 
void setOvlNegSingleMatchQualLUTMaxDR (double maxDR, double fEta, double fEtaCoarse, double fPhi)
 
void setOvlNegSingleMatchQualLUTPath (const std::string &path)
 
void setOvlPosSingleMatchQualLUT (const l1t::LUT &lut)
 
void setOvlPosSingleMatchQualLUTMaxDR (double maxDR, double fEta, double fEtaCoarse, double fPhi)
 
void setOvlPosSingleMatchQualLUTPath (const std::string &path)
 
void setRelIsoCheckMemLUT (const l1t::LUT &lut)
 
void setRelIsoCheckMemLUTPath (const std::string &path)
 
void setSortRankLUT (const l1t::LUT &lut)
 
void setSortRankLUTFactors (unsigned ptFactor, unsigned qualFactor)
 
void setSortRankLUTPath (const std::string &path)
 
l1t::LUTsortRankLUT ()
 
std::string sortRankLUTPath () const
 
unsigned sortRankLUTPtFactor () const
 
unsigned sortRankLUTQualFactor () const
 
 ~L1TMuonGlobalParamsHelper ()
 
- Public Member Functions inherited from L1TMuonGlobalParams_PUBLIC
 L1TMuonGlobalParams_PUBLIC ()
 

Private Member Functions

std::bitset< 28 > caloInputFlags (const int &nodeIdx) const
 
std::bitset< 6 > eomtfInputFlags (const int &nodeIdx, const size_t &startIdx, const int &tfIdx) const
 
std::bitset< 72 > inputFlags (const int &nodeIdx) const
 
void setCaloInputFlags (const int &nodeIdx, const std::bitset< 28 > &flags)
 
void setEOmtfInputFlags (const int &nodeIdx, const size_t &startIdx, const int &tfIdx, const std::bitset< 6 > &flags)
 
void setInputFlags (const int &nodeIdx, const std::bitset< 72 > &flags)
 
void setTfInputFlags (const int &nodeIdx, const int &tfIdx, const std::bitset< 12 > &flags)
 
std::bitset< 12 > tfInputFlags (const int &nodeIdx, const int &tfIdx) const
 

Friends

std::ostream & operator<< (std::ostream &o, const L1TMuonGlobalParamsHelper &p)
 

Additional Inherited Members

- Public Attributes inherited from L1TMuonGlobalParams_PUBLIC
int bxMax_
 
int bxMin_
 
unsigned fwVersion_
 
std::vector< Nodepnodes_
 
unsigned version_
 

Detailed Description

Description: Wrapper for L1TMuonGlobalParams

Implementation:

Author
: Thomas Reis

Definition at line 24 of file L1TMuonGlobalParamsHelper.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
absIsoCheckMem 
relIsoCheckMem 
idxSelMemPhi 
idxSelMemEta 
fwdPosSingleMatchQual 
fwdNegSingleMatchQual 
ovlPosSingleMatchQual 
ovlNegSingleMatchQual 
bOPosMatchQual 
bONegMatchQual 
fOPosMatchQual 
fONegMatchQual 
bPhiExtrapolation 
oPhiExtrapolation 
fPhiExtrapolation 
bEtaExtrapolation 
oEtaExtrapolation 
fEtaExtrapolation 
sortRank 
FWVERSION 
INPUTS_TO_DISABLE 
MASKED_INPUTS 
NUM_GMTPARAMNODES 

Definition at line 26 of file L1TMuonGlobalParamsHelper.h.

26  {
27  absIsoCheckMem = 0,
28  relIsoCheckMem = 1,
29  idxSelMemPhi = 2,
30  idxSelMemEta = 3,
35  bOPosMatchQual = 8,
36  bONegMatchQual = 9,
37  fOPosMatchQual = 10,
38  fONegMatchQual = 11,
39  bPhiExtrapolation = 12,
40  oPhiExtrapolation = 13,
41  fPhiExtrapolation = 14,
42  bEtaExtrapolation = 15,
43  oEtaExtrapolation = 16,
44  fEtaExtrapolation = 17,
45  sortRank = 18,
46  FWVERSION = 19,
47  INPUTS_TO_DISABLE = 20,
48  MASKED_INPUTS = 21,
50  };

◆ dpIdx

◆ linkNr

◆ spIdx

Enumerator
fname 

Definition at line 53 of file L1TMuonGlobalParamsHelper.h.

◆ upIdx

Constructor & Destructor Documentation

◆ L1TMuonGlobalParamsHelper() [1/2]

L1TMuonGlobalParamsHelper::L1TMuonGlobalParamsHelper ( )
inline

◆ L1TMuonGlobalParamsHelper() [2/2]

L1TMuonGlobalParamsHelper::L1TMuonGlobalParamsHelper ( const L1TMuonGlobalParams p)

◆ ~L1TMuonGlobalParamsHelper()

L1TMuonGlobalParamsHelper::~L1TMuonGlobalParamsHelper ( )
inline

Definition at line 81 of file L1TMuonGlobalParamsHelper.h.

81 {}

Member Function Documentation

◆ absIsoCheckMemLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::absIsoCheckMemLUT ( )
inline

◆ absIsoCheckMemLUTPath()

std::string L1TMuonGlobalParamsHelper::absIsoCheckMemLUTPath ( ) const
inline

◆ bEtaExtrapolationLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::bEtaExtrapolationLUT ( )
inline

◆ bEtaExtrapolationLUTPath()

std::string L1TMuonGlobalParamsHelper::bEtaExtrapolationLUTPath ( ) const
inline

◆ bmtfInputsToDisable()

std::bitset<12> L1TMuonGlobalParamsHelper::bmtfInputsToDisable ( ) const
inline

◆ bONegMatchQualLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::bONegMatchQualLUT ( )
inline

◆ bONegMatchQualLUTfEta()

double L1TMuonGlobalParamsHelper::bONegMatchQualLUTfEta ( ) const
inline

◆ bONegMatchQualLUTfEtaCoarse()

double L1TMuonGlobalParamsHelper::bONegMatchQualLUTfEtaCoarse ( ) const
inline

Definition at line 409 of file L1TMuonGlobalParamsHelper.h.

References bONegMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by print().

409  {
410  return pnodes_[bONegMatchQual].dparams_.size() > dpIdx::fEtaCoarse
411  ? pnodes_[bONegMatchQual].dparams_[dpIdx::fEtaCoarse]
412  : 0.;
413  }

◆ bONegMatchQualLUTfPhi()

double L1TMuonGlobalParamsHelper::bONegMatchQualLUTfPhi ( ) const
inline

◆ bONegMatchQualLUTMaxDR()

double L1TMuonGlobalParamsHelper::bONegMatchQualLUTMaxDR ( ) const
inline

◆ bONegMatchQualLUTPath()

std::string L1TMuonGlobalParamsHelper::bONegMatchQualLUTPath ( ) const
inline

◆ bOPosMatchQualLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::bOPosMatchQualLUT ( )
inline

◆ bOPosMatchQualLUTfEta()

double L1TMuonGlobalParamsHelper::bOPosMatchQualLUTfEta ( ) const
inline

◆ bOPosMatchQualLUTfEtaCoarse()

double L1TMuonGlobalParamsHelper::bOPosMatchQualLUTfEtaCoarse ( ) const
inline

Definition at line 404 of file L1TMuonGlobalParamsHelper.h.

References bOPosMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by print().

404  {
405  return pnodes_[bOPosMatchQual].dparams_.size() > dpIdx::fEtaCoarse
406  ? pnodes_[bOPosMatchQual].dparams_[dpIdx::fEtaCoarse]
407  : 0.;
408  }

◆ bOPosMatchQualLUTfPhi()

double L1TMuonGlobalParamsHelper::bOPosMatchQualLUTfPhi ( ) const
inline

◆ bOPosMatchQualLUTMaxDR()

double L1TMuonGlobalParamsHelper::bOPosMatchQualLUTMaxDR ( ) const
inline

◆ bOPosMatchQualLUTPath()

std::string L1TMuonGlobalParamsHelper::bOPosMatchQualLUTPath ( ) const
inline

◆ bPhiExtrapolationLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::bPhiExtrapolationLUT ( )
inline

◆ bPhiExtrapolationLUTPath()

std::string L1TMuonGlobalParamsHelper::bPhiExtrapolationLUTPath ( ) const
inline

◆ caloInputFlags()

std::bitset< 28 > L1TMuonGlobalParamsHelper::caloInputFlags ( const int &  nodeIdx) const
private

Definition at line 39 of file L1TMuonGlobalParamsHelper.cc.

References CALOINPUTS, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by caloInputsToDisable(), and maskedCaloInputs().

39  {
40  if (pnodes_[nodeIdx].uparams_.size() == 4) {
41  return std::bitset<28>(pnodes_[nodeIdx].uparams_[CALOINPUTS]);
42  } else {
43  return std::bitset<28>();
44  }
45 }

◆ caloInputsToDisable()

std::bitset<28> L1TMuonGlobalParamsHelper::caloInputsToDisable ( ) const
inline

◆ emtfInputsToDisable()

std::bitset<12> L1TMuonGlobalParamsHelper::emtfInputsToDisable ( ) const
inline

◆ emtfnInputsToDisable()

std::bitset<6> L1TMuonGlobalParamsHelper::emtfnInputsToDisable ( ) const
inline

◆ emtfpInputsToDisable()

std::bitset<6> L1TMuonGlobalParamsHelper::emtfpInputsToDisable ( ) const
inline

◆ eomtfInputFlags()

std::bitset< 6 > L1TMuonGlobalParamsHelper::eomtfInputFlags ( const int &  nodeIdx,
const size_t &  startIdx,
const int &  tfIdx 
) const
private

Definition at line 55 of file L1TMuonGlobalParamsHelper.cc.

References mps_fire::i, inputFlags(), and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by emtfnInputsToDisable(), emtfpInputsToDisable(), maskedEmtfnInputs(), maskedEmtfpInputs(), maskedOmtfnInputs(), maskedOmtfpInputs(), omtfnInputsToDisable(), and omtfpInputsToDisable().

57  {
58  std::bitset<6> inputFlags;
59  if (pnodes_[nodeIdx].uparams_.size() == 4) {
60  for (size_t i = 0; i < 6; ++i) {
61  inputFlags[i] = ((pnodes_[nodeIdx].uparams_[tfIdx] >> (i + startIdx)) & 0x1);
62  }
63  }
64  return inputFlags;
65 }
std::bitset< 72 > inputFlags(const int &nodeIdx) const

◆ fEtaExtrapolationLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::fEtaExtrapolationLUT ( )
inline

◆ fEtaExtrapolationLUTPath()

std::string L1TMuonGlobalParamsHelper::fEtaExtrapolationLUTPath ( ) const
inline

◆ fONegMatchQualLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::fONegMatchQualLUT ( )
inline

◆ fONegMatchQualLUTfEta()

double L1TMuonGlobalParamsHelper::fONegMatchQualLUTfEta ( ) const
inline

◆ fONegMatchQualLUTfEtaCoarse()

double L1TMuonGlobalParamsHelper::fONegMatchQualLUTfEtaCoarse ( ) const
inline

Definition at line 425 of file L1TMuonGlobalParamsHelper.h.

References fONegMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

425  {
426  return pnodes_[fONegMatchQual].dparams_.size() > dpIdx::fEtaCoarse
427  ? pnodes_[fONegMatchQual].dparams_[dpIdx::fEtaCoarse]
428  : 0.;
429  }

◆ fONegMatchQualLUTfPhi()

double L1TMuonGlobalParamsHelper::fONegMatchQualLUTfPhi ( ) const
inline

◆ fONegMatchQualLUTMaxDR()

double L1TMuonGlobalParamsHelper::fONegMatchQualLUTMaxDR ( ) const
inline

◆ fONegMatchQualLUTPath()

std::string L1TMuonGlobalParamsHelper::fONegMatchQualLUTPath ( ) const
inline

◆ fOPosMatchQualLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::fOPosMatchQualLUT ( )
inline

◆ fOPosMatchQualLUTfEta()

double L1TMuonGlobalParamsHelper::fOPosMatchQualLUTfEta ( ) const
inline

◆ fOPosMatchQualLUTfEtaCoarse()

double L1TMuonGlobalParamsHelper::fOPosMatchQualLUTfEtaCoarse ( ) const
inline

Definition at line 420 of file L1TMuonGlobalParamsHelper.h.

References fOPosMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

420  {
421  return pnodes_[fOPosMatchQual].dparams_.size() > dpIdx::fEtaCoarse
422  ? pnodes_[fOPosMatchQual].dparams_[dpIdx::fEtaCoarse]
423  : 0.;
424  }

◆ fOPosMatchQualLUTfPhi()

double L1TMuonGlobalParamsHelper::fOPosMatchQualLUTfPhi ( ) const
inline

◆ fOPosMatchQualLUTMaxDR()

double L1TMuonGlobalParamsHelper::fOPosMatchQualLUTMaxDR ( ) const
inline

◆ fOPosMatchQualLUTPath()

std::string L1TMuonGlobalParamsHelper::fOPosMatchQualLUTPath ( ) const
inline

◆ fPhiExtrapolationLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::fPhiExtrapolationLUT ( )
inline

◆ fPhiExtrapolationLUTPath()

std::string L1TMuonGlobalParamsHelper::fPhiExtrapolationLUTPath ( ) const
inline

◆ fwdNegSingleMatchQualLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUT ( )
inline

◆ fwdNegSingleMatchQualLUTfEta()

double L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUTfEta ( ) const
inline

◆ fwdNegSingleMatchQualLUTfPhi()

double L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUTfPhi ( ) const
inline

◆ fwdNegSingleMatchQualLUTMaxDR()

double L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUTMaxDR ( ) const
inline

◆ fwdNegSingleMatchQualLUTPath()

std::string L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUTPath ( ) const
inline

◆ fwdPosSingleMatchQualLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUT ( )
inline

◆ fwdPosSingleMatchQualLUTfEta()

double L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUTfEta ( ) const
inline

◆ fwdPosSingleMatchQualLUTfPhi()

double L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUTfPhi ( ) const
inline

◆ fwdPosSingleMatchQualLUTMaxDR()

double L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUTMaxDR ( ) const
inline

◆ fwdPosSingleMatchQualLUTPath()

std::string L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUTPath ( ) const
inline

◆ fwVersion()

unsigned L1TMuonGlobalParamsHelper::fwVersion ( ) const
inline

◆ idxSelMemEtaLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::idxSelMemEtaLUT ( )
inline

◆ idxSelMemEtaLUTPath()

std::string L1TMuonGlobalParamsHelper::idxSelMemEtaLUTPath ( ) const
inline

◆ idxSelMemPhiLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::idxSelMemPhiLUT ( )
inline

◆ idxSelMemPhiLUTPath()

std::string L1TMuonGlobalParamsHelper::idxSelMemPhiLUTPath ( ) const
inline

◆ inputFlags()

std::bitset< 72 > L1TMuonGlobalParamsHelper::inputFlags ( const int &  nodeIdx) const
private

Definition at line 14 of file L1TMuonGlobalParamsHelper.cc.

References BMTFINPUTS, BMTFLINK1, CALOINPUTS, CALOLINK1, EMTFINPUTS, EMTFNLINK1, EMTFPLINK1, mps_fire::i, OMTFINPUTS, OMTFNLINK1, OMTFPLINK1, L1TMuonGlobalParams_PUBLIC::pnodes_, and testProducerWithPsetDescEmpty_cfi::x1.

Referenced by eomtfInputFlags(), inputsToDisable(), maskedInputs(), setCaloInputFlags(), setEOmtfInputFlags(), setInputFlags(), and setTfInputFlags().

14  {
15  std::bitset<72> inputFlags;
16  if (pnodes_[nodeIdx].uparams_.size() != 4) {
17  return inputFlags;
18  }
19 
20  for (size_t i = 0; i < 28; ++i) {
21  inputFlags[CALOLINK1 + i] = ((pnodes_[nodeIdx].uparams_[CALOINPUTS] >> i) & 0x1);
22  if (i < CALOLINK1) {
23  // disable unused inputs
24  inputFlags[i] = true;
25  }
26  if (i < 12) {
27  inputFlags[BMTFLINK1 + i] = ((pnodes_[nodeIdx].uparams_[BMTFINPUTS] >> i) & 0x1);
28  if (i < 6) {
29  inputFlags[EMTFPLINK1 + i] = ((pnodes_[nodeIdx].uparams_[EMTFINPUTS] >> i) & 0x1);
30  inputFlags[OMTFPLINK1 + i] = ((pnodes_[nodeIdx].uparams_[OMTFINPUTS] >> i) & 0x1);
31  inputFlags[OMTFNLINK1 + i] = ((pnodes_[nodeIdx].uparams_[OMTFINPUTS] >> (i + 6)) & 0x1);
32  inputFlags[EMTFNLINK1 + i] = ((pnodes_[nodeIdx].uparams_[EMTFINPUTS] >> (i + 6)) & 0x1);
33  }
34  }
35  }
36  return inputFlags;
37 }
std::bitset< 72 > inputFlags(const int &nodeIdx) const

◆ inputsToDisable()

std::bitset<72> L1TMuonGlobalParamsHelper::inputsToDisable ( ) const
inline

Definition at line 90 of file L1TMuonGlobalParamsHelper.h.

References inputFlags(), and INPUTS_TO_DISABLE.

Referenced by print(), and setInputsToDisable().

◆ loadFromOnline()

void L1TMuonGlobalParamsHelper::loadFromOnline ( l1t::TriggerSystem trgSys,
const std::string &  processorId = "" 
)

Definition at line 114 of file L1TMuonGlobalParamsHelper.cc.

References bmtfInputsToDisable(), fakeGmtParams_cff::caloInputsMasked, l1t::convertToLUT(), emtfInputsToDisable(), fwVersion(), l1t::TriggerSystem::getParameters(), l1t::TriggerSystem::getProcToRoleAssignment(), mps_fire::i, l1t::TriggerSystem::isMasked(), maskedBmtfInputs(), maskedEmtfInputs(), maskedOmtfInputs(), omtfInputsToDisable(), setAbsIsoCheckMemLUT(), setBEtaExtrapolationLUT(), setBmtfInputsToDisable(), setBONegMatchQualLUT(), setBOPosMatchQualLUT(), setBPhiExtrapolationLUT(), setCaloInputsToDisable(), setEmtfnInputsToDisable(), setEmtfpInputsToDisable(), setFEtaExtrapolationLUT(), setFONegMatchQualLUT(), setFOPosMatchQualLUT(), setFPhiExtrapolationLUT(), setFwdNegSingleMatchQualLUT(), setFwdPosSingleMatchQualLUT(), setFwVersion(), setIdxSelMemEtaLUT(), setIdxSelMemPhiLUT(), setMaskedBmtfInputs(), setMaskedCaloInputs(), setMaskedEmtfnInputs(), setMaskedEmtfpInputs(), setMaskedOmtfnInputs(), setMaskedOmtfpInputs(), setOEtaExtrapolationLUT(), setOmtfnInputsToDisable(), setOmtfpInputsToDisable(), setOPhiExtrapolationLUT(), setOvlNegSingleMatchQualLUT(), setOvlPosSingleMatchQualLUT(), setRelIsoCheckMemLUT(), setSortRankLUT(), contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by L1TMuonGlobalParamsESProducer::L1TMuonGlobalParamsESProducer(), and L1TMuonGlobalParamsOnlineProd::newObject().

114  {
115  std::string procId = processorId;
116  // if the procId is an empty string use the one from the TrigSystem (the uGMT only has one processor)
117  if (procId.empty()) {
118  const std::map<std::string, std::string> &procRoleMap = trgSys.getProcToRoleAssignment();
119  if (procRoleMap.size() != 1) {
120  if (procRoleMap.empty()) {
121  edm::LogError("uGMT config from online") << "No processor id found for uGMT HW configuration.";
122  } else {
123  edm::LogError("uGMT config from online") << "More than one processor id found for uGMT HW configuration.";
124  }
125  } else {
126  procId = procRoleMap.cbegin()->first;
127  }
128  }
129 
130  // get the settings and masks for the processor id
131  std::map<std::string, l1t::Parameter> settings = trgSys.getParameters(procId.c_str());
132  //std::map<std::string, l1t::Mask> masks = trgSys.getMasks(procId.c_str());
133  //for (auto& it: settings) {
134  // std::cout << "Key: " << it.first << ", procRole: " << it.second.getProcRole() << ", type: " << it.second.getType() << ", id: " << it.second.getId() << ", value as string: [" << it.second.getValueAsStr() << "]" << std::endl;
135  //}
136  //for (auto& it: masks) {
137  // std::cout << "Key: " << it.first << ", procRole: " << it.second.getProcRole() << ", id: " << it.second.getId() << std::endl;
138  //}
139 
140  // Use FW version from online config if it is found there. Otherwise set it to 1
141  unsigned fwVersion = 1;
142  if (settings.count("algoRev") > 0) {
143  fwVersion = settings["algoRev"].getValue<unsigned int>();
144  }
146 
147  std::stringstream ss;
148  // uGMT disabled inputs
149  bool disableCaloInputs = settings["caloInputsDisable"].getValue<bool>();
150  std::string bmtfInputsToDisableStr = settings["bmtfInputsToDisable"].getValueAsStr();
151  std::string omtfInputsToDisableStr = settings["omtfInputsToDisable"].getValueAsStr();
152  std::string emtfInputsToDisableStr = settings["emtfInputsToDisable"].getValueAsStr();
153  std::vector<unsigned> bmtfInputsToDisable(12, 0);
154  std::vector<unsigned> omtfInputsToDisable(12, 0);
155  std::vector<unsigned> emtfInputsToDisable(12, 0);
156  // translate the bool and the strings to the vectors
157  for (unsigned i = 0; i < 12; ++i) {
158  ss.str("");
159  ss << "BMTF" << i + 1;
160  if (bmtfInputsToDisableStr.find(ss.str()) != std::string::npos) {
161  bmtfInputsToDisable[i] = 1;
162  }
163  ss.str("");
164  ss << "OMTF";
165  if (i < 6) {
166  ss << "p" << i + 1;
167  } else {
168  ss << "n" << i - 5;
169  }
170  if (omtfInputsToDisableStr.find(ss.str()) != std::string::npos) {
171  omtfInputsToDisable[i] = 1;
172  }
173  ss.str("");
174  ss << "EMTF";
175  if (i < 6) {
176  ss << "p" << i + 1;
177  } else {
178  ss << "n" << i - 5;
179  }
180  if (emtfInputsToDisableStr.find(ss.str()) != std::string::npos) {
181  emtfInputsToDisable[i] = 1;
182  }
183  }
184 
185  // set the condFormats parameters for uGMT disabled inputs
186  if (disableCaloInputs) {
187  setCaloInputsToDisable(std::bitset<28>(0xFFFFFFF));
188  } else {
189  setCaloInputsToDisable(std::bitset<28>());
190  }
191 
192  std::bitset<12> bmtfDisables;
193  for (size_t i = 0; i < bmtfInputsToDisable.size(); ++i) {
194  bmtfDisables.set(i, bmtfInputsToDisable[i] > 0);
195  }
196  setBmtfInputsToDisable(bmtfDisables);
197 
198  std::bitset<6> omtfpDisables;
199  std::bitset<6> omtfnDisables;
200  for (size_t i = 0; i < omtfInputsToDisable.size(); ++i) {
201  if (i < 6) {
202  omtfpDisables.set(i, omtfInputsToDisable[i] > 0);
203  } else {
204  omtfnDisables.set(i - 6, omtfInputsToDisable[i] > 0);
205  }
206  }
207  setOmtfpInputsToDisable(omtfpDisables);
208  setOmtfnInputsToDisable(omtfnDisables);
209 
210  std::bitset<6> emtfpDisables;
211  std::bitset<6> emtfnDisables;
212  for (size_t i = 0; i < emtfInputsToDisable.size(); ++i) {
213  if (i < 6) {
214  emtfpDisables.set(i, emtfInputsToDisable[i] > 0);
215  } else {
216  emtfnDisables.set(i - 6, emtfInputsToDisable[i] > 0);
217  }
218  }
219  setEmtfpInputsToDisable(emtfpDisables);
220  setEmtfnInputsToDisable(emtfnDisables);
221 
222  // uGMT masked inputs
223  bool caloInputsMasked = true;
224  std::vector<unsigned> maskedBmtfInputs(12, 0);
225  std::vector<unsigned> maskedOmtfInputs(12, 0);
226  std::vector<unsigned> maskedEmtfInputs(12, 0);
227  ss << std::setfill('0');
228  // translate the bool and the strings to the vectors
229  for (unsigned i = 0; i < 28; ++i) {
230  ss.str("");
231  ss << "inputPorts.CaloL2_" << std::setw(2) << i + 1;
232  // for now set as unmasked if one input is not masked
233  if (!trgSys.isMasked(procId.c_str(), ss.str().c_str())) {
234  caloInputsMasked = false;
235  }
236  if (i < 12) {
237  ss.str("");
238  ss << "inputPorts.BMTF_" << std::setw(2) << i + 1;
239  if (trgSys.isMasked(procId.c_str(), ss.str().c_str())) {
240  maskedBmtfInputs[i] = 1;
241  }
242  ss.str("");
243  ss << "inputPorts.OMTF";
244  if (i < 6) {
245  ss << "+_" << std::setw(2) << i + 1;
246  } else {
247  ss << "-_" << std::setw(2) << i - 5;
248  }
249  if (trgSys.isMasked(procId.c_str(), ss.str().c_str())) {
250  maskedOmtfInputs[i] = 1;
251  }
252  ss.str("");
253  ss << "inputPorts.EMTF";
254  if (i < 6) {
255  ss << "+_" << std::setw(2) << i + 1;
256  } else {
257  ss << "-_" << std::setw(2) << i - 5;
258  }
259  if (trgSys.isMasked(procId.c_str(), ss.str().c_str())) {
260  maskedEmtfInputs[i] = 1;
261  }
262  }
263  }
264  ss << std::setfill(' ');
265 
266  // set the condFormats parameters for uGMT masked inputs
267  if (caloInputsMasked) {
268  setMaskedCaloInputs(std::bitset<28>(0xFFFFFFF));
269  } else {
270  setMaskedCaloInputs(std::bitset<28>());
271  }
272 
273  std::bitset<12> bmtfMasked;
274  for (size_t i = 0; i < maskedBmtfInputs.size(); ++i) {
275  bmtfMasked.set(i, maskedBmtfInputs[i] > 0);
276  }
277  setMaskedBmtfInputs(bmtfMasked);
278 
279  std::bitset<6> omtfpMasked;
280  std::bitset<6> omtfnMasked;
281  for (size_t i = 0; i < maskedOmtfInputs.size(); ++i) {
282  if (i < 6) {
283  omtfpMasked.set(i, maskedOmtfInputs[i] > 0);
284  } else {
285  omtfnMasked.set(i - 6, maskedOmtfInputs[i] > 0);
286  }
287  }
288  setMaskedOmtfpInputs(omtfpMasked);
289  setMaskedOmtfnInputs(omtfnMasked);
290 
291  std::bitset<6> emtfpMasked;
292  std::bitset<6> emtfnMasked;
293  for (size_t i = 0; i < maskedEmtfInputs.size(); ++i) {
294  if (i < 6) {
295  emtfpMasked.set(i, maskedEmtfInputs[i] > 0);
296  } else {
297  emtfnMasked.set(i - 6, maskedEmtfInputs[i] > 0);
298  }
299  }
300  setMaskedEmtfpInputs(emtfpMasked);
301  setMaskedEmtfnInputs(emtfnMasked);
302 
303  // LUTs from settings with with automatic detection of address width and 31 bit output width
304  setAbsIsoCheckMemLUT(l1t::convertToLUT(settings["AbsIsoCheckMem"].getVector<unsigned int>()));
305  setRelIsoCheckMemLUT(l1t::convertToLUT(settings["RelIsoCheckMem"].getVector<unsigned int>()));
306  setIdxSelMemPhiLUT(l1t::convertToLUT(settings["IdxSelMemPhi"].getVector<unsigned int>()));
307  setIdxSelMemEtaLUT(l1t::convertToLUT(settings["IdxSelMemEta"].getVector<unsigned int>()));
308  setFwdPosSingleMatchQualLUT(l1t::convertToLUT(settings["EmtfPosSingleMatchQual"].getVector<unsigned int>()));
309  setFwdNegSingleMatchQualLUT(l1t::convertToLUT(settings["EmtfNegSingleMatchQual"].getVector<unsigned int>()));
310  setOvlPosSingleMatchQualLUT(l1t::convertToLUT(settings["OmtfPosSingleMatchQual"].getVector<unsigned int>()));
311  setOvlNegSingleMatchQualLUT(l1t::convertToLUT(settings["OmtfNegSingleMatchQual"].getVector<unsigned int>()));
312  setBOPosMatchQualLUT(l1t::convertToLUT(settings["BOPosMatchQual"].getVector<unsigned int>()));
313  setBONegMatchQualLUT(l1t::convertToLUT(settings["BONegMatchQual"].getVector<unsigned int>()));
314  setFOPosMatchQualLUT(l1t::convertToLUT(settings["EOPosMatchQual"].getVector<unsigned int>()));
315  setFONegMatchQualLUT(l1t::convertToLUT(settings["EONegMatchQual"].getVector<unsigned int>()));
316  setBPhiExtrapolationLUT(l1t::convertToLUT(settings["BPhiExtrapolation"].getVector<unsigned int>()));
317  setOPhiExtrapolationLUT(l1t::convertToLUT(settings["OPhiExtrapolation"].getVector<unsigned int>()));
318  setFPhiExtrapolationLUT(l1t::convertToLUT(settings["EPhiExtrapolation"].getVector<unsigned int>()));
319  setBEtaExtrapolationLUT(l1t::convertToLUT(settings["BEtaExtrapolation"].getVector<unsigned int>()));
320  setOEtaExtrapolationLUT(l1t::convertToLUT(settings["OEtaExtrapolation"].getVector<unsigned int>()));
321  setFEtaExtrapolationLUT(l1t::convertToLUT(settings["EEtaExtrapolation"].getVector<unsigned int>()));
322  setSortRankLUT(l1t::convertToLUT(settings["SortRank"].getVector<unsigned int>()));
323 }
std::bitset< 12 > omtfInputsToDisable() const
void setMaskedCaloInputs(const std::bitset< 28 > &masked)
void setIdxSelMemEtaLUT(const l1t::LUT &lut)
void setOPhiExtrapolationLUT(const l1t::LUT &lut)
void setBEtaExtrapolationLUT(const l1t::LUT &lut)
void setFwdPosSingleMatchQualLUT(const l1t::LUT &lut)
void setBmtfInputsToDisable(const std::bitset< 12 > &disables)
std::bitset< 12 > maskedOmtfInputs() const
void setFEtaExtrapolationLUT(const l1t::LUT &lut)
void setFPhiExtrapolationLUT(const l1t::LUT &lut)
void setOmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setOEtaExtrapolationLUT(const l1t::LUT &lut)
Log< level::Error, false > LogError
std::bitset< 12 > emtfInputsToDisable() const
void setIdxSelMemPhiLUT(const l1t::LUT &lut)
const std::map< std::string, std::string > & getProcToRoleAssignment(void) const noexcept
Definition: TriggerSystem.h:60
void setBPhiExtrapolationLUT(const l1t::LUT &lut)
bool isMasked(const char *proccessor, const char *id) const
void setFOPosMatchQualLUT(const l1t::LUT &lut)
void setBONegMatchQualLUT(const l1t::LUT &lut)
void setMaskedOmtfpInputs(const std::bitset< 6 > &masked)
const std::map< std::string, Parameter > & getParameters(const char *processor) const
void setFONegMatchQualLUT(const l1t::LUT &lut)
std::bitset< 12 > maskedEmtfInputs() const
void setRelIsoCheckMemLUT(const l1t::LUT &lut)
void setEmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setAbsIsoCheckMemLUT(const l1t::LUT &lut)
void setOvlPosSingleMatchQualLUT(const l1t::LUT &lut)
void setFwVersion(unsigned fwVersion)
void setBOPosMatchQualLUT(const l1t::LUT &lut)
l1t::LUT convertToLUT(const std::vector< uint64_t > &v, int padding=-1) noexcept
Definition: ConvertToLUT.h:10
void setMaskedOmtfnInputs(const std::bitset< 6 > &masked)
void setCaloInputsToDisable(const std::bitset< 28 > &disables)
void setMaskedBmtfInputs(const std::bitset< 12 > &masked)
void setFwdNegSingleMatchQualLUT(const l1t::LUT &lut)
std::bitset< 12 > bmtfInputsToDisable() const
void setSortRankLUT(const l1t::LUT &lut)
std::bitset< 12 > maskedBmtfInputs() const
void setMaskedEmtfpInputs(const std::bitset< 6 > &masked)
void setMaskedEmtfnInputs(const std::bitset< 6 > &masked)
void setEmtfpInputsToDisable(const std::bitset< 6 > &disables)
void setOmtfnInputsToDisable(const std::bitset< 6 > &disables)
void setOvlNegSingleMatchQualLUT(const l1t::LUT &lut)

◆ maskedBmtfInputs()

std::bitset<12> L1TMuonGlobalParamsHelper::maskedBmtfInputs ( ) const
inline

◆ maskedCaloInputs()

std::bitset<28> L1TMuonGlobalParamsHelper::maskedCaloInputs ( ) const
inline

◆ maskedEmtfInputs()

std::bitset<12> L1TMuonGlobalParamsHelper::maskedEmtfInputs ( ) const
inline

◆ maskedEmtfnInputs()

std::bitset<6> L1TMuonGlobalParamsHelper::maskedEmtfnInputs ( ) const
inline

Definition at line 128 of file L1TMuonGlobalParamsHelper.h.

References EMTFINPUTS, eomtfInputFlags(), and MASKED_INPUTS.

◆ maskedEmtfpInputs()

std::bitset<6> L1TMuonGlobalParamsHelper::maskedEmtfpInputs ( ) const
inline

Definition at line 127 of file L1TMuonGlobalParamsHelper.h.

References EMTFINPUTS, eomtfInputFlags(), and MASKED_INPUTS.

◆ maskedInputs()

std::bitset<72> L1TMuonGlobalParamsHelper::maskedInputs ( ) const
inline

Definition at line 120 of file L1TMuonGlobalParamsHelper.h.

References inputFlags(), and MASKED_INPUTS.

Referenced by print().

◆ maskedOmtfInputs()

std::bitset<12> L1TMuonGlobalParamsHelper::maskedOmtfInputs ( ) const
inline

◆ maskedOmtfnInputs()

std::bitset<6> L1TMuonGlobalParamsHelper::maskedOmtfnInputs ( ) const
inline

Definition at line 126 of file L1TMuonGlobalParamsHelper.h.

References eomtfInputFlags(), MASKED_INPUTS, and OMTFINPUTS.

◆ maskedOmtfpInputs()

std::bitset<6> L1TMuonGlobalParamsHelper::maskedOmtfpInputs ( ) const
inline

Definition at line 125 of file L1TMuonGlobalParamsHelper.h.

References eomtfInputFlags(), MASKED_INPUTS, and OMTFINPUTS.

◆ oEtaExtrapolationLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::oEtaExtrapolationLUT ( )
inline

◆ oEtaExtrapolationLUTPath()

std::string L1TMuonGlobalParamsHelper::oEtaExtrapolationLUTPath ( ) const
inline

◆ omtfInputsToDisable()

std::bitset<12> L1TMuonGlobalParamsHelper::omtfInputsToDisable ( ) const
inline

◆ omtfnInputsToDisable()

std::bitset<6> L1TMuonGlobalParamsHelper::omtfnInputsToDisable ( ) const
inline

◆ omtfpInputsToDisable()

std::bitset<6> L1TMuonGlobalParamsHelper::omtfpInputsToDisable ( ) const
inline

◆ oPhiExtrapolationLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::oPhiExtrapolationLUT ( )
inline

◆ oPhiExtrapolationLUTPath()

std::string L1TMuonGlobalParamsHelper::oPhiExtrapolationLUTPath ( ) const
inline

◆ ovlNegSingleMatchQualLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUT ( )
inline

◆ ovlNegSingleMatchQualLUTfEta()

double L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTfEta ( ) const
inline

◆ ovlNegSingleMatchQualLUTfEtaCoarse()

double L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTfEtaCoarse ( ) const
inline

Definition at line 393 of file L1TMuonGlobalParamsHelper.h.

References ovlNegSingleMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

393  {
394  return pnodes_[ovlNegSingleMatchQual].dparams_.size() > dpIdx::fEtaCoarse
395  ? pnodes_[ovlNegSingleMatchQual].dparams_[dpIdx::fEtaCoarse]
396  : 0.;
397  }

◆ ovlNegSingleMatchQualLUTfPhi()

double L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTfPhi ( ) const
inline

◆ ovlNegSingleMatchQualLUTMaxDR()

double L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTMaxDR ( ) const
inline

◆ ovlNegSingleMatchQualLUTPath()

std::string L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTPath ( ) const
inline

◆ ovlPosSingleMatchQualLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUT ( )
inline

◆ ovlPosSingleMatchQualLUTfEta()

double L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTfEta ( ) const
inline

◆ ovlPosSingleMatchQualLUTfEtaCoarse()

double L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTfEtaCoarse ( ) const
inline

Definition at line 388 of file L1TMuonGlobalParamsHelper.h.

References ovlPosSingleMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

388  {
389  return pnodes_[ovlPosSingleMatchQual].dparams_.size() > dpIdx::fEtaCoarse
390  ? pnodes_[ovlPosSingleMatchQual].dparams_[dpIdx::fEtaCoarse]
391  : 0.;
392  }

◆ ovlPosSingleMatchQualLUTfPhi()

double L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTfPhi ( ) const
inline

◆ ovlPosSingleMatchQualLUTMaxDR()

double L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTMaxDR ( ) const
inline

◆ ovlPosSingleMatchQualLUTPath()

std::string L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTPath ( ) const
inline

◆ print()

void L1TMuonGlobalParamsHelper::print ( std::ostream &  out) const

Definition at line 388 of file L1TMuonGlobalParamsHelper.cc.

References absIsoCheckMemLUTPath(), bEtaExtrapolationLUTPath(), bONegMatchQualLUTfEta(), bONegMatchQualLUTfEtaCoarse(), bONegMatchQualLUTfPhi(), bONegMatchQualLUTMaxDR(), bONegMatchQualLUTPath(), bOPosMatchQualLUTfEta(), bOPosMatchQualLUTfEtaCoarse(), bOPosMatchQualLUTMaxDR(), bOPosMatchQualLUTPath(), bPhiExtrapolationLUTPath(), fEtaExtrapolationLUTPath(), fONegMatchQualLUTMaxDR(), fONegMatchQualLUTPath(), fOPosMatchQualLUTMaxDR(), fOPosMatchQualLUTPath(), fPhiExtrapolationLUTPath(), fwdNegSingleMatchQualLUTMaxDR(), fwdNegSingleMatchQualLUTPath(), fwdPosSingleMatchQualLUTMaxDR(), fwdPosSingleMatchQualLUTPath(), fwVersion(), idxSelMemEtaLUTPath(), idxSelMemPhiLUTPath(), inputsToDisable(), maskedInputs(), oEtaExtrapolationLUTPath(), oPhiExtrapolationLUTPath(), MillePedeFileConverter_cfg::out, ovlNegSingleMatchQualLUTMaxDR(), ovlNegSingleMatchQualLUTPath(), ovlPosSingleMatchQualLUTMaxDR(), ovlPosSingleMatchQualLUTPath(), relIsoCheckMemLUTPath(), sortRankLUTPath(), sortRankLUTPtFactor(), and sortRankLUTQualFactor().

388  {
389  out << "L1 MicroGMT Parameters" << std::endl;
390 
391  out << "Firmware version: " << this->fwVersion() << std::endl;
392 
393  out << "InputsToDisable: " << this->inputsToDisable() << std::endl;
394  out << " EMTF-|OMTF-| BMTF |OMTF+|EMTF+| CALO | res 0" << std::endl;
395 
396  out << "Masked Inputs: " << this->maskedInputs() << std::endl;
397  out << " EMTF-|OMTF-| BMTF |OMTF+|EMTF+| CALO | res 0" << std::endl;
398 
399  out << "LUT paths (LUTs are generated analytically if path is empty)" << std::endl;
400  out << " Abs isolation checkMem LUT path: " << this->absIsoCheckMemLUTPath() << std::endl;
401  out << " Rel isolation checkMem LUT path: " << this->relIsoCheckMemLUTPath() << std::endl;
402  out << " Index selMem phi LUT path: " << this->idxSelMemPhiLUTPath() << std::endl;
403  out << " Index selMem eta LUT path: " << this->idxSelMemEtaLUTPath() << std::endl;
404  out << " Forward pos MatchQual LUT path: " << this->fwdPosSingleMatchQualLUTPath()
405  << ", max dR (Used when LUT path empty): " << this->fwdPosSingleMatchQualLUTMaxDR() << std::endl;
406  out << " Forward neg MatchQual LUT path: " << this->fwdNegSingleMatchQualLUTPath()
407  << ", max dR (Used when LUT path empty): " << this->fwdNegSingleMatchQualLUTMaxDR() << std::endl;
408  out << " Overlap pos MatchQual LUT path: " << this->ovlPosSingleMatchQualLUTPath()
409  << ", max dR (Used when LUT path empty): " << this->ovlPosSingleMatchQualLUTMaxDR() << std::endl;
410  out << " Overlap neg MatchQual LUT path: " << this->ovlNegSingleMatchQualLUTPath()
411  << ", max dR (Used when LUT path empty): " << this->ovlNegSingleMatchQualLUTMaxDR() << std::endl;
412  out << " Barrel-Overlap pos MatchQual LUT path: " << this->bOPosMatchQualLUTPath()
413  << ", max dR (Used when LUT path empty): " << this->bOPosMatchQualLUTMaxDR()
414  << ", fEta: " << this->bOPosMatchQualLUTfEta()
415  << ", fEta when eta-fine bit isn't set: " << this->bOPosMatchQualLUTfEtaCoarse()
416  << ", fPhi: " << this->bOPosMatchQualLUTfEta() << std::endl;
417  out << " Barrel-Overlap neg MatchQual LUT path: " << this->bONegMatchQualLUTPath()
418  << ", max dR (Used when LUT path empty): " << this->bONegMatchQualLUTMaxDR()
419  << ", fEta: " << this->bONegMatchQualLUTfEta()
420  << ", fEta when eta-fine bit isn't set: " << this->bONegMatchQualLUTfEtaCoarse()
421  << ", fPhi: " << this->bONegMatchQualLUTfPhi() << std::endl;
422  out << " Forward-Overlap pos MatchQual LUT path: " << this->fOPosMatchQualLUTPath()
423  << ", max dR (Used when LUT path empty): " << this->fOPosMatchQualLUTMaxDR() << std::endl;
424  out << " Forward-Overlap neg MatchQual LUT path: " << this->fONegMatchQualLUTPath()
425  << ", max dR (Used when LUT path empty): " << this->fONegMatchQualLUTMaxDR() << std::endl;
426  out << " Barrel phi extrapolation LUT path: " << this->bPhiExtrapolationLUTPath() << std::endl;
427  out << " Overlap phi extrapolation LUT path: " << this->oPhiExtrapolationLUTPath() << std::endl;
428  out << " Forward phi extrapolation LUT path: " << this->fPhiExtrapolationLUTPath() << std::endl;
429  out << " Barrel eta extrapolation LUT path: " << this->bEtaExtrapolationLUTPath() << std::endl;
430  out << " Overlap eta extrapolation LUT path: " << this->oEtaExtrapolationLUTPath() << std::endl;
431  out << " Forward eta extrapolation LUT path: " << this->fEtaExtrapolationLUTPath() << std::endl;
432  out << " Sort rank LUT path: " << this->sortRankLUTPath()
433  << ", pT and quality factors (Used when LUT path empty): pT factor: " << this->sortRankLUTPtFactor()
434  << ", quality factor: " << this->sortRankLUTQualFactor() << std::endl;
435 }
std::string fwdPosSingleMatchQualLUTPath() const
std::bitset< 72 > maskedInputs() const
std::bitset< 72 > inputsToDisable() const
std::string oEtaExtrapolationLUTPath() const
std::string fOPosMatchQualLUTPath() const
std::string bONegMatchQualLUTPath() const
std::string fEtaExtrapolationLUTPath() const
std::string relIsoCheckMemLUTPath() const
std::string bPhiExtrapolationLUTPath() const
std::string ovlPosSingleMatchQualLUTPath() const
std::string oPhiExtrapolationLUTPath() const
std::string bOPosMatchQualLUTPath() const
std::string fwdNegSingleMatchQualLUTPath() const
std::string fPhiExtrapolationLUTPath() const
std::string absIsoCheckMemLUTPath() const
std::string fONegMatchQualLUTPath() const
std::string bEtaExtrapolationLUTPath() const
std::string ovlNegSingleMatchQualLUTPath() const

◆ relIsoCheckMemLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::relIsoCheckMemLUT ( )
inline

◆ relIsoCheckMemLUTPath()

std::string L1TMuonGlobalParamsHelper::relIsoCheckMemLUTPath ( ) const
inline

◆ setAbsIsoCheckMemLUT()

void L1TMuonGlobalParamsHelper::setAbsIsoCheckMemLUT ( const l1t::LUT lut)
inline

◆ setAbsIsoCheckMemLUTPath()

void L1TMuonGlobalParamsHelper::setAbsIsoCheckMemLUTPath ( const std::string &  path)
inline

◆ setBEtaExtrapolationLUT()

void L1TMuonGlobalParamsHelper::setBEtaExtrapolationLUT ( const l1t::LUT lut)
inline

◆ setBEtaExtrapolationLUTPath()

void L1TMuonGlobalParamsHelper::setBEtaExtrapolationLUTPath ( const std::string &  path)
inline

◆ setBmtfInputsToDisable()

void L1TMuonGlobalParamsHelper::setBmtfInputsToDisable ( const std::bitset< 12 > &  disables)
inline

◆ setBONegMatchQualLUT()

void L1TMuonGlobalParamsHelper::setBONegMatchQualLUT ( const l1t::LUT lut)
inline

◆ setBONegMatchQualLUTMaxDR()

void L1TMuonGlobalParamsHelper::setBONegMatchQualLUTMaxDR ( double  maxDR,
double  fEta,
double  fEtaCoarse,
double  fPhi 
)

◆ setBONegMatchQualLUTPath()

void L1TMuonGlobalParamsHelper::setBONegMatchQualLUTPath ( const std::string &  path)
inline

◆ setBOPosMatchQualLUT()

void L1TMuonGlobalParamsHelper::setBOPosMatchQualLUT ( const l1t::LUT lut)
inline

◆ setBOPosMatchQualLUTMaxDR()

void L1TMuonGlobalParamsHelper::setBOPosMatchQualLUTMaxDR ( double  maxDR,
double  fEta,
double  fEtaCoarse,
double  fPhi 
)

◆ setBOPosMatchQualLUTPath()

void L1TMuonGlobalParamsHelper::setBOPosMatchQualLUTPath ( const std::string &  path)
inline

◆ setBPhiExtrapolationLUT()

void L1TMuonGlobalParamsHelper::setBPhiExtrapolationLUT ( const l1t::LUT lut)
inline

◆ setBPhiExtrapolationLUTPath()

void L1TMuonGlobalParamsHelper::setBPhiExtrapolationLUTPath ( const std::string &  path)
inline

◆ setCaloInputFlags()

void L1TMuonGlobalParamsHelper::setCaloInputFlags ( const int &  nodeIdx,
const std::bitset< 28 > &  flags 
)
private

Definition at line 88 of file L1TMuonGlobalParamsHelper.cc.

References CALOINPUTS, mps_fire::i, inputFlags(), and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by setCaloInputsToDisable(), and setMaskedCaloInputs().

88  {
89  pnodes_[nodeIdx].uparams_.resize(4);
90  for (size_t i = 0; i < 28; ++i) {
91  pnodes_[nodeIdx].uparams_[CALOINPUTS] += (inputFlags.test(i) << i);
92  }
93 }
std::bitset< 72 > inputFlags(const int &nodeIdx) const

◆ setCaloInputsToDisable()

void L1TMuonGlobalParamsHelper::setCaloInputsToDisable ( const std::bitset< 28 > &  disables)
inline

◆ setEmtfnInputsToDisable()

void L1TMuonGlobalParamsHelper::setEmtfnInputsToDisable ( const std::bitset< 6 > &  disables)
inline

◆ setEmtfpInputsToDisable()

void L1TMuonGlobalParamsHelper::setEmtfpInputsToDisable ( const std::bitset< 6 > &  disables)
inline

◆ setEOmtfInputFlags()

void L1TMuonGlobalParamsHelper::setEOmtfInputFlags ( const int &  nodeIdx,
const size_t &  startIdx,
const int &  tfIdx,
const std::bitset< 6 > &  flags 
)
private

Definition at line 104 of file L1TMuonGlobalParamsHelper.cc.

References mps_fire::i, inputFlags(), and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by setEmtfnInputsToDisable(), setEmtfpInputsToDisable(), setMaskedEmtfnInputs(), setMaskedEmtfpInputs(), setMaskedOmtfnInputs(), setMaskedOmtfpInputs(), setOmtfnInputsToDisable(), and setOmtfpInputsToDisable().

107  {
108  pnodes_[nodeIdx].uparams_.resize(4);
109  for (size_t i = 0; i < 6; ++i) {
110  pnodes_[nodeIdx].uparams_[tfIdx] += (inputFlags.test(i) << (i + startIdx));
111  }
112 }
std::bitset< 72 > inputFlags(const int &nodeIdx) const

◆ setFEtaExtrapolationLUT()

void L1TMuonGlobalParamsHelper::setFEtaExtrapolationLUT ( const l1t::LUT lut)
inline

◆ setFEtaExtrapolationLUTPath()

void L1TMuonGlobalParamsHelper::setFEtaExtrapolationLUTPath ( const std::string &  path)
inline

◆ setFONegMatchQualLUT()

void L1TMuonGlobalParamsHelper::setFONegMatchQualLUT ( const l1t::LUT lut)
inline

◆ setFONegMatchQualLUTMaxDR()

void L1TMuonGlobalParamsHelper::setFONegMatchQualLUTMaxDR ( double  maxDR,
double  fEta,
double  fEtaCoarse,
double  fPhi 
)

◆ setFONegMatchQualLUTPath()

void L1TMuonGlobalParamsHelper::setFONegMatchQualLUTPath ( const std::string &  path)
inline

◆ setFOPosMatchQualLUT()

void L1TMuonGlobalParamsHelper::setFOPosMatchQualLUT ( const l1t::LUT lut)
inline

◆ setFOPosMatchQualLUTMaxDR()

void L1TMuonGlobalParamsHelper::setFOPosMatchQualLUTMaxDR ( double  maxDR,
double  fEta,
double  fEtaCoarse,
double  fPhi 
)

◆ setFOPosMatchQualLUTPath()

void L1TMuonGlobalParamsHelper::setFOPosMatchQualLUTPath ( const std::string &  path)
inline

◆ setFPhiExtrapolationLUT()

void L1TMuonGlobalParamsHelper::setFPhiExtrapolationLUT ( const l1t::LUT lut)
inline

◆ setFPhiExtrapolationLUTPath()

void L1TMuonGlobalParamsHelper::setFPhiExtrapolationLUTPath ( const std::string &  path)
inline

◆ setFwdNegSingleMatchQualLUT()

void L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUT ( const l1t::LUT lut)
inline

◆ setFwdNegSingleMatchQualLUTMaxDR()

void L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUTMaxDR ( double  maxDR,
double  fEta,
double  fPhi 
)

◆ setFwdNegSingleMatchQualLUTPath()

void L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUTPath ( const std::string &  path)
inline

◆ setFwdPosSingleMatchQualLUT()

void L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUT ( const l1t::LUT lut)
inline

◆ setFwdPosSingleMatchQualLUTMaxDR()

void L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUTMaxDR ( double  maxDR,
double  fEta,
double  fPhi 
)

◆ setFwdPosSingleMatchQualLUTPath()

void L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUTPath ( const std::string &  path)
inline

◆ setFwVersion()

void L1TMuonGlobalParamsHelper::setFwVersion ( unsigned  fwVersion)

◆ setIdxSelMemEtaLUT()

void L1TMuonGlobalParamsHelper::setIdxSelMemEtaLUT ( const l1t::LUT lut)
inline

◆ setIdxSelMemEtaLUTPath()

void L1TMuonGlobalParamsHelper::setIdxSelMemEtaLUTPath ( const std::string &  path)
inline

◆ setIdxSelMemPhiLUT()

void L1TMuonGlobalParamsHelper::setIdxSelMemPhiLUT ( const l1t::LUT lut)
inline

◆ setIdxSelMemPhiLUTPath()

void L1TMuonGlobalParamsHelper::setIdxSelMemPhiLUTPath ( const std::string &  path)
inline

◆ setInputFlags()

void L1TMuonGlobalParamsHelper::setInputFlags ( const int &  nodeIdx,
const std::bitset< 72 > &  flags 
)
private

Definition at line 72 of file L1TMuonGlobalParamsHelper.cc.

References BMTFINPUTS, BMTFLINK1, CALOINPUTS, CALOLINK1, EMTFINPUTS, EMTFNLINK1, EMTFPLINK1, mps_fire::i, inputFlags(), OMTFINPUTS, OMTFNLINK1, OMTFPLINK1, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by setInputsToDisable(), and setMaskedInputs().

72  {
73  pnodes_[nodeIdx].uparams_.resize(4);
74  for (size_t i = 0; i < 28; ++i) {
75  pnodes_[nodeIdx].uparams_[CALOINPUTS] += (inputFlags.test(CALOLINK1 + i) << i);
76  if (i < 12) {
77  pnodes_[nodeIdx].uparams_[BMTFINPUTS] += (inputFlags.test(BMTFLINK1 + i) << i);
78  if (i < 6) {
79  pnodes_[nodeIdx].uparams_[OMTFINPUTS] += (inputFlags.test(OMTFPLINK1 + i) << i);
80  pnodes_[nodeIdx].uparams_[OMTFINPUTS] += (inputFlags.test(OMTFNLINK1 + i) << (i + 6));
81  pnodes_[nodeIdx].uparams_[EMTFINPUTS] += (inputFlags.test(EMTFPLINK1 + i) << i);
82  pnodes_[nodeIdx].uparams_[EMTFINPUTS] += (inputFlags.test(EMTFNLINK1 + i) << (i + 6));
83  }
84  }
85  }
86 }
std::bitset< 72 > inputFlags(const int &nodeIdx) const

◆ setInputsToDisable()

void L1TMuonGlobalParamsHelper::setInputsToDisable ( const std::bitset< 72 > &  inputsToDisable)
inline

Definition at line 99 of file L1TMuonGlobalParamsHelper.h.

References INPUTS_TO_DISABLE, inputsToDisable(), and setInputFlags().

99  {
101  };
void setInputFlags(const int &nodeIdx, const std::bitset< 72 > &flags)
std::bitset< 72 > inputsToDisable() const

◆ setMaskedBmtfInputs()

void L1TMuonGlobalParamsHelper::setMaskedBmtfInputs ( const std::bitset< 12 > &  masked)
inline

◆ setMaskedCaloInputs()

void L1TMuonGlobalParamsHelper::setMaskedCaloInputs ( const std::bitset< 28 > &  masked)
inline

◆ setMaskedEmtfnInputs()

void L1TMuonGlobalParamsHelper::setMaskedEmtfnInputs ( const std::bitset< 6 > &  masked)
inline

◆ setMaskedEmtfpInputs()

void L1TMuonGlobalParamsHelper::setMaskedEmtfpInputs ( const std::bitset< 6 > &  masked)
inline

◆ setMaskedInputs()

void L1TMuonGlobalParamsHelper::setMaskedInputs ( const std::bitset< 72 > &  masked)
inline

Definition at line 129 of file L1TMuonGlobalParamsHelper.h.

References MASKED_INPUTS, and setInputFlags().

129 { setInputFlags(MASKED_INPUTS, masked); };
void setInputFlags(const int &nodeIdx, const std::bitset< 72 > &flags)

◆ setMaskedOmtfnInputs()

void L1TMuonGlobalParamsHelper::setMaskedOmtfnInputs ( const std::bitset< 6 > &  masked)
inline

◆ setMaskedOmtfpInputs()

void L1TMuonGlobalParamsHelper::setMaskedOmtfpInputs ( const std::bitset< 6 > &  masked)
inline

◆ setOEtaExtrapolationLUT()

void L1TMuonGlobalParamsHelper::setOEtaExtrapolationLUT ( const l1t::LUT lut)
inline

◆ setOEtaExtrapolationLUTPath()

void L1TMuonGlobalParamsHelper::setOEtaExtrapolationLUTPath ( const std::string &  path)
inline

◆ setOmtfnInputsToDisable()

void L1TMuonGlobalParamsHelper::setOmtfnInputsToDisable ( const std::bitset< 6 > &  disables)
inline

◆ setOmtfpInputsToDisable()

void L1TMuonGlobalParamsHelper::setOmtfpInputsToDisable ( const std::bitset< 6 > &  disables)
inline

◆ setOPhiExtrapolationLUT()

void L1TMuonGlobalParamsHelper::setOPhiExtrapolationLUT ( const l1t::LUT lut)
inline

◆ setOPhiExtrapolationLUTPath()

void L1TMuonGlobalParamsHelper::setOPhiExtrapolationLUTPath ( const std::string &  path)
inline

◆ setOvlNegSingleMatchQualLUT()

void L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUT ( const l1t::LUT lut)
inline

◆ setOvlNegSingleMatchQualLUTMaxDR()

void L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUTMaxDR ( double  maxDR,
double  fEta,
double  fEtaCoarse,
double  fPhi 
)

◆ setOvlNegSingleMatchQualLUTPath()

void L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUTPath ( const std::string &  path)
inline

◆ setOvlPosSingleMatchQualLUT()

void L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUT ( const l1t::LUT lut)
inline

◆ setOvlPosSingleMatchQualLUTMaxDR()

void L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUTMaxDR ( double  maxDR,
double  fEta,
double  fEtaCoarse,
double  fPhi 
)

◆ setOvlPosSingleMatchQualLUTPath()

void L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUTPath ( const std::string &  path)
inline

◆ setRelIsoCheckMemLUT()

void L1TMuonGlobalParamsHelper::setRelIsoCheckMemLUT ( const l1t::LUT lut)
inline

◆ setRelIsoCheckMemLUTPath()

void L1TMuonGlobalParamsHelper::setRelIsoCheckMemLUTPath ( const std::string &  path)
inline

◆ setSortRankLUT()

void L1TMuonGlobalParamsHelper::setSortRankLUT ( const l1t::LUT lut)
inline

◆ setSortRankLUTFactors()

void L1TMuonGlobalParamsHelper::setSortRankLUTFactors ( unsigned  ptFactor,
unsigned  qualFactor 
)
inline

◆ setSortRankLUTPath()

void L1TMuonGlobalParamsHelper::setSortRankLUTPath ( const std::string &  path)
inline

◆ setTfInputFlags()

void L1TMuonGlobalParamsHelper::setTfInputFlags ( const int &  nodeIdx,
const int &  tfIdx,
const std::bitset< 12 > &  flags 
)
private

Definition at line 95 of file L1TMuonGlobalParamsHelper.cc.

References mps_fire::i, inputFlags(), and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by setBmtfInputsToDisable(), and setMaskedBmtfInputs().

97  {
98  pnodes_[nodeIdx].uparams_.resize(4);
99  for (size_t i = 0; i < 12; ++i) {
100  pnodes_[nodeIdx].uparams_[tfIdx] += (inputFlags.test(i) << i);
101  }
102 }
std::bitset< 72 > inputFlags(const int &nodeIdx) const

◆ sortRankLUT()

l1t::LUT* L1TMuonGlobalParamsHelper::sortRankLUT ( )
inline

◆ sortRankLUTPath()

std::string L1TMuonGlobalParamsHelper::sortRankLUTPath ( ) const
inline

Definition at line 303 of file L1TMuonGlobalParamsHelper.h.

References alignmentValidation::fname, L1TMuonGlobalParams_PUBLIC::pnodes_, and sortRank.

Referenced by print().

303  {
304  return pnodes_[sortRank].sparams_.size() > spIdx::fname ? pnodes_[sortRank].sparams_[spIdx::fname] : "";
305  }
string fname
main script

◆ sortRankLUTPtFactor()

unsigned L1TMuonGlobalParamsHelper::sortRankLUTPtFactor ( ) const
inline

Definition at line 473 of file L1TMuonGlobalParamsHelper.h.

References L1TMuonGlobalParams_PUBLIC::pnodes_, and sortRank.

Referenced by print().

473  {
474  return pnodes_[sortRank].uparams_.size() > upIdx::ptFactor ? pnodes_[sortRank].uparams_[upIdx::ptFactor] : 0;
475  }

◆ sortRankLUTQualFactor()

unsigned L1TMuonGlobalParamsHelper::sortRankLUTQualFactor ( ) const
inline

Definition at line 476 of file L1TMuonGlobalParamsHelper.h.

References L1TMuonGlobalParams_PUBLIC::pnodes_, and sortRank.

Referenced by print().

476  {
477  return pnodes_[sortRank].uparams_.size() > upIdx::qualFactor ? pnodes_[sortRank].uparams_[upIdx::qualFactor] : 0;
478  }

◆ tfInputFlags()

std::bitset< 12 > L1TMuonGlobalParamsHelper::tfInputFlags ( const int &  nodeIdx,
const int &  tfIdx 
) const
private

Definition at line 47 of file L1TMuonGlobalParamsHelper.cc.

References L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by bmtfInputsToDisable(), emtfInputsToDisable(), maskedBmtfInputs(), maskedEmtfInputs(), maskedOmtfInputs(), and omtfInputsToDisable().

47  {
48  if (pnodes_[nodeIdx].uparams_.size() == 4) {
49  return std::bitset<12>(pnodes_[nodeIdx].uparams_[tfIdx]);
50  } else {
51  return std::bitset<12>();
52  }
53 }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const L1TMuonGlobalParamsHelper p 
)
friend

Definition at line 489 of file L1TMuonGlobalParamsHelper.h.

489  {
490  p.print(o);
491  return o;
492  }