80 int isISO = (idx / 2) % 2;
82 int idx_drcr = isFWD * 2 +
isRPC;
86 int ch_idx = (charge == 0) ? 1 : 0;
92 if ( (isRPC && isFWD && fabs(oldeta) < 1.04 ) ||
93 (isRPC && !isFWD && fabs(oldeta) > 1.04 ) ) {
95 <<
"L1MuGMTMIAUEtaProLUT::TheLookupFunction: RPC " << (isFWD?
"fwd":
"brl")
96 <<
" eta value out of range: " << oldeta;
100 int isys = isFWD + 2 *
isRPC;
110 unsigned eta_select_word_14 = 1 << icenter;
122 if ( neweta > bincenter ) imax++;
126 if (imax>13) imax=13;
128 for (
int i=imin;
i<=imax;
i++ )
129 eta_select_word_14 |= 1 <<
i ;
134 unsigned eta_select_word;
136 unsigned mask5 = (1<<5)-1;
137 eta_select_word = eta_select_word_14 & mask5;
138 eta_select_word |= ( eta_select_word_14 & (mask5 << 9) ) >> 4;
141 unsigned mask10 = (1<<10)-1;
142 eta_select_word = ( eta_select_word_14 & (mask10 << 2) ) >> 2;
145 return eta_select_word;
unsigned int numberGctForwardEtaBinsPerHalf() const
const L1MuScale * getPtScale() const
get the Pt scale
static const L1CaloGeometry * getCaloGeom()
int m_IsolationCellSizeEta
Private data members (LUT parameters);.
virtual float getLowEdge(unsigned packed) const =0
get the low edge of bin represented by packed
bool isRPC(const GeomDetEnumerators::SubDetector m)
virtual float getCenter(unsigned packed) const =0
get the center of bin represented by packed
static int getIsolationCellSizeEta()
unsigned TheLookupFunction(int idx, unsigned eta, unsigned pt, unsigned charge) const
The lookup function - here the functionality of the LUT is implemented.
static const L1MuTriggerPtScale * getTriggerPtScale()
double globalEtaBinCenter(unsigned int globalEtaIndex) const
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
static const L1MuTriggerScales * getTriggerScales()
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...
const L1MuScale * getRegionalEtaScale(int isys) const
get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC) ...
static float eta(int isys, int isISO, int icharge, float eta, float pt)
look up delta-eta
unsigned int globalEtaIndex(const double &etaValue) const