96 int isys = isFWD + 2 * isRPC;
97 int isISO = (idx / 2) % 2;
99 int ch_idx = (charge == 0) ? 1 : 0;
111 float calophi = phi_fine * 2.5 / 180. *
M_PI - dphi - m_calo_align;
113 if (charge == 0 && calophi < 0.) {
115 <<
"warning: calo offset goes into wrong direction. charge is plus and calophi < 0deg" << endl
116 <<
"SYS=" << ( isys==0?
"DT":isys==1?
"CSC" : isys== 2?
"BRPC" :
"FRPC" )
117 <<
" ISO = " << isISO
118 <<
" etabin = " << eta
121 <<
" charge = " << ( charge==0?
"pos":
"neg" )
122 <<
" phi_fine = " << phi_fine
123 <<
" calophi(deg) = " << calophi * 180. /
M_PI
126 else if (charge == 1 && calophi > 20. / 180. *
M_PI) {
128 <<
"warning: calo offset goes into wrong direction. charge is minus and calophi > 20deg" << endl
129 <<
"SYS=" << ( isys==0?
"DT":isys==1?
"CSC" : isys== 2?
"BRPC" :
"FRPC" )
130 <<
" ISO = " << isISO
131 <<
" etabin = " << eta
134 <<
" charge = " << ( charge==0?
"pos":
"neg" )
135 <<
" phi_fine = " << phi_fine
136 <<
" calophi(deg) = " << calophi * 180. /
M_PI
141 int cphi_fine = (int) ( ( calophi + 2. *
M_PI ) / ( 10. / 180. *
M_PI ) );
147 calophi = 20. / 180 *
M_PI - calophi;
148 calophi += 20. / 180 *
M_PI;
152 <<
"warning: calo offset goes into wrong direction by more than 20deg !!!! please correct!" << endl;
155 int cphi_ofs = (int) ( calophi / ( 20. / 180. *
M_PI) );
160 <<
"warning: calo offset is larger than 6 regions !!!! please correct!" << endl;
164 return ( (cphi_fine << 3) + cphi_ofs );
const L1MuScale * getPtScale() const
get the Pt scale
virtual float getLowEdge(unsigned packed) const =0
get the low edge of bin represented by packed
void InitParameters()
Initialize scales, configuration parameters, alignment constants, ...
static const L1MuTriggerPtScale * getTriggerPtScale()
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
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