CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 47 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.

46  :
47  m_id(0), m_eta(0), m_qual(0) {
48 
49  for (int i = 0; i < 3; i++) {
50  m_wheel[i] = 0;
51  m_position[i] = 0;
52  }
53 
54 }
int i
Definition: DBlmapReader.cc:9
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.

59  :
60 
61  m_id(id), m_eta(eta), m_qual(qual) {
62 
63  m_wheel[0] = w1;
64  m_wheel[1] = w2;
65  m_wheel[2] = w3;
66  m_position[0] = p1;
67  m_position[1] = p2;
68  m_position[2] = p3;
69 
70 }
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
int eta() const
return eta
double p2[4]
Definition: TauolaWrapper.h:90
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition: inclppp.h:1
double p1[4]
Definition: TauolaWrapper.h:89
double p3[4]
Definition: TauolaWrapper.h:91
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.

90  :
91  m_id(p.m_id), m_eta(p.m_eta), m_qual(p.m_qual) {
92 
93  for (int i = 0; i < 3; i++) {
94  m_wheel[i] = p.m_wheel[i];
95  m_position[i] = p.m_position[i];
96  }
97 
98 }
int i
Definition: DBlmapReader.cc:9
L1MuDTEtaPattern::~L1MuDTEtaPattern ( )
virtual

destructor

Definition at line 105 of file L1MuDTEtaPattern.cc.

105 {}

Member Function Documentation

int L1MuDTEtaPattern::eta ( ) const
inline

return eta

Definition at line 70 of file L1MuDTEtaPattern.h.

References m_eta.

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

70 { 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().

151  {
152 
153  if ( m_id != p.id() ) return true;
154  if ( m_eta != p.eta() ) return true;
155  if ( m_qual != p.quality() ) return true;
156  for (int i = 0; i < 3; i++) {
157  if ( m_wheel[i] != p.m_wheel[i] ) return true;
158  if ( m_position[i] != p.m_position[i] ) return true;
159  }
160  return false;
161 
162 }
int i
Definition: DBlmapReader.cc:9
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 115 of file L1MuDTEtaPattern.cc.

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

115  {
116 
117  if ( this != &p ) {
118  m_id = p.m_id;
119  m_eta = p.m_eta;
120  m_qual = p.m_qual;
121  for (int i = 0; i < 3; i++) {
122  m_wheel[i] = p.m_wheel[i];
123  m_position[i] = p.m_position[i];
124  }
125  }
126  return *this;
127 
128 }
int i
Definition: DBlmapReader.cc:9
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().

134  {
135 
136  if ( m_id != p.id() ) return false;
137  if ( m_eta != p.eta() ) return false;
138  if ( m_qual != p.quality() ) return false;
139  for (int i = 0; i < 3; i++) {
140  if ( m_wheel[i] != p.m_wheel[i] ) return false;
141  if ( m_position[i] != p.m_position[i] ) return false;
142  }
143  return true;
144 
145 }
int i
Definition: DBlmapReader.cc:9
int quality() const
return quality
int id() const
return id
int eta() const
return eta
int L1MuDTEtaPattern::position ( int  station) const
inline

return position in station [1,3]

Definition at line 79 of file L1MuDTEtaPattern.h.

References m_position.

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

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

return quality

Definition at line 73 of file L1MuDTEtaPattern.h.

References m_qual.

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

73 { return m_qual; }
template<class Archive >
void L1MuDTEtaPattern::serialize ( Archive &  ar,
const unsigned int  version 
)
private
int L1MuDTEtaPattern::wheel ( int  station) const
inline

return wheel number in station [1,3]

Definition at line 76 of file L1MuDTEtaPattern.h.

References m_wheel.

Referenced by L1MuDTEtaProcessor::assign(), geometryXMLparser.DTAlignable::index(), and L1MuDTEtaProcessor::runEtaTrackFinder().

76 { return m_wheel[station-1]; }

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 105 of file L1MuDTEtaPattern.h.

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

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

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

short L1MuDTEtaPattern::m_id
private

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

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

short L1MuDTEtaPattern::m_wheel[3]
private