File indexing completed on 2024-04-06 12:04:34
0001 #include "DataFormats/L1TMuon/interface/L1MuKBMTCombinedStub.h"
0002
0003 #include <iostream>
0004 #include <iomanip>
0005 #include <cmath>
0006
0007 using namespace std;
0008 L1MuKBMTCombinedStub::L1MuKBMTCombinedStub()
0009 : whNum_(0),
0010 scNum_(0),
0011 stNum_(0),
0012 phi_(0),
0013 phiB_(0),
0014 tag_(false),
0015 quality_(-1),
0016 bxNum_(17),
0017 eta1_(0),
0018 eta2_(0),
0019 qeta1_(-1),
0020 qeta2_(-1) {}
0021
0022 L1MuKBMTCombinedStub::L1MuKBMTCombinedStub(int wheel,
0023 int sector,
0024 int station,
0025 int phi,
0026 int phiB,
0027 bool tag,
0028 int bx,
0029 int quality,
0030 int eta1,
0031 int eta2,
0032 int qeta1,
0033 int qeta2)
0034 : whNum_(wheel),
0035 scNum_(sector),
0036 stNum_(station),
0037 phi_(phi),
0038 phiB_(phiB),
0039 tag_(tag),
0040 quality_(quality),
0041 bxNum_(bx),
0042 eta1_(eta1),
0043 eta2_(eta2),
0044 qeta1_(qeta1),
0045 qeta2_(qeta2) {}
0046
0047 L1MuKBMTCombinedStub::~L1MuKBMTCombinedStub() {}
0048
0049 bool L1MuKBMTCombinedStub::operator==(const L1MuKBMTCombinedStub& id) const {
0050 if (whNum_ != id.whNum_)
0051 return false;
0052 if (scNum_ != id.scNum_)
0053 return false;
0054 if (stNum_ != id.stNum_)
0055 return false;
0056 if (tag_ != id.tag_)
0057 return false;
0058 if (phi_ != id.phi_)
0059 return false;
0060 if (phiB_ != id.phiB_)
0061 return false;
0062 if (quality_ != id.quality_)
0063 return false;
0064 if (bxNum_ != id.bxNum_)
0065 return false;
0066 if (eta1_ != id.eta1_)
0067 return false;
0068 if (eta2_ != id.eta2_)
0069 return false;
0070 if (qeta1_ != id.qeta1_)
0071 return false;
0072 if (qeta2_ != id.qeta2_)
0073 return false;
0074 return true;
0075 }
0076
0077
0078
0079
0080 ostream& operator<<(ostream& s, const L1MuKBMTCombinedStub& id) {
0081 s.setf(ios::right, ios::adjustfield);
0082 s << "BX: " << setw(5) << id.bxNum_ << " "
0083 << "wheel: " << setw(5) << id.whNum_ << " "
0084 << "sector: " << setw(5) << id.scNum_ << " "
0085 << "station: " << setw(5) << id.stNum_ << " "
0086 << "tag: " << setw(5) << id.tag_ << " "
0087 << "phi: " << setw(5) << id.phi_ << " "
0088 << "phiB: " << setw(4) << id.phiB_ << " "
0089 << "quality: " << setw(4) << id.quality_ << " "
0090 << "eta1:" << setw(4) << id.eta1_ << " "
0091 << "eta2:" << setw(4) << id.eta2_ << " "
0092 << "qeta1:" << setw(4) << id.qeta1_ << " "
0093 << "qeta2:" << setw(4) << id.qeta2_;
0094
0095 return s;
0096 }