Main Page
Namespaces
Classes
Package Documentation
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),coarseEta_(0),
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
coarseEta
,
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
coarseEta_
(coarseEta),
23
eta1_
(eta1),
24
eta2_
(eta2),
25
qeta1_
(qeta1),
26
qeta2_
(qeta2)
27
{
28
29
}
30
31
L1MuKBMTCombinedStub::~L1MuKBMTCombinedStub
() {}
32
33
34
bool
L1MuKBMTCombinedStub::operator==
(
const
L1MuKBMTCombinedStub
&
id
)
const
{
35
36
if
(
whNum_
!=
id
.
whNum_
)
return
false
;
37
if
(
scNum_
!=
id
.
scNum_
)
return
false
;
38
if
(
stNum_
!=
id
.
stNum_
)
return
false
;
39
if
(
tag_
!=
id
.
tag_
)
return
false
;
40
if
(
phi_
!=
id
.
phi_
)
return
false
;
41
if
(
phiB_
!=
id
.
phiB_
)
return
false
;
42
if
(
quality_
!=
id
.
quality_
)
return
false
;
43
if
(
bxNum_
!=
id
.
bxNum_
)
return
false
;
44
if
(
eta1_
!=
id
.
eta1_
)
return
false
;
45
if
(
eta2_
!=
id
.
eta2_
)
return
false
;
46
if
(
coarseEta_
!=
id
.
coarseEta_
)
return
false
;
47
if
(
qeta1_
!=
id
.
qeta1_
)
return
false
;
48
if
(
qeta2_
!=
id
.
qeta2_
)
return
false
;
49
return
true
;
50
51
}
52
53
//
54
// output stream operator for phi track segments
55
//
56
ostream&
operator<<
(ostream&
s
,
const
L1MuKBMTCombinedStub
&
id
) {
57
58
s.setf(ios::right,ios::adjustfield);
59
s <<
"BX: "
<< setw(5) <<
id
.bxNum_ <<
" "
60
<<
"wheel: "
<< setw(5) <<
id
.whNum_ <<
" "
61
<<
"sector: "
<< setw(5) <<
id
.scNum_ <<
" "
62
<<
"station: "
<< setw(5) <<
id
.stNum_ <<
" "
63
<<
"tag: "
<< setw(5) <<
id
.tag_ <<
" "
64
<<
"phi: "
<< setw(5) <<
id
.phi_ <<
" "
65
<<
"phiB: "
<< setw(4) <<
id
.phiB_ <<
" "
66
<<
"quality: "
<< setw(4) <<
id
.quality_ <<
" "
67
<<
"coarse eta:"
<< setw(4) <<
id
.coarseEta_ <<
" "
68
<<
"eta1:"
<< setw(4) <<
id
.eta1_ <<
" "
69
<<
"eta2:"
<< setw(4) <<
id
.eta2_ <<
" "
70
<<
"qeta1:"
<< setw(4) <<
id
.qeta1_ <<
" "
71
<<
"qeta2:"
<< setw(4) <<
id
.qeta2_;
72
73
return
s
;
74
75
}
L1MuKBMTCombinedStub::operator==
bool operator==(const L1MuKBMTCombinedStub &) const
equal operator
Definition:
L1MuKBMTCombinedStub.cc:34
L1MuKBMTCombinedStub::phiB_
int phiB_
Definition:
L1MuKBMTCombinedStub.h:100
L1MuKBMTCombinedStub::~L1MuKBMTCombinedStub
~L1MuKBMTCombinedStub()
Definition:
L1MuKBMTCombinedStub.cc:31
L1MuKBMTCombinedStub::eta2_
int eta2_
Definition:
L1MuKBMTCombinedStub.h:106
L1MuKBMTCombinedStub::eta1_
int eta1_
Definition:
L1MuKBMTCombinedStub.h:105
L1MuKBMTCombinedStub::tag_
bool tag_
Definition:
L1MuKBMTCombinedStub.h:101
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:317
L1MuKBMTCombinedStub::tag
int tag() const
return tag (second TS tag)
Definition:
L1MuKBMTCombinedStub.h:68
funct::false
false
Definition:
Factorize.h:35
L1MuKBMTCombinedStub::phi_
int phi_
Definition:
L1MuKBMTCombinedStub.h:99
alignCSCRings.s
s
Definition:
alignCSCRings.py:91
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:98
L1MuKBMTCombinedStub::scNum_
int scNum_
Definition:
L1MuKBMTCombinedStub.h:97
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:96
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::coarseEta
int coarseEta() const
return coarse Eta
Definition:
L1MuKBMTCombinedStub.h:82
L1MuKBMTCombinedStub.h
L1MuKBMTCombinedStub::phiB
int phiB() const
return phib
Definition:
L1MuKBMTCombinedStub.h:64
L1MuKBMTCombinedStub::quality_
int quality_
Definition:
L1MuKBMTCombinedStub.h:102
L1MuKBMTCombinedStub::eta2
int eta2() const
return second eta
Definition:
L1MuKBMTCombinedStub.h:75
L1MuKBMTCombinedStub::bxNum_
int bxNum_
Definition:
L1MuKBMTCombinedStub.h:103
L1MuKBMTCombinedStub::qeta1_
int qeta1_
Definition:
L1MuKBMTCombinedStub.h:107
L1MuKBMTCombinedStub::coarseEta_
int coarseEta_
Definition:
L1MuKBMTCombinedStub.h:104
L1MuKBMTCombinedStub::qeta1
int qeta1() const
return first eta quality
Definition:
L1MuKBMTCombinedStub.h:77
relativeConstraints.station
station
Definition:
relativeConstraints.py:66
L1MuKBMTCombinedStub::qeta2_
int qeta2_
Definition:
L1MuKBMTCombinedStub.h:108
Generated for CMSSW Reference Manual by
1.8.11