Main Page
Namespaces
Classes
Package Documentation
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),scNum_(0),stNum_(0),phi_(0), phiB_(0),tag_(
false
), quality_(-1), bxNum_(17),
10
eta1_(0),eta2_(0),qeta1_(-1),qeta2_(-1) {}
11
12
13
L1MuKBMTCombinedStub::L1MuKBMTCombinedStub
(
int
wheel
,
int
sector,
int
station
,
int
phi
,
int
phiB
,
bool
tag
,
int
bx,
int
quality
,
int
eta1
,
int
eta2
,
int
qeta1
,
int
qeta2
):
14
whNum_
(wheel),
15
scNum_
(sector),
16
stNum_
(station),
17
phi_
(phi),
18
phiB_
(phiB),
19
tag_
(tag),
20
quality_
(quality),
21
bxNum_
(bx),
22
eta1_
(eta1),
23
eta2_
(eta2),
24
qeta1_
(qeta1),
25
qeta2_
(qeta2)
26
{
27
28
}
29
30
L1MuKBMTCombinedStub::~L1MuKBMTCombinedStub
() {}
31
32
33
bool
L1MuKBMTCombinedStub::operator==
(
const
L1MuKBMTCombinedStub
&
id
)
const
{
34
35
if
(
whNum_
!=
id
.
whNum_
)
return
false
;
36
if
(
scNum_
!=
id
.
scNum_
)
return
false
;
37
if
(
stNum_
!=
id
.
stNum_
)
return
false
;
38
if
(
tag_
!=
id
.
tag_
)
return
false
;
39
if
(
phi_
!=
id
.
phi_
)
return
false
;
40
if
(
phiB_
!=
id
.
phiB_
)
return
false
;
41
if
(
quality_
!=
id
.
quality_
)
return
false
;
42
if
(
bxNum_
!=
id
.
bxNum_
)
return
false
;
43
if
(
eta1_
!=
id
.
eta1_
)
return
false
;
44
if
(
eta2_
!=
id
.
eta2_
)
return
false
;
45
if
(
qeta1_
!=
id
.
qeta1_
)
return
false
;
46
if
(
qeta2_
!=
id
.
qeta2_
)
return
false
;
47
return
true
;
48
49
}
50
51
//
52
// output stream operator for phi track segments
53
//
54
ostream&
operator<<
(ostream&
s
,
const
L1MuKBMTCombinedStub
&
id
) {
55
56
s.setf(ios::right,ios::adjustfield);
57
s <<
"BX: "
<< setw(5) <<
id
.bxNum_ <<
" "
58
<<
"wheel: "
<< setw(5) <<
id
.whNum_ <<
" "
59
<<
"sector: "
<< setw(5) <<
id
.scNum_ <<
" "
60
<<
"station: "
<< setw(5) <<
id
.stNum_ <<
" "
61
<<
"tag: "
<< setw(5) <<
id
.tag_ <<
" "
62
<<
"phi: "
<< setw(5) <<
id
.phi_ <<
" "
63
<<
"phiB: "
<< setw(4) <<
id
.phiB_ <<
" "
64
<<
"quality: "
<< setw(4) <<
id
.quality_ <<
" "
65
<<
"eta1:"
<< setw(4) <<
id
.eta1_ <<
" "
66
<<
"eta2:"
<< setw(4) <<
id
.eta2_ <<
" "
67
<<
"qeta1:"
<< setw(4) <<
id
.qeta1_ <<
" "
68
<<
"qeta2:"
<< setw(4) <<
id
.qeta2_;
69
70
return
s
;
71
72
}
L1MuKBMTCombinedStub::operator==
bool operator==(const L1MuKBMTCombinedStub &) const
equal operator
Definition:
L1MuKBMTCombinedStub.cc:33
L1MuKBMTCombinedStub::phiB_
int phiB_
Definition:
L1MuKBMTCombinedStub.h:97
L1MuKBMTCombinedStub::~L1MuKBMTCombinedStub
~L1MuKBMTCombinedStub()
Definition:
L1MuKBMTCombinedStub.cc:30
L1MuKBMTCombinedStub::eta2_
int eta2_
Definition:
L1MuKBMTCombinedStub.h:102
L1MuKBMTCombinedStub::eta1_
int eta1_
Definition:
L1MuKBMTCombinedStub.h:101
L1MuKBMTCombinedStub::tag_
bool tag_
Definition:
L1MuKBMTCombinedStub.h:98
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:319
L1MuKBMTCombinedStub::tag
int tag() const
return tag (second TS tag)
Definition:
L1MuKBMTCombinedStub.h:68
funct::false
false
Definition:
Factorize.h:36
L1MuKBMTCombinedStub::phi_
int phi_
Definition:
L1MuKBMTCombinedStub.h:96
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
L1MuKBMTCombinedStub::eta1
int eta1() const
return first eta
Definition:
L1MuKBMTCombinedStub.h:73
std
Definition:
JetResolutionObject.h:80
L1MuKBMTCombinedStub::operator<<
friend std::ostream & operator<<(std::ostream &, const L1MuKBMTCombinedStub &)
overload output stream operator for phi track segments
L1MuKBMTCombinedStub::stNum_
int stNum_
Definition:
L1MuKBMTCombinedStub.h:95
L1MuKBMTCombinedStub::scNum_
int scNum_
Definition:
L1MuKBMTCombinedStub.h:94
L1MuKBMTCombinedStub::quality
int quality() const
return quality code
Definition:
L1MuKBMTCombinedStub.h:66
L1MuKBMTCombinedStub::L1MuKBMTCombinedStub
L1MuKBMTCombinedStub()
default constructor
Definition:
L1MuKBMTCombinedStub.cc:8
L1MuKBMTCombinedStub
Definition:
L1MuKBMTCombinedStub.h:45
L1MuKBMTCombinedStub::whNum_
int whNum_
Definition:
L1MuKBMTCombinedStub.h:93
L1MuKBMTCombinedStub::qeta2
int qeta2() const
return second eta quality
Definition:
L1MuKBMTCombinedStub.h:79
L1MuKBMTCombinedStub::phi
int phi() const
return phi
Definition:
L1MuKBMTCombinedStub.h:62
L1MuKBMTCombinedStub.h
L1MuKBMTCombinedStub::phiB
int phiB() const
return phib
Definition:
L1MuKBMTCombinedStub.h:64
L1MuKBMTCombinedStub::quality_
int quality_
Definition:
L1MuKBMTCombinedStub.h:99
L1MuKBMTCombinedStub::eta2
int eta2() const
return second eta
Definition:
L1MuKBMTCombinedStub.h:75
L1MuKBMTCombinedStub::bxNum_
int bxNum_
Definition:
L1MuKBMTCombinedStub.h:100
L1MuKBMTCombinedStub::qeta1_
int qeta1_
Definition:
L1MuKBMTCombinedStub.h:103
L1MuKBMTCombinedStub::qeta1
int qeta1() const
return first eta quality
Definition:
L1MuKBMTCombinedStub.h:77
relativeConstraints.station
station
Definition:
relativeConstraints.py:67
L1MuKBMTCombinedStub::qeta2_
int qeta2_
Definition:
L1MuKBMTCombinedStub.h:104
Generated for CMSSW Reference Manual by
1.8.11