45 m_location(), m_phi(0), m_phib(0), m_quality(
Null), m_bx(0) {}
52 m_location(wheel_id, sector_id, station_id),
53 m_phi(phi), m_phib(phib), m_quality(quality), m_bx(bx), m_etaFlag(etaFlag) {
55 if ( phi < -2048 || phi > 2047 ) {
58 if ( phib < -512 || phib > 511 ) {
72 m_location(id), m_phi(phi), m_phib(phib),
73 m_quality(quality), m_tag(tag), m_bx(bx), m_etaFlag(etaFlag) {
75 if ( phi < -2048 || phi > 2047 ) {
78 if ( phib < -512 || phib > 511 ) {
89 m_location(id.m_location),
90 m_phi(id.m_phi), m_phib(id.m_phib), m_quality(id.m_quality),
91 m_tag(id.m_tag), m_bx(id.m_bx), m_etaFlag(id.m_etaFlag) {}
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;
virtual ~L1MuDTTrackSegPhi()
destructor
bool operator!=(const L1MuDTTrackSegPhi &) const
unequal operator
int sector() const
return sector (30 deg)
void reset()
reset phi track segment
std::ostream & operator<<(std::ostream &out, const ALILine &li)
double phiValue() const
return phi-value in global coordinates [0,2pi]
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