GMT Register that implements enum of merge methods. More...
#include <L1MuGMTReg.h>
Public Types | |
enum | MergeMethods { takeDTCSC, takeRPC, byRank, byMinPt, byCombi, Special } |
Public Member Functions | |
virtual std::string | getName () |
get Name | |
L1MuGMTRegMMConfig (const std::string ¶m, MergeMethods def_brl, MergeMethods def_fwd) | |
void | setMergeMethod () |
virtual | ~L1MuGMTRegMMConfig () |
Protected Attributes | |
MergeMethods | m_default [2] |
std::string | m_param |
GMT Register that implements enum of merge methods.
Definition at line 75 of file L1MuGMTReg.h.
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().
: m_param(param) { m_default[0] = def_brl; m_default[1] = def_fwd; setMergeMethod(); };
virtual L1MuGMTRegMMConfig::~L1MuGMTRegMMConfig | ( | ) | [inline, virtual] |
Definition at line 89 of file L1MuGMTReg.h.
{};
virtual std::string L1MuGMTRegMMConfig::getName | ( | ) | [inline, virtual] |
get Name
Implements L1MuGMTReg.
Definition at line 92 of file L1MuGMTReg.h.
References m_param.
{ return "MMConfig_" + m_param; };
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().
{ static MergeMethods avlMethods[6] = { takeDTCSC, takeRPC, byRank, byMinPt, byCombi, Special }; std::string mn[6] = { "takeDT", "takeRPC", "byRank", "byMinPt", "byCombi", "Special" }; MergeMethods mm; std::string mm_str; mm = m_default[0]; if(m_param=="Phi") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodPhiBrl(); else if(m_param=="Eta") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodEtaBrl(); else if(m_param=="Pt") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodPtBrl(); else if(m_param=="Charge") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodChargeBrl(); for(int ii=0; ii<6; ii++) if(mm_str == mn[ii]) {mm = avlMethods[ii]; break;} m_value[0] = 1 << (5-(int) MergeMethods(mm)); if ( L1MuGMTConfig::Debug(1) ) edm::LogVerbatim("GMT_Register_Info") << " " << "MergeMethod" << m_param << "Brl" << " is " << mm << "( value " << m_value[0] << " )"; mm = m_default[1]; mn[0] = "takeCSC"; if(m_param=="Phi") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodPhiFwd(); else if(m_param=="Eta") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodEtaFwd(); else if(m_param=="Pt") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodPtFwd(); else if(m_param=="Charge") mm_str = L1MuGMTConfig::getGMTParams()->getMergeMethodChargeFwd(); for(int ii=0; ii<6; ii++) if(mm_str == mn[ii]) {mm = avlMethods[ii]; break;} m_value[1] = 1 << (5-(int) MergeMethods(mm)); if ( L1MuGMTConfig::Debug(1) ) edm::LogVerbatim("GMT_Register_Info") << " " << "MergeMethod" << m_param << "Fwd" << " is " << mm << "( value " << m_value[1] << " )"; };
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] |
Definition at line 128 of file L1MuGMTReg.h.
Referenced by getName(), L1MuGMTRegMMConfigMIPISO::L1MuGMTRegMMConfigMIPISO(), and setMergeMethod().