CMS 3D CMS Logo

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() [1/4]

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() [2/4]

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, LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, chargedHadronTrackResolutionFilter_cfi::p3, w1, 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
weight_default_t w1[2000]
Definition: w1.h:9
int eta() const
return eta
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition: inclppp.h:1

◆ L1MuDTEtaPattern() [3/4]

L1MuDTEtaPattern::L1MuDTEtaPattern ( int  id,
const std::string &  pat,
int  eta,
int  qual 
)

◆ L1MuDTEtaPattern() [4/4]

L1MuDTEtaPattern::L1MuDTEtaPattern ( const L1MuDTEtaPattern p)

copy constructor

Definition at line 80 of file L1MuDTEtaPattern.cc.

References mps_fire::i, m_position, m_wheel, and AlCaHLTBitMon_ParallelJobs::p.

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::~L1MuDTEtaPattern ( )
virtual

destructor

Definition at line 91 of file L1MuDTEtaPattern.cc.

91 {}

Member Function Documentation

◆ eta()

int L1MuDTEtaPattern::eta ( ) const
inline

return eta

Definition at line 66 of file L1MuDTEtaPattern.h.

References m_eta.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), Jet.Jet::jetID(), datamodel.Object::p4(), and Jet.Jet::puJetId().

66 { return m_eta; }

◆ id()

int L1MuDTEtaPattern::id ( ) const
inline

return id

Definition at line 63 of file L1MuDTEtaPattern.h.

References m_id.

63 { return m_id; }

◆ operator!=()

bool L1MuDTEtaPattern::operator!= ( const L1MuDTEtaPattern p) const

unequal operator

Definition at line 135 of file L1MuDTEtaPattern.cc.

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

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 }

◆ operator=()

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, m_wheel, and AlCaHLTBitMon_ParallelJobs::p.

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 }

◆ operator==()

bool L1MuDTEtaPattern::operator== ( const L1MuDTEtaPattern p) const

equal operator

Definition at line 116 of file L1MuDTEtaPattern.cc.

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

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 }

◆ position()

int L1MuDTEtaPattern::position ( int  station) const
inline

return position in station [1,3]

Definition at line 75 of file L1MuDTEtaPattern.h.

References m_position, and relativeConstraints::station.

◆ quality()

int L1MuDTEtaPattern::quality ( ) const
inline

return quality

Definition at line 69 of file L1MuDTEtaPattern.h.

References m_qual.

69 { return m_qual; }

◆ serialize()

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

◆ wheel()

int L1MuDTEtaPattern::wheel ( int  station) const
inline

return wheel number in station [1,3]

Definition at line 72 of file L1MuDTEtaPattern.h.

References m_wheel, and relativeConstraints::station.

Referenced by geometryXMLparser.DTAlignable::index().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 99 of file L1MuDTEtaPattern.h.

◆ cond::serialization::access

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

Definition at line 99 of file L1MuDTEtaPattern.h.

◆ operator<<

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

output stream operator

◆ operator>>

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

input stream operator

Member Data Documentation

◆ m_eta

short L1MuDTEtaPattern::m_eta
private

Definition at line 96 of file L1MuDTEtaPattern.h.

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

◆ m_id

short L1MuDTEtaPattern::m_id
private

Definition at line 93 of file L1MuDTEtaPattern.h.

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

◆ m_position

short L1MuDTEtaPattern::m_position[3]
private

Definition at line 95 of file L1MuDTEtaPattern.h.

Referenced by L1MuDTEtaPattern(), operator!=(), operator=(), operator==(), and position().

◆ m_qual

short L1MuDTEtaPattern::m_qual
private

Definition at line 97 of file L1MuDTEtaPattern.h.

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

◆ m_wheel

short L1MuDTEtaPattern::m_wheel[3]
private

Definition at line 94 of file L1MuDTEtaPattern.h.

Referenced by L1MuDTEtaPattern(), operator!=(), operator=(), operator==(), and wheel().