CMS 3D CMS Logo

L1MuDTTrackSegPhi Class Reference

PHI Track Segment. More...

#include <L1Trigger/DTTrackFinder/src/L1MuDTTrackSegPhi.h>

List of all members.

Public Types

enum  TSQuality {
  Li, Lo, Hi, Ho,
  LL, HL, HH, Null
}
 quality code of DTBX phi track segments More...

Public Member Functions

int bx () const
 return bunch crossing
bool empty () const
 is it an empty phi track segment?
bool etaFlag () const
 return eta flag
 L1MuDTTrackSegPhi (const L1MuDTTrackSegPhi &)
 copy constructor
 L1MuDTTrackSegPhi (const L1MuDTTrackSegLoc &, int phi=0, int phib=0, TSQuality quality=Null, bool tag=false, int bx=17, bool etaFlag=false)
 constructor
 L1MuDTTrackSegPhi (int wheel_id, int sector_id, int station_id, int phi=0, int phib=0, TSQuality quality=Null, bool tag=false, int bx=17, bool etaFlag=false)
 constructor
 L1MuDTTrackSegPhi ()
 default constructor
bool operator!= (const L1MuDTTrackSegPhi &) const
 unequal operator
L1MuDTTrackSegPhioperator= (const L1MuDTTrackSegPhi &)
 assignment operator
bool operator== (const L1MuDTTrackSegPhi &) const
 equal operator
int phi () const
 return phi
int phib () const
 return phib
double phibValue () const
 return phib-value in global coordinates [0,2pi]
double phiValue () const
 return phi-value in global coordinates [0,2pi]
int quality () const
 return quality code
void reset ()
 reset phi track segment
int sector () const
 return sector
void setEtaFlag (bool flag)
 set eta flag
int station () const
 return station
int tag () const
 return tag (second TS tag)
int wheel () const
 return wheel
const L1MuDTTrackSegLocwhere () const
 return location of phi track segment
virtual ~L1MuDTTrackSegPhi ()
 destructor

Private Attributes

int m_bx
bool m_etaFlag
L1MuDTTrackSegLoc m_location
int m_phi
int m_phib
TSQuality m_quality
bool m_tag

Friends

std::ostream & operator<< (std::ostream &, const L1MuDTTrackSegPhi &)
 overload output stream operator for phi track segments
std::ostream & operator<< (std::ostream &, const TSQuality &)
 overload output stream operator for phi track segment quality


Detailed Description

PHI Track Segment.

Date
2007/02/27 11:44:00
Revision
1.2

N. Neumeister CERN EP

Definition at line 38 of file L1MuDTTrackSegPhi.h.


Member Enumeration Documentation

enum L1MuDTTrackSegPhi::TSQuality

quality code of DTBX phi track segments

Enumerator:
Li 
Lo 
Hi 
Ho 
LL 
HL 
HH 
Null 

Definition at line 43 of file L1MuDTTrackSegPhi.h.

00043 { Li, Lo, Hi, Ho, LL, HL, HH, Null };


Constructor & Destructor Documentation

L1MuDTTrackSegPhi::L1MuDTTrackSegPhi (  ) 

default constructor

Definition at line 46 of file L1MuDTTrackSegPhi.cc.

00046                                      : 
00047       m_location(), m_phi(0), m_phib(0), m_quality(Null), m_bx(0) {}

L1MuDTTrackSegPhi::L1MuDTTrackSegPhi ( int  wheel_id,
int  sector_id,
int  station_id,
int  phi = 0,
int  phib = 0,
TSQuality  quality = Null,
bool  tag = false,
int  bx = 17,
bool  etaFlag = false 
)

constructor

Definition at line 50 of file L1MuDTTrackSegPhi.cc.

References TestMuL1L2Filter_cff::cerr, and lat::endl().

00053                                                    :
00054   m_location(wheel_id, sector_id, station_id),
00055   m_phi(phi), m_phib(phib), m_quality(quality), m_bx(bx), m_etaFlag(etaFlag) {
00056 
00057   if ( phi  < -2048 || phi  > 2047 ) { 
00058     cerr << "TrackSegPhi : phi out of range: " << phi << endl;
00059   }
00060   if ( phib <  -512 || phib >  511 ) {
00061     cerr << "TrackSegPhi : phib out of range: " << phib << endl;
00062   }
00063   if ( quality > 7 ) {
00064     cerr << "TrackSegPhi : quality out of range: " << quality << endl;
00065   }
00066 
00067 }

L1MuDTTrackSegPhi::L1MuDTTrackSegPhi ( const L1MuDTTrackSegLoc id,
int  phi = 0,
int  phib = 0,
TSQuality  quality = Null,
bool  tag = false,
int  bx = 17,
bool  etaFlag = false 
)

constructor

Definition at line 70 of file L1MuDTTrackSegPhi.cc.

References TestMuL1L2Filter_cff::cerr, and lat::endl().

