Main Page
Namespaces
Classes
Package Documentation
L1Trigger
DTTrackFinder
src
L1MuDTTrackAssParam.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Description: Parameters for Track Assembler
4
//
5
//
6
//
7
// Author :
8
// N. Neumeister CERN EP
9
//
10
//--------------------------------------------------
11
12
#include "
L1Trigger/DTTrackFinder/src/L1MuDTTrackAssParam.h
"
13
#include <iostream>
14
15
using namespace
std
;
16
17
//
18
// output stream operator for TrackClass
19
//
20
ostream&
operator<<
(ostream&
s
,
TrackClass
tc) {
21
switch
(tc) {
22
case
T1234
:
23
return
s <<
"T1234 "
;
24
case
T123
:
25
return
s <<
"T123 "
;
26
case
T124
:
27
return
s <<
"T124 "
;
28
case
T134
:
29
return
s <<
"T134 "
;
30
case
T234
:
31
return
s <<
"T234 "
;
32
case
T12
:
33
return
s <<
"T12 "
;
34
case
T14
:
35
return
s <<
"T14 "
;
36
case
T13
:
37
return
s <<
"T13 "
;
38
case
T24
:
39
return
s <<
"T24 "
;
40
case
T23
:
41
return
s <<
"T23 "
;
42
case
T34
:
43
return
s <<
"T34 "
;
44
default
:
45
return
s <<
"UNDEF "
;
46
}
47
}
48
49
//
50
// convert TrackClass to bitmap
51
//
52
const
unsigned
int
tc2bitmap
(
const
TrackClass
tc) {
53
unsigned
int
value
= 0;
54
55
switch
(tc) {
56
case
T1234
: {
57
value = 15;
58
break
;
59
}
60
case
T123
: {
61
value = 7;
62
break
;
63
}
64
case
T124
: {
65
value = 11;
66
break
;
67
}
68
case
T134
: {
69
value = 13;
70
break
;
71
}
72
case
T234
: {
73
value = 14;
74
break
;
75
}
76
case
T12
: {
77
value = 3;
78
break
;
79
}
80
case
T14
: {
81
value = 9;
82
break
;
83
}
84
case
T13
: {
85
value = 5;
86
break
;
87
}
88
case
T24
: {
89
value = 10;
90
break
;
91
}
92
case
T23
: {
93
value = 6;
94
break
;
95
}
96
case
T34
: {
97
value = 12;
98
break
;
99
}
100
default
: {
101
value = 0;
102
break
;
103
}
104
}
105
106
return
value
;
107
}
108
109
//
110
// convert TrackClass graphical format
111
//
112
const
string
tc2string
(
const
TrackClass
tc) {
113
string
str
=
"####"
;
114
115
switch
(tc) {
116
case
T1234
: {
117
str =
"****"
;
118
break
;
119
}
120
case
T123
: {
121
str =
"***-"
;
122
break
;
123
}
124
case
T124
: {
125
str =
"**-*"
;
126
break
;
127
}
128
case
T134
: {
129
str =
"*-**"
;
130
break
;
131
}
132
case
T234
: {
133
str =
"-***"
;
134
break
;
135
}
136
case
T12
: {
137
str =
"**--"
;
138
break
;
139
}
140
case
T14
: {
141
str =
"*--*"
;
142
break
;
143
}
144
case
T13
: {
145
str =
"*-*-"
;
146
break
;
147
}
148
case
T24
: {
149
str =
"-*-*"
;
150
break
;
151
}
152
case
T23
: {
153
str =
"-**-"
;
154
break
;
155
}
156
case
T34
: {
157
str =
"--**"
;
158
break
;
159
}
160
default
: {
161
str =
"UNDEF"
;
162
break
;
163
}
164
}
165
166
return
str
;
167
}
T12
Definition:
L1MuBMTrackAssParam.h:21
T234
Definition:
L1MuBMTrackAssParam.h:21
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
T124
Definition:
L1MuBMTrackAssParam.h:21
std
Definition:
JetResolutionObject.h:76
T123
Definition:
L1MuBMTrackAssParam.h:21
T134
Definition:
L1MuBMTrackAssParam.h:21
tc2bitmap
const unsigned int tc2bitmap(const TrackClass tc)
Definition:
L1MuDTTrackAssParam.cc:52
T14
Definition:
L1MuBMTrackAssParam.h:21
TrackClass
TrackClass
Definition:
L1MuBMTrackAssParam.h:21
value
Definition:
value.py:1
T13
Definition:
L1MuBMTrackAssParam.h:21
tc2string
const string tc2string(const TrackClass tc)
Definition:
L1MuDTTrackAssParam.cc:112
std::operator<<
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
Definition:
Utilities.h:32
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
T1234
Definition:
L1MuBMTrackAssParam.h:21
T34
Definition:
L1MuBMTrackAssParam.h:21
T24
Definition:
L1MuBMTrackAssParam.h:21
T23
Definition:
L1MuBMTrackAssParam.h:21
L1MuDTTrackAssParam.h
str
#define str(s)
Definition:
TestProcessor.cc:48
Generated for CMSSW Reference Manual by
1.8.11