CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

L1MuDTEtaPattern Class Reference

#include <L1MuDTEtaPattern.h>

List of all members.

Public Member Functions

int eta () const
 return eta
int id () const
 return id
 L1MuDTEtaPattern (int id, int w1, int w2, int w3, int p1, int p2, int p3, int eta, int qual)
 constructor
 L1MuDTEtaPattern (const L1MuDTEtaPattern &)
 copy constructor
 L1MuDTEtaPattern (int id, const std::string &pat, int eta, int qual)
 L1MuDTEtaPattern ()
 default constructor
bool operator!= (const L1MuDTEtaPattern &) const
 unequal operator
L1MuDTEtaPatternoperator= (const L1MuDTEtaPattern &)
 assignment operator
bool operator== (const L1MuDTEtaPattern &) const
 equal operator
int position (int station) const
 return position in station [1,3]
int quality () const
 return quality
int wheel (int station) const
 return wheel number in station [1,3]
virtual ~L1MuDTEtaPattern ()
 destructor

Private Attributes

short m_eta
short m_id
short m_position [3]
short m_qual
short m_wheel [3]

Friends

std::ostream & operator<< (std::ostream &, const L1MuDTEtaPattern &)
 output stream operator
std::istream & operator>> (std::istream &, L1MuDTEtaPattern &)
 input stream operator

Detailed Description

Pattern for Eta Track Finder:

An eta pattern consists of:

Date:
2010/01/19 18:39:54
Revision:
1.3

N. Neumeister CERN EP

Definition at line 45 of file L1MuDTEtaPattern.h.


Constructor & Destructor Documentation

L1MuDTEtaPattern::L1MuDTEtaPattern ( )

default constructor

Definition at line 46 of file L1MuDTEtaPattern.cc.

References i, m_position, and m_wheel.

                                   :
  m_id(0), m_eta(0), m_qual(0) {
  
  for (int i = 0; i < 3; i++) {
    m_wheel[i] = 0; 
    m_position[i] = 0;
  }
     
}
L1MuDTEtaPattern::L1MuDTEtaPattern ( int  id,
int  w1,
int  w2,
int  w3,
int  p1,
int  p2,
int  p3,
int  eta,
int  qual 
)

constructor

Definition at line 57 of file L1MuDTEtaPattern.cc.

References m_position, m_wheel, p1, p2, p3, w2, and w3.

                                                      : 
                                
  m_id(id), m_eta(eta), m_qual(qual) { 
  
  m_wheel[0] = w1;
  m_wheel[1] = w2;
  m_wheel[2] = w3; 
  m_position[0] = p1;
  m_position[1] = p2;
  m_position[2] = p3;
  
}                                                
L1MuDTEtaPattern::L1MuDTEtaPattern ( int  id,
const std::string &  pat,
int  eta,
int  qual 
)
L1MuDTEtaPattern::L1MuDTEtaPattern ( const L1MuDTEtaPattern p)

copy constructor

Definition at line 90 of file L1MuDTEtaPattern.cc.

References i, m_position, and m_wheel.

                                                            :
  m_id(p.m_id), m_eta(p.m_eta), m_qual(p.m_qual) {
  
  for (int i = 0; i < 3; i++) {
    m_wheel[i] = p.m_wheel[i]; 
    m_position[i] = p.m_position[i];
  }   

}
L1MuDTEtaPattern::~L1MuDTEtaPattern ( ) [virtual]

destructor

Definition at line 105 of file L1MuDTEtaPattern.cc.

{}

Member Function Documentation

int L1MuDTEtaPattern::eta ( ) const [inline]

return eta

Definition at line 68 of file L1MuDTEtaPattern.h.

References m_eta.

Referenced by operator!=(), operator<<(), operator==(), L1MuDTEtaProcessor::print(), and L1MuDTEtaProcessor::runEtaMatchingUnit().