00073                                                    : 
00074   m_location(id), m_phi(phi), m_phib(phib), 
00075   m_quality(quality), m_tag(tag), m_bx(bx), m_etaFlag(etaFlag) {
00076 
00077   if ( phi  < -2048 || phi  > 2047 ) {
00078     cerr << "TrackSegPhi : phi out of range: " << phi << endl;
00079   }
00080   if ( phib <  -512 || phib >  511 ) {
00081     cerr << "TrackSegPhi : phib out of range: " << phib << endl;
00082   }
00083   if ( quality > 7 ) {
00084     cerr << "TrackSegPhi : quality out of range: " << quality << endl;
00085   }
00086 
00087 }

L1MuDTTrackSegPhi::L1MuDTTrackSegPhi ( const L1MuDTTrackSegPhi id  ) 

copy constructor

Definition at line 90 of file L1MuDTTrackSegPhi.cc.

00090                                                                 :
00091   m_location(id.m_location),
00092   m_phi(id.m_phi), m_phib(id.m_phib), m_quality(id.m_quality), 
00093   m_tag(id.m_tag), m_bx(id.m_bx), m_etaFlag(id.m_etaFlag) {}

L1MuDTTrackSegPhi::~L1MuDTTrackSegPhi (  )  [virtual]

destructor

Definition at line 100 of file L1MuDTTrackSegPhi.cc.

00100 {}


Member Function Documentation

int L1MuDTTrackSegPhi::bx (  )  const [inline]

return bunch crossing

Definition at line 100 of file L1MuDTTrackSegPhi.h.

References m_bx.

00100 { return m_bx; }

bool L1MuDTTrackSegPhi::empty ( void   )  const [inline]

is it an empty phi track segment?

Definition at line 106 of file L1MuDTTrackSegPhi.h.

References m_quality, and Null.

Referenced by L1MuDTSEU::run(), and L1MuDTExtrapolationUnit::run().

00106 { return m_quality == Null; }

bool L1MuDTTrackSegPhi::etaFlag (  )  const [inline]

return eta flag

Definition at line 103 of file L1MuDTTrackSegPhi.h.

References m_etaFlag.

00103 { return m_etaFlag; }   

bool L1MuDTTrackSegPhi::operator!= ( const L1MuDTTrackSegPhi id  )  const

unequal operator

Definition at line 181 of file L1MuDTTrackSegPhi.cc.

References m_bx, m_location, m_phi, m_phib, and m_quality.

00181                                                                     {
00182 
00183   if ( m_location != id.m_location ) return true;
00184   if ( m_phi      != id.m_phi )      return true;
00185   if ( m_phib     != id.m_phib )     return true;
00186   if ( m_quality  != id.m_quality )  return true;
00187   if ( m_bx       != id.m_bx )       return true;
00188   return false;
00189 
00190 }

L1MuDTTrackSegPhi & L1MuDTTrackSegPhi::operator= ( const L1MuDTTrackSegPhi id  ) 

assignment operator

Definition at line 147 of file L1MuDTTrackSegPhi.cc.

References m_bx, m_etaFlag, m_location, m_phi, m_phib, m_quality, and m_tag.

00147                                                                            {
00148 
00149   if ( this != &id ) {
00150     m_location  = id.m_location;
00151     m_phi       = id.m_phi;
00152     m_phib      = id.m_phib;
00153     m_quality   = id.m_quality;
00154     m_tag       = id.m_tag;
00155     m_bx        = id.m_bx;
00156     m_etaFlag   = id.m_etaFlag;
00157   }
00158   return *this;
00159 
00160 }

bool L1MuDTTrackSegPhi::operator== ( const L1MuDTTrackSegPhi id  )  const

equal operator

Definition at line 166 of file L1MuDTTrackSegPhi.cc.

References m_bx, m_location, m_phi, m_phib, and m_quality.

00166                                                                     {
00167 
00168   if ( m_location != id.m_location ) return false;
00169   if ( m_phi      != id.m_phi )      return false;
00170   if ( m_phib     != id.m_phib )     return false;
00171   if ( m_quality  != id.m_quality )  return false;
00172   if ( m_bx       != id.m_bx )       return false;
00173   return true;
00174 
00175 }

int L1MuDTTrackSegPhi::phi ( void   )  const [inline]

return phi

Definition at line 88 of file L1MuDTTrackSegPhi.h.

References m_phi.

Referenced by L1MuDTAssignmentUnit::PhiAU(), L1MuDTAssignmentUnit::phiDiff(), and L1MuDTEUX::run().

00088 { return m_phi; }

int L1MuDTTrackSegPhi::phib (  )  const [inline]

return phib

Definition at line 91 of file L1MuDTTrackSegPhi.h.

References m_phib.

Referenced by L1MuDTAssignmentUnit::getPtMethod(), L1MuDTAssignmentUnit::PhiAU(), and L1MuDTEUX::run().

00091 { return m_phib; }

double L1MuDTTrackSegPhi::phibValue (  )  const

return phib-value in global coordinates [0,2pi]

Definition at line 137 of file L1MuDTTrackSegPhi.cc.

References m_phib.

