CMS 3D CMS Logo

L1MuKBMTCombinedStub.cc
Go to the documentation of this file.
2 
3 #include <iostream>
4 #include <iomanip>
5 #include <cmath>
6 
7 using namespace std;
9  : whNum_(0),
10  scNum_(0),
11  stNum_(0),
12  phi_(0),
13  phiB_(0),
14  tag_(false),
15  quality_(-1),
16  bxNum_(17),
17  eta1_(0),
18  eta2_(0),
19  qeta1_(-1),
20  qeta2_(-1) {}
21 
23  int sector,
24  int station,
25  int phi,
26  int phiB,
27  bool tag,
28  int bx,
29  int quality,
30  int eta1,
31  int eta2,
32  int qeta1,
33  int qeta2)
34  : whNum_(wheel),
35  scNum_(sector),
36  stNum_(station),
37  phi_(phi),
38  phiB_(phiB),
39  tag_(tag),
40  quality_(quality),
41  bxNum_(bx),
42  eta1_(eta1),
43  eta2_(eta2),
44  qeta1_(qeta1),
45  qeta2_(qeta2) {}
46 
48 
50  if (whNum_ != id.whNum_)
51  return false;
52  if (scNum_ != id.scNum_)
53  return false;
54  if (stNum_ != id.stNum_)
55  return false;
56  if (tag_ != id.tag_)
57  return false;
58  if (phi_ != id.phi_)
59  return false;
60  if (phiB_ != id.phiB_)
61  return false;
62  if (quality_ != id.quality_)
63  return false;
64  if (bxNum_ != id.bxNum_)
65  return false;
66  if (eta1_ != id.eta1_)
67  return false;
68  if (eta2_ != id.eta2_)
69  return false;
70  if (qeta1_ != id.qeta1_)
71  return false;
72  if (qeta2_ != id.qeta2_)
73  return false;
74  return true;
75 }
76 
77 //
78 // output stream operator for phi track segments
79 //
80 ostream& operator<<(ostream& s, const L1MuKBMTCombinedStub& id) {
81  s.setf(ios::right, ios::adjustfield);
82  s << "BX: " << setw(5) << id.bxNum_ << " "
83  << "wheel: " << setw(5) << id.whNum_ << " "
84  << "sector: " << setw(5) << id.scNum_ << " "
85  << "station: " << setw(5) << id.stNum_ << " "
86  << "tag: " << setw(5) << id.tag_ << " "
87  << "phi: " << setw(5) << id.phi_ << " "
88  << "phiB: " << setw(4) << id.phiB_ << " "
89  << "quality: " << setw(4) << id.quality_ << " "
90  << "eta1:" << setw(4) << id.eta1_ << " "
91  << "eta2:" << setw(4) << id.eta2_ << " "
92  << "qeta1:" << setw(4) << id.qeta1_ << " "
93  << "qeta2:" << setw(4) << id.qeta2_;
94 
95  return s;
96 }
bool operator==(const L1MuKBMTCombinedStub &) const
equal operator
ostream & operator<<(ostream &s, const L1MuKBMTCombinedStub &id)
L1MuKBMTCombinedStub()
default constructor
string quality