CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes
L1MuGMTRegMMConfig Class Reference

GMT Register that implements enum of merge methods. More...

#include <L1MuGMTReg.h>

Inheritance diagram for L1MuGMTRegMMConfig:
L1MuGMTReg L1MuGMTRegMMConfigCharge L1MuGMTRegMMConfigEta L1MuGMTRegMMConfigMIPISO L1MuGMTRegMMConfigPhi L1MuGMTRegMMConfigPt L1MuGMTRegMMConfigSRK L1MuGMTRegMMConfigISO L1MuGMTRegMMConfigMIP

Public Types

enum  MergeMethods {
  takeDTCSC, takeRPC, byRank, byMinPt,
  byCombi, Special
}
 

Public Member Functions

std::string getName () override
 get Name More...
 
 L1MuGMTRegMMConfig (const std::string &param, MergeMethods def_brl, MergeMethods def_fwd)
 
void setMergeMethod ()
 
 ~L1MuGMTRegMMConfig () override
 
- Public Member Functions inherited from L1MuGMTReg
unsigned getNumberOfInstances ()
 get number on instances More...
 
unsigned getValue (int idx)
 get Value More...
 
 L1MuGMTReg (int ninst=2)
 default constructor More...
 
virtual ~L1MuGMTReg ()
 destructor More...
 

Protected Attributes

MergeMethods m_default [2]
 
std::string m_param
 
- Protected Attributes inherited from L1MuGMTReg
std::vector< unsigned > m_value
 

Detailed Description

GMT Register that implements enum of merge methods.

Definition at line 71 of file L1MuGMTReg.h.

Member Enumeration Documentation

◆ MergeMethods

Constructor & Destructor Documentation

◆ L1MuGMTRegMMConfig()

L1MuGMTRegMMConfig::L1MuGMTRegMMConfig ( const std::string &  param,
MergeMethods  def_brl,
MergeMethods  def_fwd 
)
inline

Definition at line 76 of file L1MuGMTReg.h.

References m_default, and setMergeMethod().

76  : m_param(param) {
77  m_default[0] = def_brl;
78  m_default[1] = def_fwd;
80  };
std::string m_param
Definition: L1MuGMTReg.h:136
MergeMethods m_default[2]
Definition: L1MuGMTReg.h:140
void setMergeMethod()
Definition: L1MuGMTReg.h:89

◆ ~L1MuGMTRegMMConfig()

L1MuGMTRegMMConfig::~L1MuGMTRegMMConfig ( )
inlineoverride

Definition at line 83 of file L1MuGMTReg.h.

83 {}

Member Function Documentation

◆ getName()

std::string L1MuGMTRegMMConfig::getName ( )
inlineoverridevirtual

get Name

Implements L1MuGMTReg.

Definition at line 86 of file L1MuGMTReg.h.

References m_param.

Referenced by plotting.Plot::draw().

86 { return "MMConfig_" + m_param; };
std::string m_param
Definition: L1MuGMTReg.h:136

◆ setMergeMethod()

void L1MuGMTRegMMConfig::setMergeMethod ( )
inline

Definition at line 89 of file L1MuGMTReg.h.

References byCombi, byMinPt, byRank, L1MuGMTConfig::Debug(), L1MuGMTConfig::getGMTParams(), L1MuGMTParameters::getMergeMethodChargeBrl(), L1MuGMTParameters::getMergeMethodChargeFwd(), L1MuGMTParameters::getMergeMethodEtaBrl(), L1MuGMTParameters::getMergeMethodEtaFwd(), L1MuGMTParameters::getMergeMethodPhiBrl(), L1MuGMTParameters::getMergeMethodPhiFwd(), L1MuGMTParameters::getMergeMethodPtBrl(), L1MuGMTParameters::getMergeMethodPtFwd(), cuy::ii, createfilelist::int, m_default, m_param, L1MuGMTReg::m_value, Special, AlCaHLTBitMon_QueryRunRegistry::string, takeDTCSC, and takeRPC.

Referenced by L1MuGMTRegMMConfig().

89  {
90  static MergeMethods avlMethods[6] = {takeDTCSC, takeRPC, byRank, byMinPt, byCombi, Special};
91  std::string mn[6] = {"takeDT", "takeRPC", "byRank", "byMinPt", "byCombi", "Special"};
92 
93  MergeMethods mm;
94  std::string mm_str;
95 
96  mm = m_default[0];
97  if (m_param == "Phi")
99  else if (m_param == "Eta")
101  else if (m_param == "Pt")
103  else if (m_param == "Charge")
105  for (int ii = 0; ii < 6; ii++)
106  if (mm_str == mn[ii]) {
107  mm = avlMethods[ii];
108  break;
109  }
110  m_value[0] = 1 << (5 - (int)MergeMethods(mm));
111  if (L1MuGMTConfig::Debug(1))
112  edm::LogVerbatim("GMT_Register_Info") << " "
113  << "MergeMethod" << m_param << "Brl"
114  << " is " << mm << "( value " << m_value[0] << " )";
115 
116  mm = m_default[1];
117  mn[0] = "takeCSC";
118  if (m_param == "Phi")
120  else if (m_param == "Eta")
122  else if (m_param == "Pt")
124  else if (m_param == "Charge")
126  for (int ii = 0; ii < 6; ii++)
127  if (mm_str == mn[ii]) {
128  mm = avlMethods[ii];
129  break;
130  }
131  m_value[1] = 1 << (5 - (int)MergeMethods(mm));
132  if (L1MuGMTConfig::Debug(1))
133  edm::LogVerbatim("GMT_Register_Info") << " "
134  << "MergeMethod" << m_param << "Fwd"
135  << " is " << mm << "( value " << m_value[1] << " )";
136  };
std::string m_param
Definition: L1MuGMTReg.h:136
const std::string & getMergeMethodPtBrl() const
const std::string & getMergeMethodEtaBrl() const
std::vector< unsigned > m_value
Definition: L1MuGMTReg.h:62
static bool Debug()
MergeMethods m_default[2]
Definition: L1MuGMTReg.h:140
const std::string & getMergeMethodPtFwd() const
const std::string & getMergeMethodChargeBrl() const
ii
Definition: cuy.py:589
const std::string & getMergeMethodPhiBrl() const
static const L1MuGMTParameters * getGMTParams()
const std::string & getMergeMethodPhiFwd() const
const std::string & getMergeMethodEtaFwd() const
const std::string & getMergeMethodChargeFwd() const

Member Data Documentation

◆ m_default

MergeMethods L1MuGMTRegMMConfig::m_default[2]
protected

Definition at line 140 of file L1MuGMTReg.h.

Referenced by L1MuGMTRegMMConfig(), and setMergeMethod().

◆ m_param

std::string L1MuGMTRegMMConfig::m_param
protected