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

Enumerator
takeDTCSC 
takeRPC 
byRank 
byMinPt 
byCombi 
Special 

Definition at line 73 of file L1MuGMTReg.h.

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.

76  : m_param(param) {
77  m_default[0] = def_brl;
78  m_default[1] = def_fwd;
80  };

References m_default, and setMergeMethod().

◆ ~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.

86 { return "MMConfig_" + m_param; };

References m_param.

Referenced by plotting.Plot::draw().

◆ setMergeMethod()

void L1MuGMTRegMMConfig::setMergeMethod ( )
inline

Definition at line 89 of file L1MuGMTReg.h.

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  };

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().

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
L1MuGMTParameters::getMergeMethodPtBrl
const std::string & getMergeMethodPtBrl() const
Definition: L1MuGMTParameters.h:89
L1MuGMTConfig::getGMTParams
static const L1MuGMTParameters * getGMTParams()
Definition: L1MuGMTConfig.h:184
L1MuGMTRegMMConfig::byMinPt
Definition: L1MuGMTReg.h:73
L1MuGMTRegMMConfig::m_default
MergeMethods m_default[2]
Definition: L1MuGMTReg.h:140
L1MuGMTRegMMConfig::takeRPC
Definition: L1MuGMTReg.h:73
L1MuGMTParameters::getMergeMethodEtaBrl
const std::string & getMergeMethodEtaBrl() const
Definition: L1MuGMTParameters.h:83
L1MuGMTRegMMConfig::m_param
std::string m_param
Definition: L1MuGMTReg.h:136
L1MuGMTRegMMConfig::byRank
Definition: L1MuGMTReg.h:73
L1MuGMTParameters::getMergeMethodPtFwd
const std::string & getMergeMethodPtFwd() const
Definition: L1MuGMTParameters.h:92
L1MuGMTRegMMConfig::takeDTCSC
Definition: L1MuGMTReg.h:73
L1MuGMTRegMMConfig::MergeMethods
MergeMethods
Definition: L1MuGMTReg.h:73
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1MuGMTParameters::getMergeMethodChargeBrl
const std::string & getMergeMethodChargeBrl() const
Definition: L1MuGMTParameters.h:97
L1MuGMTParameters::getMergeMethodPhiBrl
const std::string & getMergeMethodPhiBrl() const
Definition: L1MuGMTParameters.h:77
createfilelist.int
int
Definition: createfilelist.py:10
L1MuGMTParameters::getMergeMethodEtaFwd
const std::string & getMergeMethodEtaFwd() const
Definition: L1MuGMTParameters.h:86
L1MuGMTParameters::getMergeMethodPhiFwd
const std::string & getMergeMethodPhiFwd() const
Definition: L1MuGMTParameters.h:80
L1MuGMTRegMMConfig::byCombi
Definition: L1MuGMTReg.h:73
L1MuGMTRegMMConfig::Special
Definition: L1MuGMTReg.h:73
L1MuGMTParameters::getMergeMethodChargeFwd
const std::string & getMergeMethodChargeFwd() const
Definition: L1MuGMTParameters.h:102
L1MuGMTReg::m_value
std::vector< unsigned > m_value
Definition: L1MuGMTReg.h:62
L1MuGMTRegMMConfig::setMergeMethod
void setMergeMethod()
Definition: L1MuGMTReg.h:89
L1MuGMTConfig::Debug
static bool Debug()
Definition: L1MuGMTConfig.h:101
edm::Log
Definition: MessageLogger.h:70
cuy.ii
ii
Definition: cuy.py:590