58 theExtFilter(sp.tf().
config()->getExtTSFilter()),
59 nbit_phi(sp.tf().
config()->getNbitsExtPhi()),
60 nbit_phib(sp.tf().
config()->getNbitsExtPhib()) {}
101 cout <<
"Error: EUX has no data loaded" << endl;
131 cout <<
"EUX : using look-up table : " << static_cast<Extrapolation>(lut_idx) << endl;
159 int phib_start = (
m_start->
phib() >> sh_phib) << sh_phib;
161 phib_start += (1 << sh_phib) - 1;
164 int diff = phi_target - phi_start;
168 int offset = -2144 >> sh_phi;
169 offset *=
sec_mod(sector_ta - sector_st);
170 int low = extLUTs.
getLow(lut_idx, phib_start);
171 int high = extLUTs.
getHigh(lut_idx, phib_start);
173 low += (1 << sh_phi) - 1;
175 high += (1 << sh_phi) - 1;
176 low = (low >> sh_phi) + offset;
177 high = (high >> sh_phi) + offset;
179 int phi_offset = phi_target -
offset;
180 if ((lut_idx ==
EX34) || (lut_idx ==
EX21))
181 phi_offset = phi_start +
offset;
182 if (phi_offset >= (1 << (
nbit_phi - 1)) - 1)
184 if (phi_offset < -(1 << (
nbit_phi - 1)) + 1)
194 m_quality = (qual_st == 7) ? 0 : qual_st + 1;
196 m_quality = (qual_ta == 7) ? 0 : qual_ta + 1;
202 cout <<
"diff : " << low <<
" " << diff <<
" " << high <<
" : " <<
m_result <<
" " << endl;
235 pair<const L1MuDTTrackSegPhi*, const L1MuDTTrackSegPhi*>
L1MuDTEUX::ts()
const {
236 return pair<const L1MuDTTrackSegPhi*, const L1MuDTTrackSegPhi*>(
m_start,
m_target);
244 int new_sector = sector % 12;
246 new_sector = new_sector - 12;
248 new_sector = new_sector + 12;
Extrapolation ext() const
return extrapolation type
int quality() const
return quality code
void reset()
reset Extrapolator
int phi() const
return phi
void load(const L1MuDTTrackSegPhi *start_ts, const L1MuDTTrackSegPhi *target_ts)
load data into EUX
int sec_mod(int) const
output sector numbers in the range -6 to +5
int sector() const
return sector number
unsigned short int get_soc_qcut_st1(int wh, int sc) const
bool operator==(const L1MuDTEUX &) const
equal operator
unsigned short const nbit_phib
int getLow(int ext_ind, int address) const
get low_value for a given address
unsigned short const nbit_phi
Abs< T >::type abs(const T &t)
int getHigh(int ext_ind, int address) const
get high_value for a given address
int phib() const
return phib
const L1MuDTSecProcId & id() const
return Sector Processor identifier
std::pair< const L1MuDTTrackSegPhi *, const L1MuDTTrackSegPhi * > ts() const
return pointer to start and target track segment
unsigned short int address() const
return extrapolation address (0-11) (address = 15 indicates negative ext. result) ...
unsigned short int get_soc_qcut_st2(int wh, int sc) const
L1MuDTEUX(const L1MuDTSectorProcessor &sp, const L1MuDTSEU &seu, int id)
constructor
bool get_soc_openlut_extr(int wh, int sc) const
static L1MuDTTFConfig * config()
return configuration
const L1MuDTTrackSegPhi * m_target
unsigned short int m_quality
const L1MuDTSectorProcessor & m_sp
tuple config
parse the configuration file
int id() const
return Extrapolation identifier
const L1MuDTTrackFinder & tf() const
return reference to barrel MTTF
void run(const L1MuDTExtLut &extLUTs, const L1MuDTTFParameters &pars)
run Extrapolator
int sector() const
return sector
int wheel() const
return wheel
int wheel() const
return wheel number
unsigned int quality() const
return extrapolation quality
unsigned short int get_soc_qcut_st4(int wh, int sc) const
const L1MuDTTrackSegPhi * m_start
unsigned short int m_address
bool result() const
return extrapolation result