CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
L1MuDTEtaPattern Class Reference

#include <L1MuDTEtaPattern.h>

Public Member Functions

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

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

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

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 
std::ostream & operator<< (std::ostream &, const L1MuDTEtaPattern &)
 output stream operator More...
 
std::istream & operator>> (std::istream &, L1MuDTEtaPattern &)
 input stream operator More...
 

Detailed Description

Pattern for Eta Track Finder:

An eta pattern consists of:

Date:
2008/04/09 15:22:31
Revision:
1.2

N. Neumeister CERN EP

Definition at line 46 of file L1MuDTEtaPattern.h.

Constructor & Destructor Documentation

L1MuDTEtaPattern::L1MuDTEtaPattern ( )

default constructor

Definition at line 46 of file L1MuDTEtaPattern.cc.

References mps_fire::i, m_position, and m_wheel.

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

constructor

Definition at line 53 of file L1MuDTEtaPattern.cc.

References m_position, m_wheel, fireworks::p1, fireworks::p2, w2, and w3.

54  :
55 
56  m_id(id),
57  m_eta(eta),
58  m_qual(qual) {
59  m_wheel[0] = w1;
60  m_wheel[1] = w2;
61  m_wheel[2] = w3;
62  m_position[0] = p1;
63  m_position[1] = p2;
64  m_position[2] = p3;
65 }
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
const TString p2
Definition: fwPaths.cc:13
int eta() const
return eta
const TString p1
Definition: fwPaths.cc:12
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition: inclppp.h:1
L1MuDTEtaPattern::L1MuDTEtaPattern ( int  id,
const std::string &  pat,
int  eta,
int  qual 
)
L1MuDTEtaPattern::L1MuDTEtaPattern ( const L1MuDTEtaPattern p)

copy constructor

Definition at line 80 of file L1MuDTEtaPattern.cc.

References mps_fire::i, m_position, and m_wheel.

80  : m_id(p.m_id), m_eta(p.m_eta), m_qual(p.m_qual) {
81  for (int i = 0; i < 3; i++) {
82  m_wheel[i] = p.m_wheel[i];
83  m_position[i] = p.m_position[i];
84  }
85 }
L1MuDTEtaPattern::~L1MuDTEtaPattern ( )
virtual

destructor

Definition at line 91 of file L1MuDTEtaPattern.cc.

91 {}

Member Function Documentation

int L1MuDTEtaPattern::eta ( ) const
inline
int L1MuDTEtaPattern::id ( ) const
inline
bool L1MuDTEtaPattern::operator!= ( const L1MuDTEtaPattern p) const

unequal operator

Definition at line 135 of file L1MuDTEtaPattern.cc.

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

135  {
136  if (m_id != p.id())
137  return true;
138  if (m_eta != p.eta())
139  return true;
140  if (m_qual != p.quality())
141  return true;
142  for (int i = 0; i < 3; i++) {
143  if (m_wheel[i] != p.m_wheel[i])
144  return true;
145  if (m_position[i] != p.m_position[i])
146  return true;
147  }
148  return false;
149 }
int quality() const
return quality
int id() const
return id
int eta() const
return eta
L1MuDTEtaPattern & L1MuDTEtaPattern::operator= ( const L1MuDTEtaPattern p)

assignment operator

Definition at line 100 of file L1MuDTEtaPattern.cc.

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

100  {
101  if (this != &p) {
102  m_id = p.m_id;
103  m_eta = p.m_eta;
104  m_qual = p.m_qual;
105  for (int i = 0; i < 3; i++) {
106  m_wheel[i] = p.m_wheel[i];
107  m_position[i] = p.m_position[i];
108  }
109  }
110  return *this;
111 }
bool L1MuDTEtaPattern::operator== ( const L1MuDTEtaPattern p) const

equal operator

Definition at line 116 of file L1MuDTEtaPattern.cc.

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

116  {
117  if (m_id != p.id())
118  return false;
119  if (m_eta != p.eta())
120  return false;
121  if (m_qual != p.quality())
122  return false;
123  for (int i = 0; i < 3; i++) {
124  if (m_wheel[i] != p.m_wheel[i])
125  return false;
126  if (m_position[i] != p.m_position[i])
127  return false;
128  }
129  return true;
130 }
int quality() const
return quality
int id() const
return id
int eta() const
return eta
int L1MuDTEtaPattern::position ( int  station) const
inline
int L1MuDTEtaPattern::quality ( ) const
inline
template<class Archive >
void L1MuDTEtaPattern::serialize ( Archive &  ar,
const unsigned int  version 
)
private
int L1MuDTEtaPattern::wheel ( int  station) const
inline

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 99 of file L1MuDTEtaPattern.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 99 of file L1MuDTEtaPattern.h.

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 96 of file L1MuDTEtaPattern.h.

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

short L1MuDTEtaPattern::m_id
private

Definition at line 93 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 97 of file L1MuDTEtaPattern.h.

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

short L1MuDTEtaPattern::m_wheel[3]
private