106 cout <<
"Error: EUX has no data loaded" << endl;
137 cout <<
"EUX : using look-up table : " <<
static_cast<Extrapolation>(lut_idx) << endl;
168 phib_start += (1 << sh_phib) - 1;
171 int diff = phi_target - phi_start;
175 int offset = -2144 >> sh_phi;
180 low += (1 << sh_phi) - 1;
182 high += (1 << sh_phi) - 1;
186 int phi_offset = phi_target -
offset;
187 if ((lut_idx ==
EX34) || (lut_idx ==
EX21))
188 phi_offset = phi_start +
offset;
189 if (phi_offset >= (1 << (
nbit_phi - 1)) - 1) {
193 if (phi_offset < -(1 << (
nbit_phi - 1)) + 1) {
204 m_quality = (qual_st == 7) ? 0 : qual_st + 1;
206 m_quality = (qual_ta == 7) ? 0 : qual_ta + 1;
245 pair<const L1MuBMTrackSegPhi*, const L1MuBMTrackSegPhi*>
L1MuBMEUX::ts()
const {
246 return pair<const L1MuBMTrackSegPhi*, const L1MuBMTrackSegPhi*>(
m_start,
m_target);
254 int new_sector = sector % 12;
256 new_sector = new_sector - 12;
258 new_sector = new_sector + 12;
L1MuBMLUTHandler * theExtLUTs
const L1MuBMSecProcId & id() const
return Sector Processor identifier
L1MuDTTFParameters l1mudttfparams
unsigned int quality() const
return extrapolation quality
static bool getopenLUTs()
void reset()
reset Extrapolator
unsigned short int m_address
int wheel() const
return wheel
int wheel() const
return wheel number
const L1MuBMTrackSegPhi * m_target
unsigned short int get_soc_qcut_st2(int wh, int sc) const
unsigned short int get_soc_qcut_st1(int wh, int sc) const
const L1MuBMTrackSegPhi * m_start
unsigned short int get_soc_qcut_st4(int wh, int sc) const
std::pair< const L1MuBMTrackSegPhi *, const L1MuBMTrackSegPhi * > ts() const
return pointer to start and target track segment
int quality() const
return quality code
const L1MuBMSectorProcessor & m_sp
Abs< T >::type abs(const T &t)
int phib() const
return phib
bool operator==(const L1MuBMEUX &) const
equal operator
int getHigh(int ext_ind, int address) const
get high_value for a given address
int sector() const
return sector number
int getLow(int ext_ind, int address) const
get low_value for a given address
int sec_mod(int) const
output sector numbers in the range -6 to +5
bool result() const
return extrapolation result
unsigned short const nbit_phi
void load(const L1MuBMTrackSegPhi *start_ts, const L1MuBMTrackSegPhi *target_ts)
load data into EUX
unsigned short const nbit_phib
int sector() const
return sector
int phi() const
return phi
unsigned short int m_quality
unsigned short int address() const
return extrapolation address (0-11) (address = 15 indicates negative ext. result) ...
int id() const
return Extrapolation identifier
void run(const L1TMuonBarrelParams &c)
run Extrapolator
Extrapolation ext() const
return extrapolation type
int bitShift(int num, int bits)
L1MuBMEUX(const L1MuBMSectorProcessor &sp, const L1MuBMSEU &seu, int id)
constructor
bool get_soc_openlut_extr(int wh, int sc) const