00137                                           {
00138 
00139   return static_cast<const double>(m_phib)/512;
00140 
00141 }

double L1MuDTTrackSegPhi::phiValue (  )  const

return phi-value in global coordinates [0,2pi]

Definition at line 125 of file L1MuDTTrackSegPhi.cc.

References m_location, m_phi, L1MuDTTrackSegLoc::sector(), and tmp.

00125                                          {
00126 
00127   double tmp = static_cast<double>(m_location.sector())*M_PI/6;
00128   tmp += static_cast<const double>(m_phi)/4096;
00129   return (tmp > 0 ) ? tmp : (2*M_PI + tmp);
00130 
00131 }

int L1MuDTTrackSegPhi::quality ( void   )  const [inline]

return quality code

Definition at line 94 of file L1MuDTTrackSegPhi.h.

References m_quality.

Referenced by L1MuDTEUX::run().

00094 { return m_quality; }

void L1MuDTTrackSegPhi::reset ( void   ) 

reset phi track segment

Definition at line 110 of file L1MuDTTrackSegPhi.cc.

References m_bx, m_etaFlag, m_phi, m_phib, m_quality, m_tag, and Null.

Referenced by L1MuDTSEU::reset().

00110                               {
00111 
00112   m_phi     = 0;
00113   m_phib    = 0;
00114   m_quality = Null;
00115   m_tag     = false;
00116   m_bx      = 0;
00117   m_etaFlag = false;
00118 
00119 }

int L1MuDTTrackSegPhi::sector ( void   )  const [inline]

return sector

Definition at line 79 of file L1MuDTTrackSegPhi.h.

References m_location, and L1MuDTTrackSegLoc::sector().

Referenced by L1MuDTAssignmentUnit::PhiAU(), L1MuDTAssignmentUnit::phiDiff(), and L1MuDTEUX::run().

00079 { return m_location.sector(); }

void L1MuDTTrackSegPhi::setEtaFlag ( bool  flag  )  [inline]

set eta flag

Definition at line 109 of file L1MuDTTrackSegPhi.h.

References m_etaFlag.

00109 { m_etaFlag = flag; } 

int L1MuDTTrackSegPhi::station (  )  const [inline]

return station

Definition at line 82 of file L1MuDTTrackSegPhi.h.

References m_location, and L1MuDTTrackSegLoc::station().

00082 { return m_location.station(); }

int L1MuDTTrackSegPhi::tag ( void   )  const [inline]

return tag (second TS tag)

Definition at line 97 of file L1MuDTTrackSegPhi.h.

References m_tag.

00097 { return m_tag; }

int L1MuDTTrackSegPhi::wheel (  )  const [inline]

return wheel

Definition at line 76 of file L1MuDTTrackSegPhi.h.

References m_location, and L1MuDTTrackSegLoc::wheel().

Referenced by L1MuDTEUX::load(), and L1MuDTEUX::run().

00076 { return m_location.wheel(); }

const L1MuDTTrackSegLoc& L1MuDTTrackSegPhi::where (  )  const [inline]

return location of phi track segment

Definition at line 85 of file L1MuDTTrackSegPhi.h.

References m_location.

00085 { return m_location; }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const L1MuDTTrackSegPhi  
) [friend]

overload output stream operator for phi track segments

std::ostream& operator<< ( std::ostream &  ,
const TSQuality  
) [friend]

overload output stream operator for phi track segment quality


Member Data Documentation

int L1MuDTTrackSegPhi::m_bx [private]

Definition at line 133 of file L1MuDTTrackSegPhi.h.

Referenced by bx(), operator!=(), operator=(), operator==(), and reset().

bool L1MuDTTrackSegPhi::m_etaFlag [private]

Definition at line 134 of file L1MuDTTrackSegPhi.h.

Referenced by etaFlag(), operator=(), reset(), and setEtaFlag().

L1MuDTTrackSegLoc L1MuDTTrackSegPhi::m_location [private]

Definition at line 128 of file L1MuDTTrackSegPhi.h.

Referenced by operator!=(), operator=(), operator==(), phiValue(), sector(), station(), wheel(), and where().

int L1MuDTTrackSegPhi::m_phi [private]

Definition at line 129 of file L1MuDTTrackSegPhi.h.

Referenced by operator!=(), operator=(), operator==(), phi(), phiValue(), and reset().

int L1MuDTTrackSegPhi::m_phib [private]

Definition at line 130 of file L1MuDTTrackSegPhi.h.

Referenced by operator!=(), operator=(), operator==(), phib(), phibValue(), and reset().

TSQuality L1MuDTTrackSegPhi::m_quality [private]

Definition at line 131 of file L1MuDTTrackSegPhi.h.

Referenced by empty(), operator!=(), operator=(), operator==(), quality(), and reset().

bool L1MuDTTrackSegPhi::m_tag [private]

Definition at line 132 of file L1MuDTTrackSegPhi.h.

Referenced by operator=(), reset(), and tag().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:50 2009 for CMSSW by  doxygen 1.5.4