{ return m_eta; }
int L1MuDTEtaPattern::id ( void  ) const [inline]
bool L1MuDTEtaPattern::operator!= ( const L1MuDTEtaPattern p) const

unequal operator

Definition at line 151 of file L1MuDTEtaPattern.cc.

References eta(), i, id(), m_eta, m_id, m_position, m_qual, m_wheel, and quality().

                                                                 {

  if ( m_id   != p.id() )      return true;
  if ( m_eta  != p.eta() )     return true;
  if ( m_qual != p.quality() ) return true;
  for (int i = 0; i < 3; i++) {
    if ( m_wheel[i]    != p.m_wheel[i] )    return true;
    if ( m_position[i] != p.m_position[i] ) return true;
  }
  return false;
  
}
L1MuDTEtaPattern & L1MuDTEtaPattern::operator= ( const L1MuDTEtaPattern p)

assignment operator

Definition at line 115 of file L1MuDTEtaPattern.cc.

References i, m_eta, m_id, m_position, m_qual, and m_wheel.

                                                                       {

  if ( this != &p ) {
    m_id   = p.m_id;
    m_eta  = p.m_eta;
    m_qual = p.m_qual;
    for (int i = 0; i < 3; i++) {
      m_wheel[i] = p.m_wheel[i];
      m_position[i] = p.m_position[i];
    }
  }
  return *this; 
  
}
bool L1MuDTEtaPattern::operator== ( const L1MuDTEtaPattern p) const

equal operator

Definition at line 134 of file L1MuDTEtaPattern.cc.

References eta(), i, id(), m_eta, m_id, m_position, m_qual, m_wheel, and quality().

                                                                 { 

  if ( m_id   != p.id() )      return false;
  if ( m_eta  != p.eta() )     return false;
  if ( m_qual != p.quality() ) return false;
  for (int i = 0; i < 3; i++) {
    if ( m_wheel[i]    != p.m_wheel[i] )    return false;
    if ( m_position[i] != p.m_position[i] ) return false;
  }
  return true;
  
}
int L1MuDTEtaPattern::position ( int  station) const [inline]

return position in station [1,3]

Definition at line 77 of file L1MuDTEtaPattern.h.

References m_position.

Referenced by L1MuDTEtaProcessor::assign(), and L1MuDTEtaProcessor::runEtaTrackFinder().

{ return m_position[station-1]; }
int L1MuDTEtaPattern::quality ( ) const [inline]

return quality

Definition at line 71 of file L1MuDTEtaPattern.h.

References m_qual.

Referenced by operator!=(), operator<<(), operator==(), L1MuDTEtaProcessor::print(), and L1MuDTEtaProcessor::runEtaTrackFinder().

{ return m_qual; }
int L1MuDTEtaPattern::wheel ( int  station) const [inline]

return wheel number in station [1,3]

Definition at line 74 of file L1MuDTEtaPattern.h.

References m_wheel.

Referenced by L1MuDTEtaProcessor::assign(), and L1MuDTEtaProcessor::runEtaTrackFinder().

{ return m_wheel[station-1]; }

Friends And Related Function Documentation

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

output stream operator

std::istream& operator>> ( std::istream &  ,
L1MuDTEtaPattern  
) [friend]

input stream operator


Member Data Documentation

short L1MuDTEtaPattern::m_eta [private]

Definition at line 99 of file L1MuDTEtaPattern.h.

Referenced by eta(), operator!=(), operator=(), operator==(), and operator>>().

short L1MuDTEtaPattern::m_id [private]

Definition at line 96 of file L1MuDTEtaPattern.h.

Referenced by id(), operator!=(), operator=(), operator==(), and operator>>().

short L1MuDTEtaPattern::m_position[3] [private]
short L1MuDTEtaPattern::m_qual [private]

Definition at line 100 of file L1MuDTEtaPattern.h.

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

short L1MuDTEtaPattern::m_wheel[3] [private]