CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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, maxdrEtaFine =1 }
 
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 Member Functions

l1t::LUTabsIsoCheckMemLUT ()
 
std::string absIsoCheckMemLUTPath () const
 
l1t::LUTbEtaExtrapolationLUT ()
 
std::string bEtaExtrapolationLUTPath () const
 
std::bitset< 12 > bmtfInputsToDisable () const
 
l1t::LUTbONegMatchQualLUT ()
 
double bONegMatchQualLUTMaxDR () const
 
double bONegMatchQualLUTMaxDREtaFine () const
 
std::string bONegMatchQualLUTPath () const
 
l1t::LUTbOPosMatchQualLUT ()
 
double bOPosMatchQualLUTMaxDR () const
 
double bOPosMatchQualLUTMaxDREtaFine () 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 fONegMatchQualLUTMaxDR () const
 
std::string fONegMatchQualLUTPath () const
 
l1t::LUTfOPosMatchQualLUT ()
 
double fOPosMatchQualLUTMaxDR () const
 
std::string fOPosMatchQualLUTPath () const
 
l1t::LUTfPhiExtrapolationLUT ()
 
std::string fPhiExtrapolationLUTPath () const
 
l1t::LUTfwdNegSingleMatchQualLUT ()
 
double fwdNegSingleMatchQualLUTMaxDR () const
 
std::string fwdNegSingleMatchQualLUTPath () const
 
l1t::LUTfwdPosSingleMatchQualLUT ()
 
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 &)
 
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 ovlNegSingleMatchQualLUTMaxDR () const
 
std::string ovlNegSingleMatchQualLUTPath () const
 
l1t::LUTovlPosSingleMatchQualLUT ()
 
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 (std::string path)
 
void setBEtaExtrapolationLUT (const l1t::LUT &lut)
 
void setBEtaExtrapolationLUTPath (std::string path)
 
void setBmtfInputsToDisable (const std::bitset< 12 > &disables)
 
void setBONegMatchQualLUT (const l1t::LUT &lut)
 
void setBONegMatchQualLUTMaxDR (double maxDR, double maxDREtaFine)
 
void setBONegMatchQualLUTPath (std::string path)
 
void setBOPosMatchQualLUT (const l1t::LUT &lut)
 
void setBOPosMatchQualLUTMaxDR (double maxDR, double maxDREtaFine)
 
void setBOPosMatchQualLUTPath (std::string path)
 
void setBPhiExtrapolationLUT (const l1t::LUT &lut)
 
