DataFormats
L1DTTrackFinder
src
L1MuDTChambThDigi.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class L1MuDTChambThDigi
4
//
5
// Description: input data for PHTF trigger
6
//
7
//
8
// Author List: Jorge Troconiz UAM Madrid
9
//
10
//
11
//--------------------------------------------------
12
13
//-----------------------
14
// This Class's Header --
15
//-----------------------
16
#include "
DataFormats/L1DTTrackFinder/interface/L1MuDTChambThDigi.h
"
17
18
//-------------------------------
19
// Collaborating Class Headers --
20
//-------------------------------
21
22
//---------------
23
// C++ Headers --
24
//---------------
25
26
//-------------------
27
// Initializations --
28
//-------------------
29
30
//----------------
31
// Constructors --
32
//----------------
33
L1MuDTChambThDigi::L1MuDTChambThDigi
() {
34
bx
= -100;
35
wheel
= 0;
36
sector
= 0;
37
station
= 0;
38
39
for
(
int
i
= 0;
i
< 7;
i
++) {
40
m_outPos
[
i
] = 0;
41
m_outQual
[
i
] = 0;
42
}
43
}
44
45
L1MuDTChambThDigi::L1MuDTChambThDigi
(
int
ubx,
int
uwh,
int
usc,
int
ust,
int
* upos,
int
* uqual) {
46
bx
= ubx;
47
wheel
= uwh;
48
sector
= usc;
49
station
= ust;
50
51
for
(
int
i
= 0;
i
< 7;
i
++) {
52
m_outPos
[
i
] = upos[
i
];
53
m_outQual
[
i
] = uqual[
i
];
54
}
55
}
56
57
L1MuDTChambThDigi::L1MuDTChambThDigi
(
int
ubx,
int
uwh,
int
usc,
int
ust,
int
* upos) {
58
bx
= ubx;
59
wheel
= uwh;
60
sector
= usc;
61
station
= ust;
62
63
for
(
int
i
= 0;
i
< 7;
i
++) {
64
m_outPos
[
i
] = upos[
i
];
65
m_outQual
[
i
] = 0;
66
}
67
}
68
69
//--------------
70
// Destructor --
71
//--------------
72
L1MuDTChambThDigi::~L1MuDTChambThDigi
() {}
73
74
//--------------
75
// Operations --
76
//--------------
77
int
L1MuDTChambThDigi::bxNum
()
const
{
return
bx
; }
78
79
int
L1MuDTChambThDigi::whNum
()
const
{
return
wheel
; }
80
int
L1MuDTChambThDigi::scNum
()
const
{
return
sector
; }
81
int
L1MuDTChambThDigi::stNum
()
const
{
return
station
; }
82
83
int
L1MuDTChambThDigi::code
(
const
int
i
)
const
{
84
if
(i < 0 || i >= 7)
85
return
0;
86
87
return
(
int
)(
m_outPos
[
i
] +
m_outQual
[
i
]);
88
}
89
90
int
L1MuDTChambThDigi::position
(
const
int
i
)
const
{
91
if
(i < 0 || i >= 7)
92
return
0;
93
94
return
(
int
)
m_outPos
[
i
];
95
}
96
97
int
L1MuDTChambThDigi::quality
(
const
int
i
)
const
{
98
if
(i < 0 || i >= 7)
99
return
0;
100
101
return
(
int
)
m_outQual
[
i
];
102
}
L1MuDTChambThDigi.h
mps_fire.i
i
Definition:
mps_fire.py:429
L1MuDTChambThDigi::wheel
int wheel
Definition:
L1MuDTChambThDigi.h:57
L1MuDTChambThDigi::sector
int sector
Definition:
L1MuDTChambThDigi.h:58
L1MuDTChambThDigi::bx
int bx
Definition:
L1MuDTChambThDigi.h:56
L1MuDTChambThDigi::position
int position(const int i) const
Definition:
L1MuDTChambThDigi.cc:90
L1MuDTChambThDigi::~L1MuDTChambThDigi
~L1MuDTChambThDigi()
Definition:
L1MuDTChambThDigi.cc:72
L1MuDTChambThDigi::whNum
int whNum() const
Definition:
L1MuDTChambThDigi.cc:79
L1MuDTChambThDigi::scNum
int scNum() const
Definition:
L1MuDTChambThDigi.cc:80
L1MuDTChambThDigi::code
int code(const int i) const
Definition:
L1MuDTChambThDigi.cc:83
L1MuDTChambThDigi::station
int station
Definition:
L1MuDTChambThDigi.h:59
L1MuDTChambThDigi::m_outPos
myint8 m_outPos[7]
Definition:
L1MuDTChambThDigi.h:61
L1MuDTChambThDigi::stNum
int stNum() const
Definition:
L1MuDTChambThDigi.cc:81
L1MuDTChambThDigi::m_outQual
myint8 m_outQual[7]
Definition:
L1MuDTChambThDigi.h:62
L1MuDTChambThDigi::bxNum
int bxNum() const
Definition:
L1MuDTChambThDigi.cc:77
L1MuDTChambThDigi::quality
int quality(const int i) const
Definition:
L1MuDTChambThDigi.cc:97
L1MuDTChambThDigi::L1MuDTChambThDigi
L1MuDTChambThDigi()
Definition:
L1MuDTChambThDigi.cc:33
Generated for CMSSW Reference Manual by
1.8.14