45 m_location(), m_phi(0), m_phib(0), m_quality(
Null), m_bx(0) {}
55 if ( phi < -2048 || phi > 2047 ) {
58 if ( phib < -512 || phib > 511 ) {
75 if ( phi < -2048 || phi > 2047 ) {
78 if ( phib < -512 || phib > 511 ) {
126 tmp +=
static_cast<double>(
m_phi)/4096;
127 return (tmp > 0 ) ? tmp : (2*
M_PI +
tmp);
137 return static_cast<double>(
m_phib)/512;
170 if (
m_bx !=
id.
m_bx )
return false;
206 return s <<
"unknown TS phi Quality ";
217 s.setf(ios::right,ios::adjustfield);
218 s << (
id.m_location) <<
"\t" 219 <<
"phi : " << setw(5) <<
id.m_phi <<
" " 220 <<
"phib : " << setw(4) <<
id.m_phib <<
" " 221 <<
"quality : " << setw(4) <<
id.m_quality;
int tag() const
return tag (second TS tag)
virtual ~L1MuDTTrackSegPhi()
destructor
bool operator!=(const L1MuDTTrackSegPhi &) const
unequal operator
int quality() const
return quality code
bool etaFlag() const
return eta flag
int sector() const
return sector (30 deg)
void reset()
reset phi track segment
int phi() const
return phi
int bx() const
return bunch crossing
double phiValue() const
return phi-value in global coordinates [0,2pi]
friend std::ostream & operator<<(std::ostream &, const TSQuality &)
overload output stream operator for phi track segment quality
int phib() const
return phib
bool operator==(const L1MuDTTrackSegPhi &) const
equal operator
TSQuality
quality code of DTBX phi track segments
L1MuDTTrackSegPhi()
default constructor
double phibValue() const
return phib-value in global coordinates [0,2pi]
std::vector< std::vector< double > > tmp
L1MuDTTrackSegLoc m_location
L1MuDTTrackSegPhi & operator=(const L1MuDTTrackSegPhi &)
assignment operator