94 int isys = isFWD + 2 *
isRPC;
95 int isISO = (idx / 2) % 2;
97 int ch_idx = (charge == 0) ? 1 : 0;
109 float calophi = phi_fine * 2.5 / 180. *
M_PI - dphi - m_calo_align;
111 if (charge == 0 && calophi < 0.) {
113 <<
"warning: calo offset goes into wrong direction. charge is plus and calophi < 0deg" << endl
114 <<
"SYS=" << ( isys==0?
"DT":isys==1?
"CSC" : isys== 2?
"BRPC" :
"FRPC" )
115 <<
" ISO = " << isISO
116 <<
" etabin = " << eta
119 <<
" charge = " << ( charge==0?
"pos":
"neg" )
120 <<
" phi_fine = " << phi_fine
121 <<
" calophi(deg) = " << calophi * 180. /
M_PI 124 else if (charge == 1 && calophi > 20. / 180. *
M_PI) {
126 <<
"warning: calo offset goes into wrong direction. charge is minus and calophi > 20deg" << endl
127 <<
"SYS=" << ( isys==0?
"DT":isys==1?
"CSC" : isys== 2?
"BRPC" :
"FRPC" )
128 <<
" ISO = " << isISO
129 <<
" etabin = " << eta
132 <<
" charge = " << ( charge==0?
"pos":
"neg" )
133 <<
" phi_fine = " << phi_fine
134 <<
" calophi(deg) = " << calophi * 180. /
M_PI 139 int cphi_fine = (
int) ( ( calophi + 2. *
M_PI ) / ( 10. / 180. *
M_PI ) );
145 calophi = 20. / 180 *
M_PI - calophi;
146 calophi += 20. / 180 *
M_PI;
150 <<
"warning: calo offset goes into wrong direction by more than 20deg !!!! please correct!" << endl;
153 int cphi_ofs = (
int) ( calophi / ( 20. / 180. *
M_PI) );
158 <<
"warning: calo offset is larger than 6 regions !!!! please correct!" << endl;
162 return ( (cphi_fine << 3) + cphi_ofs );
const L1MuScale * getPtScale() const
get the Pt scale
bool isRPC(const GeomDetEnumerators::SubDetector m)
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...
static const L1MuTriggerPtScale * getTriggerPtScale()
unsigned TheLookupFunction(int idx, unsigned phi_fine, unsigned eta, unsigned pt, unsigned charge) const
The lookup function - here the functionality of the LUT is implemented.
static float dphi(int isys, int isISO, int icharge, int ieta, float pt)
look up delta-phi with integer eta
virtual float getLowEdge(unsigned packed) const =0
get the low edge of bin represented by packed