CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

L1MuDTTrackSegEta Class Reference

#include <L1MuDTTrackSegEta.h>

List of all members.

Public Member Functions

int bx () const
 return bunch crossing
bool empty () const
 is it an empty eta track segment?
 L1MuDTTrackSegEta (int wheel_id, int sector_id, int station_id, int position=0, int quality=0, int bx=17)
 constructor
 L1MuDTTrackSegEta (const L1MuDTTrackSegEta &)
 copy constructor
 L1MuDTTrackSegEta (const L1MuDTTrackSegLoc &, int position=0, int quality=0, int bx=17)
 constructor
 L1MuDTTrackSegEta ()
 default constructor
bool operator!= (const L1MuDTTrackSegEta &) const
 unequal operator
L1MuDTTrackSegEtaoperator= (const L1MuDTTrackSegEta &)
 assignment operator
bool operator== (const L1MuDTTrackSegEta &) const
 equal operator
unsigned int position () const
 return position
unsigned int quality () const
 return quality code
void reset ()
 reset eta track segment
int sector () const
 return sector
int station () const
 return station
int wheel () const
 return wheel
const L1MuDTTrackSegLocwhere () const
 return location of eta track segment
virtual ~L1MuDTTrackSegEta ()
 destructor

Private Attributes

int m_bx
L1MuDTTrackSegLoc m_location
unsigned int m_position
unsigned int m_quality

Friends

std::ostream & operator<< (std::ostream &, const L1MuDTTrackSegEta &)
 output stream operator

Detailed Description

ETA Track Segment

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

N. Neumeister CERN EP

Definition at line 38 of file L1MuDTTrackSegEta.h.


Constructor & Destructor Documentation

L1MuDTTrackSegEta::L1MuDTTrackSegEta ( )

default constructor

Definition at line 47 of file L1MuDTTrackSegEta.cc.

                                     : 
  m_location(), m_position(0), m_quality(0), m_bx(0) {}
L1MuDTTrackSegEta::L1MuDTTrackSegEta ( int  wheel_id,
int  sector_id,
int  station_id,
int  position = 0,
int  quality = 0,
int  bx = 17 
)

constructor

Definition at line 51 of file L1MuDTTrackSegEta.cc.

                                                                    :
  m_location(wheel_id, sector_id, station_id),
  m_position(pos), m_quality(quality), m_bx(bx) {

}
L1MuDTTrackSegEta::L1MuDTTrackSegEta ( const L1MuDTTrackSegLoc id,
int  position = 0,
int  quality = 0,
int  bx = 17 
)

constructor

Definition at line 59 of file L1MuDTTrackSegEta.cc.

L1MuDTTrackSegEta::L1MuDTTrackSegEta ( const L1MuDTTrackSegEta id)

copy constructor

Definition at line 66 of file L1MuDTTrackSegEta.cc.

L1MuDTTrackSegEta::~L1MuDTTrackSegEta ( ) [virtual]

destructor

Definition at line 75 of file L1MuDTTrackSegEta.cc.

{}

Member Function Documentation

int L1MuDTTrackSegEta::bx ( ) const [inline]

return bunch crossing

Definition at line 81 of file L1MuDTTrackSegEta.h.

References m_bx.

{ return m_bx; }
bool L1MuDTTrackSegEta::empty ( void  ) const [inline]

is it an empty eta track segment?

Definition at line 84 of file L1MuDTTrackSegEta.h.

References m_position.

{ return m_position == 0; } 
bool L1MuDTTrackSegEta::operator!= ( const L1MuDTTrackSegEta id) const

unequal operator

Definition at line 127 of file L1MuDTTrackSegEta.cc.

References m_bx, m_location, m_position, and m_quality.

                                                                    {
  
  if ( m_location != id.m_location ) return true;
  if ( m_position != id.m_position ) return true;
  if ( m_quality  != id.m_quality )  return true;
  if ( m_bx       != id.m_bx )       return true;
  return false;

}
L1MuDTTrackSegEta & L1MuDTTrackSegEta::operator= ( const L1MuDTTrackSegEta id)

assignment operator

Definition at line 97 of file L1MuDTTrackSegEta.cc.

References m_bx, m_location, m_position, and m_quality.

                                                                           {

  if ( this != &id ) {
    m_location = id.m_location;
    m_position = id.m_position;
    m_quality  = id.m_quality;
    m_bx       = id.m_bx;
  }
  return *this;

}
bool L1MuDTTrackSegEta::operator== ( const L1MuDTTrackSegEta id) const

equal operator

Definition at line 113 of file L1MuDTTrackSegEta.cc.

References m_bx, m_location, m_position, and m_quality.

                                                                    {

  if ( m_location != id.m_location ) return false;
  if ( m_position != id.m_position ) return false;
  if ( m_quality  != id.m_quality )  return false;
  if ( m_bx       != id.m_bx )       return false;
  return true;

}
unsigned int L1MuDTTrackSegEta::position ( ) const [inline]

return position

Definition at line 75 of file L1MuDTTrackSegEta.h.

References m_position.

{ return m_position; }
unsigned int L1MuDTTrackSegEta::quality ( void  ) const [inline]

return quality code

Definition at line 78 of file L1MuDTTrackSegEta.h.

References m_quality.

{ return m_quality; }
void L1MuDTTrackSegEta::reset ( void  )

reset eta track segment

Definition at line 85 of file L1MuDTTrackSegEta.cc.

References m_bx, m_position, and m_quality.

                              {

  m_position = 0;
  m_quality  = 0;
  m_bx       = 0;

}
int L1MuDTTrackSegEta::sector ( void  ) const [inline]

return sector

Definition at line 66 of file L1MuDTTrackSegEta.h.

References m_location, and L1MuDTTrackSegLoc::sector().

{ return m_location.sector(); }
int L1MuDTTrackSegEta::station ( ) const [inline]

return station

Definition at line 69 of file L1MuDTTrackSegEta.h.

References m_location, and L1MuDTTrackSegLoc::station().

{ return m_location.station(); }
int L1MuDTTrackSegEta::wheel ( ) const [inline]

return wheel

Definition at line 63 of file L1MuDTTrackSegEta.h.

References m_location, and L1MuDTTrackSegLoc::wheel().

{ return m_location.wheel(); }
const L1MuDTTrackSegLoc& L1MuDTTrackSegEta::where ( ) const [inline]

return location of eta track segment

Definition at line 72 of file L1MuDTTrackSegEta.h.

References m_location.

{ return m_location; }

Friends And Related Function Documentation

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

output stream operator


Member Data Documentation

int L1MuDTTrackSegEta::m_bx [private]

Definition at line 103 of file L1MuDTTrackSegEta.h.

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

Definition at line 100 of file L1MuDTTrackSegEta.h.

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

unsigned int L1MuDTTrackSegEta::m_position [private]

Definition at line 101 of file L1MuDTTrackSegEta.h.

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

unsigned int L1MuDTTrackSegEta::m_quality [private]

Definition at line 102 of file L1MuDTTrackSegEta.h.

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