CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
L1MuBMTrackSegEta Class Reference

#include <L1MuBMTrackSegEta.h>

Public Member Functions

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

Private Attributes

int m_bx
 
L1MuBMTrackSegLoc m_location
 
unsigned int m_position
 
unsigned int m_quality
 

Friends

std::ostream & operator<< (std::ostream &, const L1MuBMTrackSegEta &)
 output stream operator More...
 

Detailed Description

ETA Track Segment

N. Neumeister CERN EP

Definition at line 41 of file L1MuBMTrackSegEta.h.

Constructor & Destructor Documentation

◆ L1MuBMTrackSegEta() [1/4]

L1MuBMTrackSegEta::L1MuBMTrackSegEta ( )

default constructor

Definition at line 45 of file L1MuBMTrackSegEta.cc.

45 : m_location(), m_position(0), m_quality(0), m_bx(0) {}

◆ L1MuBMTrackSegEta() [2/4]

L1MuBMTrackSegEta::L1MuBMTrackSegEta ( int  wheel_id,
int  sector_id,
int  station_id,
int  position = 0,
int  quality = 0,
int  bx = 17 
)

constructor

Definition at line 47 of file L1MuBMTrackSegEta.cc.

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

◆ L1MuBMTrackSegEta() [3/4]

L1MuBMTrackSegEta::L1MuBMTrackSegEta ( const L1MuBMTrackSegLoc id,
int  position = 0,
int  quality = 0,
int  bx = 17 
)

constructor

Definition at line 50 of file L1MuBMTrackSegEta.cc.

◆ L1MuBMTrackSegEta() [4/4]

L1MuBMTrackSegEta::L1MuBMTrackSegEta ( const L1MuBMTrackSegEta id)

copy constructor

Definition at line 53 of file L1MuBMTrackSegEta.cc.

◆ ~L1MuBMTrackSegEta()

L1MuBMTrackSegEta::~L1MuBMTrackSegEta ( )
virtual

destructor

Definition at line 59 of file L1MuBMTrackSegEta.cc.

59 {}

Member Function Documentation

◆ bx()

int L1MuBMTrackSegEta::bx ( ) const
inline

return bunch crossing

Definition at line 80 of file L1MuBMTrackSegEta.h.

80 { return m_bx; }

References m_bx.

◆ empty()

bool L1MuBMTrackSegEta::empty ( ) const
inline

is it an empty eta track segment?

Definition at line 83 of file L1MuBMTrackSegEta.h.

83 { return m_position == 0; }

References m_position.

◆ operator!=()

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

unequal operator

Definition at line 105 of file L1MuBMTrackSegEta.cc.

105  {
106  if (m_location != id.m_location)
107  return true;
108  if (m_position != id.m_position)
109  return true;
110  if (m_quality != id.m_quality)
111  return true;
112  if (m_bx != id.m_bx)
113  return true;
114  return false;
115 }

References m_bx, m_location, m_position, and m_quality.

◆ operator=()

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

assignment operator

Definition at line 77 of file L1MuBMTrackSegEta.cc.

77  {
78  if (this != &id) {
79  m_location = id.m_location;
80  m_position = id.m_position;
81  m_quality = id.m_quality;
82  m_bx = id.m_bx;
83  }
84  return *this;
85 }

References m_bx, m_location, m_position, and m_quality.

◆ operator==()

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

equal operator

Definition at line 90 of file L1MuBMTrackSegEta.cc.

90  {
91  if (m_location != id.m_location)
92  return false;
93  if (m_position != id.m_position)
94  return false;
95  if (m_quality != id.m_quality)
96  return false;
97  if (m_bx != id.m_bx)
98  return false;
99  return true;
100 }

References m_bx, m_location, m_position, and m_quality.

◆ position()

unsigned int L1MuBMTrackSegEta::position ( ) const
inline

return position

Definition at line 74 of file L1MuBMTrackSegEta.h.

74 { return m_position; }

References m_position.

◆ quality()

unsigned int L1MuBMTrackSegEta::quality ( ) const
inline

return quality code

Definition at line 77 of file L1MuBMTrackSegEta.h.

77 { return m_quality; }

References m_quality.

◆ reset()

void L1MuBMTrackSegEta::reset ( void  )

reset eta track segment

Definition at line 68 of file L1MuBMTrackSegEta.cc.

68  {
69  m_position = 0;
70  m_quality = 0;
71  m_bx = 0;
72 }

References m_bx, m_position, and m_quality.

◆ sector()

int L1MuBMTrackSegEta::sector ( ) const
inline

return sector

Definition at line 65 of file L1MuBMTrackSegEta.h.

65 { return m_location.sector(); }

References m_location, and L1MuBMTrackSegLoc::sector().

Referenced by geometryXMLparser.DTAlignable::index().

◆ station()

int L1MuBMTrackSegEta::station ( ) const
inline

return station

Definition at line 68 of file L1MuBMTrackSegEta.h.

68 { return m_location.station(); }

References m_location, and L1MuBMTrackSegLoc::station().

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

◆ wheel()

int L1MuBMTrackSegEta::wheel ( ) const
inline

return wheel

Definition at line 62 of file L1MuBMTrackSegEta.h.

62 { return m_location.wheel(); }

References m_location, and L1MuBMTrackSegLoc::wheel().

Referenced by geometryXMLparser.DTAlignable::index().

◆ where()

const L1MuBMTrackSegLoc& L1MuBMTrackSegEta::where ( ) const
inline

return location of eta track segment

Definition at line 71 of file L1MuBMTrackSegEta.h.

71 { return m_location; }

References m_location.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const L1MuBMTrackSegEta  
)
friend

output stream operator

Member Data Documentation

◆ m_bx

int L1MuBMTrackSegEta::m_bx
private

Definition at line 101 of file L1MuBMTrackSegEta.h.

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

◆ m_location

L1MuBMTrackSegLoc L1MuBMTrackSegEta::m_location
private

Definition at line 98 of file L1MuBMTrackSegEta.h.

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

◆ m_position

unsigned int L1MuBMTrackSegEta::m_position
private

Definition at line 99 of file L1MuBMTrackSegEta.h.

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

◆ m_quality

unsigned int L1MuBMTrackSegEta::m_quality
private

Definition at line 100 of file L1MuBMTrackSegEta.h.

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

L1MuBMTrackSegEta::m_location
L1MuBMTrackSegLoc m_location
Definition: L1MuBMTrackSegEta.h:98
L1MuBMTrackSegEta::quality
unsigned int quality() const
return quality code
Definition: L1MuBMTrackSegEta.h:77
L1MuBMTrackSegLoc::station
int station() const
return station
Definition: L1MuBMTrackSegLoc.h:62
L1MuBMTrackSegEta::m_position
unsigned int m_position
Definition: L1MuBMTrackSegEta.h:99
pos
Definition: PixelAliasList.h:18
L1MuBMTrackSegEta::bx
int bx() const
return bunch crossing
Definition: L1MuBMTrackSegEta.h:80
L1MuBMTrackSegLoc::wheel
int wheel() const
return wheel
Definition: L1MuBMTrackSegLoc.h:56
L1MuBMTrackSegEta::m_quality
unsigned int m_quality
Definition: L1MuBMTrackSegEta.h:100
L1MuBMTrackSegLoc::sector
int sector() const
return sector (30 deg)
Definition: L1MuBMTrackSegLoc.h:59
L1MuBMTrackSegEta::m_bx
int m_bx
Definition: L1MuBMTrackSegEta.h:101