void setBPhiExtrapolationLUTPath (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 (std::string path)
 
void setFONegMatchQualLUT (const l1t::LUT &lut)
 
void setFONegMatchQualLUTMaxDR (double maxDR)
 
void setFONegMatchQualLUTPath (std::string path)
 
void setFOPosMatchQualLUT (const l1t::LUT &lut)
 
void setFOPosMatchQualLUTMaxDR (double maxDR)
 
void setFOPosMatchQualLUTPath (std::string path)
 
void setFPhiExtrapolationLUT (const l1t::LUT &lut)
 
void setFPhiExtrapolationLUTPath (std::string path)
 
void setFwdNegSingleMatchQualLUT (const l1t::LUT &lut)
 
void setFwdNegSingleMatchQualLUTMaxDR (double maxDR)
 
void setFwdNegSingleMatchQualLUTPath (std::string path)
 
void setFwdPosSingleMatchQualLUT (const l1t::LUT &lut)
 
void setFwdPosSingleMatchQualLUTMaxDR (double maxDR)
 
void setFwdPosSingleMatchQualLUTPath (std::string path)
 
void setFwVersion (unsigned fwVersion)
 
void setIdxSelMemEtaLUT (const l1t::LUT &lut)
 
void setIdxSelMemEtaLUTPath (std::string path)
 
void setIdxSelMemPhiLUT (const l1t::LUT &lut)
 
void setIdxSelMemPhiLUTPath (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 (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 (std::string path)
 
void setOvlNegSingleMatchQualLUT (const l1t::LUT &lut)
 
void setOvlNegSingleMatchQualLUTMaxDR (double maxDR)
 
void setOvlNegSingleMatchQualLUTPath (std::string path)
 
void setOvlPosSingleMatchQualLUT (const l1t::LUT &lut)
 
void setOvlPosSingleMatchQualLUTMaxDR (double maxDR)
 
void setOvlPosSingleMatchQualLUTPath (std::string path)
 
void setRelIsoCheckMemLUT (const l1t::LUT &lut)
 
void setRelIsoCheckMemLUTPath (std::string path)
 
void setSortRankLUT (const l1t::LUT &lut)
 
void setSortRankLUTFactors (unsigned ptFactor, unsigned qualFactor)
 
void setSortRankLUTPath (std::string path)
 
l1t::LUTsortRankLUT ()
 
std::string sortRankLUTPath () const
 
unsigned sortRankLUTPtFactor () const
 
unsigned sortRankLUTQualFactor () const
 
 ~L1TMuonGlobalParamsHelper ()
 

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 21 of file L1TMuonGlobalParamsHelper.h.

Member Enumeration Documentation

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 24 of file L1TMuonGlobalParamsHelper.h.

24  {absIsoCheckMem=0,
26  idxSelMemPhi=2,
27  idxSelMemEta=3,
34  fOPosMatchQual=10,
35  fONegMatchQual=11,
42  sortRank=18,
43  FWVERSION=19,
45  MASKED_INPUTS=21,
47  };
Enumerator
fname 

Definition at line 50 of file L1TMuonGlobalParamsHelper.h.

Constructor & Destructor Documentation

L1TMuonGlobalParamsHelper::L1TMuonGlobalParamsHelper ( )
inline
L1TMuonGlobalParamsHelper::L1TMuonGlobalParamsHelper ( const L1TMuonGlobalParams p)
L1TMuonGlobalParamsHelper::~L1TMuonGlobalParamsHelper ( )
inline

Definition at line 63 of file L1TMuonGlobalParamsHelper.h.

63 {}

Member Function Documentation

l1t::LUT* L1TMuonGlobalParamsHelper::absIsoCheckMemLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::absIsoCheckMemLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::bEtaExtrapolationLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::bEtaExtrapolationLUTPath ( ) const
inline
std::bitset<12> L1TMuonGlobalParamsHelper::bmtfInputsToDisable ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::bONegMatchQualLUT ( )
inline
double L1TMuonGlobalParamsHelper::bONegMatchQualLUTMaxDR ( ) const
inline

Definition at line 191 of file L1TMuonGlobalParamsHelper.h.

References bONegMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by l1t::MicroGMTCancelOutUnit::initialise(), and print().

191 { return pnodes_[bONegMatchQual].dparams_.size() > dpIdx::maxdr ? pnodes_[bONegMatchQual].dparams_[dpIdx::maxdr] : 0.; }
double L1TMuonGlobalParamsHelper::bONegMatchQualLUTMaxDREtaFine ( ) const
inline

Definition at line 193 of file L1TMuonGlobalParamsHelper.h.

References bONegMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by print().

193 { return pnodes_[bONegMatchQual].dparams_.size() > dpIdx::maxdrEtaFine ? pnodes_[bONegMatchQual].dparams_[dpIdx::maxdrEtaFine] : 0.; }
std::string L1TMuonGlobalParamsHelper::bONegMatchQualLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::bOPosMatchQualLUT ( )
inline
double L1TMuonGlobalParamsHelper::bOPosMatchQualLUTMaxDR ( ) const
inline

Definition at line 190 of file L1TMuonGlobalParamsHelper.h.

References bOPosMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by l1t::MicroGMTCancelOutUnit::initialise(), and print().

190 { return pnodes_[bOPosMatchQual].dparams_.size() > dpIdx::maxdr ? pnodes_[bOPosMatchQual].dparams_[dpIdx::maxdr] : 0.; }
double L1TMuonGlobalParamsHelper::bOPosMatchQualLUTMaxDREtaFine ( ) const
inline

Definition at line 192 of file L1TMuonGlobalParamsHelper.h.

References bOPosMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by print().

192 { return pnodes_[bOPosMatchQual].dparams_.size() > dpIdx::maxdrEtaFine ? pnodes_[bOPosMatchQual].dparams_[dpIdx::maxdrEtaFine] : 0.; }
std::string L1TMuonGlobalParamsHelper::bOPosMatchQualLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::bPhiExtrapolationLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::bPhiExtrapolationLUTPath ( ) const
inline
std::bitset< 28 > L1TMuonGlobalParamsHelper::caloInputFlags ( const int &  nodeIdx) const
private

Definition at line 38 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 }
std::bitset<28> L1TMuonGlobalParamsHelper::caloInputsToDisable ( ) const
inline
std::bitset<12> L1TMuonGlobalParamsHelper::emtfInputsToDisable ( ) const
inline
std::bitset<6> L1TMuonGlobalParamsHelper::emtfnInputsToDisable ( ) const
inline
std::bitset<6> L1TMuonGlobalParamsHelper::emtfpInputsToDisable ( ) const
inline
std::bitset< 6 > L1TMuonGlobalParamsHelper::eomtfInputFlags ( const int &  nodeIdx,
const size_t &  startIdx,
const int &  tfIdx 
) const
private

Definition at line 58 of file L1TMuonGlobalParamsHelper.cc.

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

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

59 {
60  std::bitset<6> inputFlags;
61  if (pnodes_[nodeIdx].uparams_.size() == 4) {
62  for (size_t i = 0; i < 6; ++i) {
63  inputFlags[i] = ((pnodes_[nodeIdx].uparams_[tfIdx] >> (i + startIdx)) & 0x1);
64  }
65  }
66  return inputFlags;
67 }
int i
Definition: DBlmapReader.cc:9
std::bitset< 72 > inputFlags(const int &nodeIdx) const
l1t::LUT* L1TMuonGlobalParamsHelper::fEtaExtrapolationLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::fEtaExtrapolationLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::fONegMatchQualLUT ( )
inline
double L1TMuonGlobalParamsHelper::fONegMatchQualLUTMaxDR ( ) const
inline

Definition at line 195 of file L1TMuonGlobalParamsHelper.h.

References fONegMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by l1t::MicroGMTCancelOutUnit::initialise(), and print().

195 { return pnodes_[fONegMatchQual].dparams_.size() > dpIdx::maxdr ? pnodes_[fONegMatchQual].dparams_[dpIdx::maxdr] : 0.; }
std::string L1TMuonGlobalParamsHelper::fONegMatchQualLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::fOPosMatchQualLUT ( )
inline
double L1TMuonGlobalParamsHelper::fOPosMatchQualLUTMaxDR ( ) const
inline

Definition at line 194 of file L1TMuonGlobalParamsHelper.h.

References fOPosMatchQual, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by l1t::MicroGMTCancelOutUnit::initialise(), and print().

194 { return pnodes_[fOPosMatchQual].dparams_.size() > dpIdx::maxdr ? pnodes_[fOPosMatchQual].dparams_[dpIdx::maxdr] : 0.; }
std::string L1TMuonGlobalParamsHelper::fOPosMatchQualLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::fPhiExtrapolationLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::fPhiExtrapolationLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUT ( )
inline
double L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUTMaxDR ( ) const
inline
std::string L1TMuonGlobalParamsHelper::fwdNegSingleMatchQualLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUT ( )
inline
double L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUTMaxDR ( ) const
inline
std::string L1TMuonGlobalParamsHelper::fwdPosSingleMatchQualLUTPath ( ) const
inline
unsigned L1TMuonGlobalParamsHelper::fwVersion ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::idxSelMemEtaLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::idxSelMemEtaLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::idxSelMemPhiLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::idxSelMemPhiLUTPath ( ) const
inline
std::bitset< 72 > L1TMuonGlobalParamsHelper::inputFlags ( const int &  nodeIdx) const
private

Definition at line 11 of file L1TMuonGlobalParamsHelper.cc.

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

Referenced by eomtfInputFlags(), inputsToDisable(), and maskedInputs().

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

Definition at line 70 of file L1TMuonGlobalParamsHelper.h.

References inputFlags(), and INPUTS_TO_DISABLE.

Referenced by print().

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

Definition at line 89 of file L1TMuonGlobalParamsHelper.h.

References caloInputFlags(), and MASKED_INPUTS.

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

Definition at line 96 of file L1TMuonGlobalParamsHelper.h.

References EMTFINPUTS, eomtfInputFlags(), and MASKED_INPUTS.

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

Definition at line 95 of file L1TMuonGlobalParamsHelper.h.

References EMTFINPUTS, eomtfInputFlags(), and MASKED_INPUTS.

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

Definition at line 88 of file L1TMuonGlobalParamsHelper.h.

References inputFlags(), and MASKED_INPUTS.

Referenced by print().

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

Definition at line 94 of file L1TMuonGlobalParamsHelper.h.

References eomtfInputFlags(), MASKED_INPUTS, and OMTFINPUTS.

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

Definition at line 93 of file L1TMuonGlobalParamsHelper.h.

References eomtfInputFlags(), MASKED_INPUTS, and OMTFINPUTS.

std::bitset< 6 > eomtfInputFlags(const int &nodeIdx, const size_t &startIdx, const int &tfIdx) const
l1t::LUT* L1TMuonGlobalParamsHelper::oEtaExtrapolationLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::oEtaExtrapolationLUTPath ( ) const
inline
std::bitset<12> L1TMuonGlobalParamsHelper::omtfInputsToDisable ( ) const
inline
std::bitset<6> L1TMuonGlobalParamsHelper::omtfnInputsToDisable ( ) const
inline
std::bitset<6> L1TMuonGlobalParamsHelper::omtfpInputsToDisable ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::oPhiExtrapolationLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::oPhiExtrapolationLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUT ( )
inline
double L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTMaxDR ( ) const
inline
std::string L1TMuonGlobalParamsHelper::ovlNegSingleMatchQualLUTPath ( ) const
inline
l1t::LUT* L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUT ( )
inline
double L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTMaxDR ( ) const
inline
std::string L1TMuonGlobalParamsHelper::ovlPosSingleMatchQualLUTPath ( ) const
inline
void L1TMuonGlobalParamsHelper::print ( std::ostream &  out) const

Definition at line 122 of file L1TMuonGlobalParamsHelper.cc.

References absIsoCheckMemLUTPath(), bEtaExtrapolationLUTPath(), bONegMatchQualLUTMaxDR(), bONegMatchQualLUTMaxDREtaFine(), bONegMatchQualLUTPath(), bOPosMatchQualLUTMaxDR(), bOPosMatchQualLUTMaxDREtaFine(), bOPosMatchQualLUTPath(), bPhiExtrapolationLUTPath(), fEtaExtrapolationLUTPath(), fONegMatchQualLUTMaxDR(), fONegMatchQualLUTPath(), fOPosMatchQualLUTMaxDR(), fOPosMatchQualLUTPath(), fPhiExtrapolationLUTPath(), fwdNegSingleMatchQualLUTMaxDR(), fwdNegSingleMatchQualLUTPath(), fwdPosSingleMatchQualLUTMaxDR(), fwdPosSingleMatchQualLUTPath(), fwVersion(), idxSelMemEtaLUTPath(), idxSelMemPhiLUTPath(), inputsToDisable(), maskedInputs(), oEtaExtrapolationLUTPath(), oPhiExtrapolationLUTPath(), ovlNegSingleMatchQualLUTMaxDR(), ovlNegSingleMatchQualLUTPath(), ovlPosSingleMatchQualLUTMaxDR(), ovlPosSingleMatchQualLUTPath(), relIsoCheckMemLUTPath(), sortRankLUTPath(), sortRankLUTPtFactor(), and sortRankLUTQualFactor().

122  {
123 
124  out << "L1 MicroGMT Parameters" << std::endl;
125 
126  out << "Firmware version: " << this->fwVersion() << std::endl;
127 
128  out << "InputsToDisable: " << this->inputsToDisable() << std::endl;
129  out << " EMTF-|OMTF-| BMTF |OMTF+|EMTF+| CALO | res 0" << std::endl;
130 
131  out << "Masked Inputs: " << this->maskedInputs() << std::endl;
132  out << " EMTF-|OMTF-| BMTF |OMTF+|EMTF+| CALO | res 0" << std::endl;
133 
134  out << "LUT paths (LUTs are generated analytically if path is empty)" << std::endl;
135  out << " Abs isolation checkMem LUT path: " << this->absIsoCheckMemLUTPath() << std::endl;
136  out << " Rel isolation checkMem LUT path: " << this->relIsoCheckMemLUTPath() << std::endl;
137  out << " Index selMem phi LUT path: " << this->idxSelMemPhiLUTPath() << std::endl;
138  out << " Index selMem eta LUT path: " << this->idxSelMemEtaLUTPath() << std::endl;
139  out << " Forward pos MatchQual LUT path: " << this->fwdPosSingleMatchQualLUTPath() << ", max dR (Used when LUT path empty): " << this->fwdPosSingleMatchQualLUTMaxDR() << std::endl;
140  out << " Forward neg MatchQual LUT path: " << this->fwdNegSingleMatchQualLUTPath() << ", max dR (Used when LUT path empty): " << this->fwdNegSingleMatchQualLUTMaxDR() << std::endl;
141  out << " Overlap pos MatchQual LUT path: " << this->ovlPosSingleMatchQualLUTPath() << ", max dR (Used when LUT path empty): " << this->ovlPosSingleMatchQualLUTMaxDR() << std::endl;
142  out << " Overlap neg MatchQual LUT path: " << this->ovlNegSingleMatchQualLUTPath() << ", max dR (Used when LUT path empty): " << this->ovlNegSingleMatchQualLUTMaxDR() << std::endl;
143  out << " Barrel-Overlap pos MatchQual LUT path: " << this->bOPosMatchQualLUTPath() << ", max dR (Used when LUT path empty): " << this->bOPosMatchQualLUTMaxDR() << ", max dR when eta-fine bit set: " << this->bOPosMatchQualLUTMaxDREtaFine() << std::endl;
144  out << " Barrel-Overlap neg MatchQual LUT path: " << this->bONegMatchQualLUTPath() << ", max dR (Used when LUT path empty): " << this->bONegMatchQualLUTMaxDR() << ", max dR when eta-fine bit set: " << this->bONegMatchQualLUTMaxDREtaFine() << std::endl;
145  out << " Forward-Overlap pos MatchQual LUT path: " << this->fOPosMatchQualLUTPath() << ", max dR (Used when LUT path empty): " << this->fOPosMatchQualLUTMaxDR() << std::endl;
146  out << " Forward-Overlap neg MatchQual LUT path: " << this->fONegMatchQualLUTPath() << ", max dR (Used when LUT path empty): " << this->fONegMatchQualLUTMaxDR() << std::endl;
147  out << " Barrel phi extrapolation LUT path: " << this->bPhiExtrapolationLUTPath() << std::endl;
148  out << " Overlap phi extrapolation LUT path: " << this->oPhiExtrapolationLUTPath() << std::endl;
149  out << " Forward phi extrapolation LUT path: " << this->fPhiExtrapolationLUTPath() << std::endl;
150  out << " Barrel eta extrapolation LUT path: " << this->bEtaExtrapolationLUTPath() << std::endl;
151  out << " Overlap eta extrapolation LUT path: " << this->oEtaExtrapolationLUTPath() << std::endl;
152  out << " Forward eta extrapolation LUT path: " << this->fEtaExtrapolationLUTPath() << std::endl;
153  out << " Sort rank LUT path: " << this->sortRankLUTPath() << ", pT and quality factors (Used when LUT path empty): pT factor: " << this->sortRankLUTPtFactor() << ", quality factor: " << this->sortRankLUTQualFactor() << std::endl;
154 }
std::string oEtaExtrapolationLUTPath() const
std::string fEtaExtrapolationLUTPath() const
std::string fONegMatchQualLUTPath() const
std::string idxSelMemPhiLUTPath() const
std::string relIsoCheckMemLUTPath() const
std::string fwdPosSingleMatchQualLUTPath() const
std::bitset< 72 > inputsToDisable() const
std::string absIsoCheckMemLUTPath() const
std::string oPhiExtrapolationLUTPath() const
std::string ovlPosSingleMatchQualLUTPath() const
std::string bPhiExtrapolationLUTPath() const
std::string bONegMatchQualLUTPath() const
std::string fOPosMatchQualLUTPath() const
std::string bEtaExtrapolationLUTPath() const
std::string fPhiExtrapolationLUTPath() const
std::bitset< 72 > maskedInputs() const
std::string idxSelMemEtaLUTPath() const
std::string bOPosMatchQualLUTPath() const
std::string fwdNegSingleMatchQualLUTPath() const
std::string ovlNegSingleMatchQualLUTPath() const
l1t::LUT* L1TMuonGlobalParamsHelper::relIsoCheckMemLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::relIsoCheckMemLUTPath ( ) const
inline
void L1TMuonGlobalParamsHelper::setAbsIsoCheckMemLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setAbsIsoCheckMemLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setBEtaExtrapolationLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setBEtaExtrapolationLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setBmtfInputsToDisable ( const std::bitset< 12 > &  disables)
inline
void L1TMuonGlobalParamsHelper::setBONegMatchQualLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setBONegMatchQualLUTMaxDR ( double  maxDR,
double  maxDREtaFine 
)
inline
void L1TMuonGlobalParamsHelper::setBONegMatchQualLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setBOPosMatchQualLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setBOPosMatchQualLUTMaxDR ( double  maxDR,
double  maxDREtaFine 
)
inline
void L1TMuonGlobalParamsHelper::setBOPosMatchQualLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setBPhiExtrapolationLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setBPhiExtrapolationLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setCaloInputFlags ( const int &  nodeIdx,
const std::bitset< 28 > &  flags 
)
private

Definition at line 95 of file L1TMuonGlobalParamsHelper.cc.

References CALOINPUTS, i, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by setCaloInputsToDisable(), and setMaskedCaloInputs().

96 {
97  pnodes_[nodeIdx].uparams_.resize(4);
98  for (size_t i = 0; i < 28; ++i) {
99  pnodes_[nodeIdx].uparams_[CALOINPUTS] += (inputFlags.test(i) << i);
100  }
101 }
int i
Definition: DBlmapReader.cc:9
std::bitset< 72 > inputFlags(const int &nodeIdx) const
void L1TMuonGlobalParamsHelper::setCaloInputsToDisable ( const std::bitset< 28 > &  disables)
inline
void L1TMuonGlobalParamsHelper::setEmtfnInputsToDisable ( const std::bitset< 6 > &  disables)
inline
void L1TMuonGlobalParamsHelper::setEmtfpInputsToDisable ( const std::bitset< 6 > &  disables)
inline
void L1TMuonGlobalParamsHelper::setEOmtfInputFlags ( const int &  nodeIdx,
const size_t &  startIdx,
const int &  tfIdx,
const std::bitset< 6 > &  flags 
)
private

Definition at line 113 of file L1TMuonGlobalParamsHelper.cc.

References i, and L1TMuonGlobalParams_PUBLIC::pnodes_.

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

114 {
115  pnodes_[nodeIdx].uparams_.resize(4);
116  for (size_t i = 0; i < 6; ++i) {
117  pnodes_[nodeIdx].uparams_[tfIdx] += (inputFlags.test(i) << (i + startIdx));
118  }
119 }
int i
Definition: DBlmapReader.cc:9
std::bitset< 72 > inputFlags(const int &nodeIdx) const
void L1TMuonGlobalParamsHelper::setFEtaExtrapolationLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setFEtaExtrapolationLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setFONegMatchQualLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setFONegMatchQualLUTMaxDR ( double  maxDR)
inline
void L1TMuonGlobalParamsHelper::setFONegMatchQualLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setFOPosMatchQualLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setFOPosMatchQualLUTMaxDR ( double  maxDR)
inline
void L1TMuonGlobalParamsHelper::setFOPosMatchQualLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setFPhiExtrapolationLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setFPhiExtrapolationLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUTMaxDR ( double  maxDR)
inline
void L1TMuonGlobalParamsHelper::setFwdNegSingleMatchQualLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUTMaxDR ( double  maxDR)
inline
void L1TMuonGlobalParamsHelper::setFwdPosSingleMatchQualLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setFwVersion ( unsigned  fwVersion)
void L1TMuonGlobalParamsHelper::setIdxSelMemEtaLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setIdxSelMemEtaLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setIdxSelMemPhiLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setIdxSelMemPhiLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setInputFlags ( const int &  nodeIdx,
const std::bitset< 72 > &  flags 
)
private

Definition at line 77 of file L1TMuonGlobalParamsHelper.cc.

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

Referenced by setInputsToDisable(), and setMaskedInputs().

78 {
79  pnodes_[nodeIdx].uparams_.resize(4);
80  for (size_t i = 0; i < 28; ++i) {
81  pnodes_[nodeIdx].uparams_[CALOINPUTS] += (inputFlags.test(CALOLINK1 + i) << i);
82  if (i < 12) {
83  pnodes_[nodeIdx].uparams_[BMTFINPUTS] += (inputFlags.test(BMTFLINK1 + i) << i);
84  if (i < 6) {
85  pnodes_[nodeIdx].uparams_[OMTFINPUTS] += (inputFlags.test(OMTFPLINK1 + i) << i);
86  pnodes_[nodeIdx].uparams_[OMTFINPUTS] += (inputFlags.test(OMTFNLINK1 + i) << (i + 6));
87  pnodes_[nodeIdx].uparams_[EMTFINPUTS] += (inputFlags.test(EMTFPLINK1 + i) << i);
88  pnodes_[nodeIdx].uparams_[EMTFINPUTS] += (inputFlags.test(EMTFNLINK1 + i) << (i + 6));
89  }
90  }
91  }
92 }
int i
Definition: DBlmapReader.cc:9
std::bitset< 72 > inputFlags(const int &nodeIdx) const
void L1TMuonGlobalParamsHelper::setInputsToDisable ( const std::bitset< 72 > &  inputsToDisable)
inline

Definition at line 79 of file L1TMuonGlobalParamsHelper.h.

References INPUTS_TO_DISABLE, and setInputFlags().

void L1TMuonGlobalParamsHelper::setMaskedBmtfInputs ( const std::bitset< 12 > &  masked)
inline
void L1TMuonGlobalParamsHelper::setMaskedCaloInputs ( const std::bitset< 28 > &  masked)
inline
void L1TMuonGlobalParamsHelper::setMaskedEmtfnInputs ( const std::bitset< 6 > &  masked)
inline
void L1TMuonGlobalParamsHelper::setMaskedEmtfpInputs ( const std::bitset< 6 > &  masked)
inline
void L1TMuonGlobalParamsHelper::setMaskedInputs ( const std::bitset< 72 > &  masked)
inline

Definition at line 97 of file L1TMuonGlobalParamsHelper.h.

References MASKED_INPUTS, and setInputFlags().

97 { setInputFlags(MASKED_INPUTS, masked); };
void setInputFlags(const int &nodeIdx, const std::bitset< 72 > &flags)
void L1TMuonGlobalParamsHelper::setMaskedOmtfnInputs ( const std::bitset< 6 > &  masked)
inline
void L1TMuonGlobalParamsHelper::setMaskedOmtfpInputs ( const std::bitset< 6 > &  masked)
inline
void L1TMuonGlobalParamsHelper::setOEtaExtrapolationLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setOEtaExtrapolationLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setOmtfnInputsToDisable ( const std::bitset< 6 > &  disables)
inline
void L1TMuonGlobalParamsHelper::setOmtfpInputsToDisable ( const std::bitset< 6 > &  disables)
inline
void L1TMuonGlobalParamsHelper::setOPhiExtrapolationLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setOPhiExtrapolationLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUTMaxDR ( double  maxDR)
inline
void L1TMuonGlobalParamsHelper::setOvlNegSingleMatchQualLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUTMaxDR ( double  maxDR)
inline
void L1TMuonGlobalParamsHelper::setOvlPosSingleMatchQualLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setRelIsoCheckMemLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setRelIsoCheckMemLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setSortRankLUT ( const l1t::LUT lut)
inline
void L1TMuonGlobalParamsHelper::setSortRankLUTFactors ( unsigned  ptFactor,
unsigned  qualFactor 
)
inline
void L1TMuonGlobalParamsHelper::setSortRankLUTPath ( std::string  path)
inline
void L1TMuonGlobalParamsHelper::setTfInputFlags ( const int &  nodeIdx,
const int &  tfIdx,
const std::bitset< 12 > &  flags 
)
private

Definition at line 104 of file L1TMuonGlobalParamsHelper.cc.

References i, and L1TMuonGlobalParams_PUBLIC::pnodes_.

Referenced by setBmtfInputsToDisable(), and setMaskedBmtfInputs().

105 {
106  pnodes_[nodeIdx].uparams_.resize(4);
107  for (size_t i = 0; i < 12; ++i) {
108  pnodes_[nodeIdx].uparams_[tfIdx] += (inputFlags.test(i) << i);
109  }
110 }
int i
Definition: DBlmapReader.cc:9
std::bitset< 72 > inputFlags(const int &nodeIdx) const
l1t::LUT* L1TMuonGlobalParamsHelper::sortRankLUT ( )
inline
std::string L1TMuonGlobalParamsHelper::sortRankLUTPath ( ) const
inline
unsigned L1TMuonGlobalParamsHelper::sortRankLUTPtFactor ( ) const
inline

Definition at line 206 of file L1TMuonGlobalParamsHelper.h.

References L1TMuonGlobalParams_PUBLIC::pnodes_, and sortRank.

Referenced by print().

206 { return pnodes_[sortRank].uparams_.size() > upIdx::ptFactor ? pnodes_[sortRank].uparams_[upIdx::ptFactor] : 0; }
unsigned L1TMuonGlobalParamsHelper::sortRankLUTQualFactor ( ) const
inline

Definition at line 207 of file L1TMuonGlobalParamsHelper.h.

References L1TMuonGlobalParams_PUBLIC::pnodes_, and sortRank.

Referenced by print().

207 { return pnodes_[sortRank].uparams_.size() > upIdx::qualFactor ? pnodes_[sortRank].uparams_[upIdx::qualFactor] : 0; }
std::bitset< 12 > L1TMuonGlobalParamsHelper::tfInputFlags ( const int &  nodeIdx,
const int &  tfIdx 
) const
private

Definition at line 48 of file L1TMuonGlobalParamsHelper.cc.

References L1TMuonGlobalParams_PUBLIC::pnodes_.

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

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

Friends And Related Function Documentation

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

Definition at line 212 of file L1TMuonGlobalParamsHelper.h.

212 { p.print(o); return o; }
void print(std::ostream &) const