src
DataFormats
L1TMuon
src
L1MuKBMTCombinedStub.cc
Go to the documentation of this file.
1
#include "
DataFormats/L1TMuon/interface/L1MuKBMTCombinedStub.h
"
2
3
#include <iostream>
4
#include <iomanip>
5
#include <cmath>
6
7
using namespace
std
;
8
L1MuKBMTCombinedStub::L1MuKBMTCombinedStub
()
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
22
L1MuKBMTCombinedStub::L1MuKBMTCombinedStub
(
int
wheel
,
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
47
L1MuKBMTCombinedStub::~L1MuKBMTCombinedStub
() {}
48
49
bool
L1MuKBMTCombinedStub::operator==
(
const
L1MuKBMTCombinedStub
&
id
)
const
{
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
}
L1MuKBMTCombinedStub::phiB_
int phiB_
Definition:
L1MuKBMTCombinedStub.h:105
L1MuKBMTCombinedStub::~L1MuKBMTCombinedStub
~L1MuKBMTCombinedStub()
Definition:
L1MuKBMTCombinedStub.cc:47
L1MuKBMTCombinedStub::eta2_
int eta2_
Definition:
L1MuKBMTCombinedStub.h:110
L1MuKBMTCombinedStub::eta1_
int eta1_
Definition:
L1MuKBMTCombinedStub.h:109
L1MuKBMTCombinedStub::operator==
bool operator==(const L1MuKBMTCombinedStub &) const
equal operator
Definition:
L1MuKBMTCombinedStub.cc:49
PVValHelper::phi
Definition:
PVValidationHelpers.h:69
L1MuKBMTCombinedStub::tag_
bool tag_
Definition:
L1MuKBMTCombinedStub.h:106
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:319
operator<<
ostream & operator<<(ostream &s, const L1MuKBMTCombinedStub &id)
Definition:
L1MuKBMTCombinedStub.cc:80
funct::false
false
Definition:
Factorize.h:29
HLT_2023v12_cff.eta2
eta2
Definition:
HLT_2023v12_cff.py:14163
L1MuKBMTCombinedStub::phi_
int phi_
Definition:
L1MuKBMTCombinedStub.h:104
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
std
Definition:
JetResolutionObject.h:76
L1MuKBMTCombinedStub::stNum_
int stNum_
Definition:
L1MuKBMTCombinedStub.h:103
L1MuKBMTCombinedStub::scNum_
int scNum_
Definition:
L1MuKBMTCombinedStub.h:102
simKBmtfDigis_cfi.bx
bx
Definition:
simKBmtfDigis_cfi.py:55
L1MuKBMTCombinedStub::L1MuKBMTCombinedStub
L1MuKBMTCombinedStub()
default constructor
Definition:
L1MuKBMTCombinedStub.cc:8
L1MuKBMTCombinedStub
Definition:
L1MuKBMTCombinedStub.h:45
quality
string quality
Definition:
beamSpotDipStandalone.cc:53
L1MuKBMTCombinedStub::whNum_
int whNum_
Definition:
L1MuKBMTCombinedStub.h:101
makeGlobalPositionRcd_cfg.tag
tag
Definition:
makeGlobalPositionRcd_cfg.py:6
L1MuKBMTCombinedStub.h
L1MuKBMTCombinedStub::quality_
int quality_
Definition:
L1MuKBMTCombinedStub.h:107
hgcalTBTopologyTester_cfi.sector
sector
Definition:
hgcalTBTopologyTester_cfi.py:9
L1MuKBMTCombinedStub::bxNum_
int bxNum_
Definition:
L1MuKBMTCombinedStub.h:108
HLT_2023v12_cff.eta1
eta1
Definition:
HLT_2023v12_cff.py:14162
L1MuKBMTCombinedStub::qeta1_
int qeta1_
Definition:
L1MuKBMTCombinedStub.h:111
relativeConstraints.station
station
Definition:
relativeConstraints.py:67
L1MuKBMTCombinedStub::qeta2_
int qeta2_
Definition:
L1MuKBMTCombinedStub.h:112
Generated for CMSSW Reference Manual by
1.8.14