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

virtual std::string getName ()
 get Name More...
 
 L1MuGMTRegMMConfig (const std::string &param, MergeMethods def_brl, MergeMethods def_fwd)
 
void setMergeMethod ()
 
virtual ~L1MuGMTRegMMConfig ()
 
- 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 75 of file L1MuGMTReg.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

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

Definition at line 81 of file L1MuGMTReg.h.

References m_default, and setMergeMethod().

81  :
82  m_param(param) {
83  m_default[0] = def_brl;
84  m_default[1] = def_fwd;
85  setMergeMethod();
86  };
std::string m_param
Definition: L1MuGMTReg.h:128
MergeMethods m_default[2]
Definition: L1MuGMTReg.h:132
void setMergeMethod()
Definition: L1MuGMTReg.h:95
virtual L1MuGMTRegMMConfig::~L1MuGMTRegMMConfig ( )
inlinevirtual

Definition at line 89 of file L1MuGMTReg.h.

89 {};

Member Function Documentation

virtual std::string L1MuGMTRegMMConfig::getName ( )
inlinevirtual

get Name

Implements L1MuGMTReg.

Definition at line 92 of file L1MuGMTReg.h.

References m_param.

92 { return "MMConfig_" + m_param; };
std::string m_param
Definition: L1MuGMTReg.h:128
void L1MuGMTRegMMConfig::setMergeMethod ( )
inline

Definition at line 95 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(), m_default, m_param, L1MuGMTReg::m_value, Special, takeDTCSC, and takeRPC.

Referenced by L1MuGMTRegMMConfig().

95  {
96  static MergeMethods avlMethods[6] = { takeDTCSC, takeRPC, byRank, byMinPt, byCombi, Special };
97  std::string mn[6] = { "takeDT", "takeRPC", "byRank", "byMinPt", "byCombi", "Special" };
98 
99  MergeMethods mm;
100  std::string mm_str;
101 
102  mm = m_default[0];
104  else if(m_param=="Eta") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodEtaBrl();
105  else if(m_param=="Pt") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodPtBrl();
106  else if(m_param=="Charge") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodChargeBrl();
107  for(int ii=0; ii<6; ii++) if(mm_str == mn[ii]) {mm = avlMethods[ii]; break;}
108  m_value[0] = 1 << (5-(int) MergeMethods(mm));
109  if ( L1MuGMTConfig::Debug(1) ) edm::LogVerbatim("GMT_Register_Info") << " "
110  << "MergeMethod" << m_param << "Brl"
111  << " is " << mm
112  << "( value " << m_value[0] << " )";
113 
114  mm = m_default[1];
115  mn[0] = "takeCSC";
117  else if(m_param=="Eta") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodEtaFwd();
118  else if(m_param=="Pt") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodPtFwd();
119  else if(m_param=="Charge") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodChargeFwd();
120  for(int ii=0; ii<6; ii++) if(mm_str == mn[ii]) {mm = avlMethods[ii]; break;}
121  m_value[1] = 1 << (5-(int) MergeMethods(mm));
122  if ( L1MuGMTConfig::Debug(1) ) edm::LogVerbatim("GMT_Register_Info") << " "
123  << "MergeMethod" << m_param << "Fwd"
124  << " is " << mm
125  << "( value " << m_value[1] << " )";
126 
127 
128  };
const std::string & getMergeMethodPtFwd() const
const std::string & getMergeMethodPhiBrl() const
const std::string & getMergeMethodEtaBrl() const
std::string m_param
Definition: L1MuGMTReg.h:128
const std::string & getMergeMethodEtaFwd() const
std::vector< unsigned > m_value
Definition: L1MuGMTReg.h:66
static bool Debug()
MergeMethods m_default[2]
Definition: L1MuGMTReg.h:132
const std::string & getMergeMethodPhiFwd() const
const std::string & getMergeMethodChargeBrl() const
static const L1MuGMTParameters * getGMTParams()
const std::string & getMergeMethodPtBrl() const
const std::string & getMergeMethodChargeFwd() const

Member Data Documentation

MergeMethods L1MuGMTRegMMConfig::m_default[2]
protected

Definition at line 132 of file L1MuGMTReg.h.

Referenced by L1MuGMTRegMMConfig(), and setMergeMethod().

std::string L1MuGMTRegMMConfig::m_param
protected