59 theExtFilter(sp.tf().
config()->getExtTSFilter()),
60 nbit_phi(sp.tf().
config()->getNbitsExtPhi()),
61 nbit_phib(sp.tf().
config()->getNbitsExtPhib()) {}
102 cout <<
"Error: EUX has no data loaded" << endl;
132 cout <<
"EUX : using look-up table : " << static_cast<Extrapolation>(lut_idx) << endl;
162 phib_start += (1 << sh_phib) - 1;
165 int diff = phi_target - phi_start;
169 int offset = -2144 >> sh_phi;
171 int low = extLUTs.
getLow(lut_idx, phib_start);
174 low += (1 << sh_phi) - 1;
176 high += (1 << sh_phi) - 1;
180 int phi_offset = phi_target -
offset;
181 if ((lut_idx ==
EX34) || (lut_idx ==
EX21))
182 phi_offset = phi_start +
offset;
183 if (phi_offset >= (1 << (
nbit_phi - 1)) - 1)
185 if (phi_offset < -(1 << (
nbit_phi - 1)) + 1)
195 m_quality = (qual_st == 7) ? 0 : qual_st + 1;
197 m_quality = (qual_ta == 7) ? 0 : qual_ta + 1;
236 pair<const L1MuDTTrackSegPhi*, const L1MuDTTrackSegPhi*>
L1MuDTEUX::ts()
const {
237 return pair<const L1MuDTTrackSegPhi*, const L1MuDTTrackSegPhi*>(
m_start,
m_target);
245 int new_sector =
sector % 12;
247 new_sector = new_sector - 12;
249 new_sector = new_sector + 12;
bool result() const
return extrapolation result
int wheel() const
return wheel
int wheel() const
return wheel number
std::pair< const L1MuDTTrackSegPhi *, const L1MuDTTrackSegPhi * > ts() const
return pointer to start and target track segment
const L1MuDTTrackFinder & tf() const
return reference to barrel MTTF
int getLow(int ext_ind, int address) const
get low_value for a given address
int sector() const
return sector number
void reset()
reset Extrapolator
unsigned short int get_soc_qcut_st2(int wh, int sc) const
int phib() const
return phib
unsigned short int get_soc_qcut_st1(int wh, int sc) const
void load(const L1MuDTTrackSegPhi *start_ts, const L1MuDTTrackSegPhi *target_ts)
load data into EUX
unsigned short int get_soc_qcut_st4(int wh, int sc) const
const L1MuDTSecProcId & id() const
return Sector Processor identifier
int id() const
return Extrapolation identifier
unsigned int quality() const
return extrapolation quality
unsigned short const nbit_phib
int phi() const
return phi
unsigned short const nbit_phi
Abs< T >::type abs(const T &t)
const L1MuDTTFConfig * config() const
return configuration
int sec_mod(int) const
output sector numbers in the range -6 to +5
int getHigh(int ext_ind, int address) const
get high_value for a given address
bool operator==(const L1MuDTEUX &) const
equal operator
L1MuDTEUX(const L1MuDTSectorProcessor &sp, const L1MuDTSEU &seu, int id)
constructor
unsigned short int address() const
return extrapolation address (0-11) (address = 15 indicates negative ext. result) ...
int sector() const
return sector
int quality() const
return quality code
const L1MuDTTrackSegPhi * m_target
unsigned short int m_quality
const L1MuDTSectorProcessor & m_sp
void run(const L1MuDTExtLut &extLUTs, const L1MuDTTFParameters &pars)
run Extrapolator
Extrapolation ext() const
return extrapolation type
const L1MuDTTrackSegPhi * m_start
unsigned short int m_address
int bitShift(int num, int bits)
bool get_soc_openlut_extr(int wh, int sc) const