Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
L1Trigger
DTTraco
src
DTTracoTrigData.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// Class: DTTracoTrigData
4
//
5
// Description: TRACO Trigger Data
6
//
7
//
8
// Author List:
9
// C. Grandi
10
// Modifications:
11
// 22/VI/04 SV: last trigger code update
12
//
13
//
14
//--------------------------------------------------
15
16
//-----------------------
17
// This Class's Header --
18
//-----------------------
19
#include "
L1Trigger/DTTraco/interface/DTTracoTrigData.h
"
20
21
//-------------------------------
22
// Collaborating Class Headers --
23
//-------------------------------
24
25
//---------------
26
// C++ Headers --
27
//---------------
28
#include <iostream>
29
30
using namespace
std
;
31
32
//----------------
33
// Constructors --
34
//----------------
35
DTTracoTrigData::DTTracoTrigData
(
DTTracoId
tracoid,
int
step
) : _tracoid(tracoid), _step(
step
) {
clear
(); }
36
37
//--------------
38
// Operations --
39
//--------------
40
41
int
DTTracoTrigData::qdec
()
const
{
42
// This is consistent with memo
43
if
(
_codeIn
== 8 &&
_codeOut
== 8)
44
return
6;
// HH
45
if
(
_codeIn
== 8 &&
_codeOut
== 0)
46
return
2;
// Hinner
47
if
(
_codeIn
== 0 &&
_codeOut
== 8)
48
return
3;
// Houter
49
if
(
_codeIn
> 0 &&
_codeOut
== 8)
50
return
5;
// LH
51
if
(
_codeIn
== 8 &&
_codeOut
> 0)
52
return
5;
// HL
53
if
(
_codeIn
> 0 &&
_codeOut
> 0)
54
return
4;
// LL
55
if
(
_codeIn
> 0 &&
_codeOut
== 0)
56
return
0;
// Linner
57
if
(
_codeIn
== 0 &&
_codeOut
> 0)
58
return
1;
// Louter
59
return
7;
// null
60
}
61
62
void
DTTracoTrigData::print
()
const
{
63
cout
<<
"TRACO Id="
64
<<
" ( "
<<
_tracoid
.
wheel
();
65
cout
<<
" , "
<<
_tracoid
.
station
();
66
cout
<<
" , "
<<
_tracoid
.
sector
();
67
cout
<<
" # "
<<
_tracoid
.
traco
();
68
cout
<<
" ) "
69
<<
" step: "
<<
step
();
70
71
cout
<<
dec
<<
" code="
<<
code
() <<
" K="
<<
K
() <<
" X="
<<
X
();
72
cout
<<
dec
<<
" PVcode="
<<
pvCode
() <<
" PVk="
<<
pvK
() <<
" qdec="
<<
qdec
();
73
cout
<<
" qdec="
<<
qdec
();
74
cout
<< hex <<
" psiR="
<<
psiR
() <<
" DeltaPsiR="
<<
DeltaPsiR
() <<
dec
<< endl;
75
if
(
isFirst
())
76
cout
<<
" I trk"
;
77
if
(!
isFirst
())
78
cout
<<
" II trk"
;
79
cout
<<
" ("
;
80
if
(!
pvCorr
())
81
cout
<<
"NOT "
;
82
cout
<<
"correlated)"
<< endl;
83
}
DTTracoTrigData::pvCorr
int pvCorr() const
Return the preview correaltion bit.
Definition:
DTTracoTrigData.h:192
DTTracoTrigData.h
DTTracoId
Definition:
DTTracoId.h:34
step
step
Definition:
StallMonitor.cc:94
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
DTTracoTrigData::pvCode
int pvCode() const
Return the preview code.
Definition:
DTTracoTrigData.h:186
DTTracoTrigData::isFirst
int isFirst() const
Return non 0 if the track is a first track.
Definition:
DTTracoTrigData.h:183
DTTracoId::station
int station() const
Returns station number.
Definition:
DTTracoId.h:55
DTTracoTrigData::_codeIn
myint8 _codeIn
Definition:
DTTracoTrigData.h:232
DTTracoTrigData::pvK
int pvK() const
Return the preview K.
Definition:
DTTracoTrigData.h:189
DTTracoTrigData::psiR
int psiR() const
Return trigger X parameter converted to angle.
Definition:
DTTracoTrigData.h:207
DTTracoTrigData::_codeOut
myint8 _codeOut
Definition:
DTTracoTrigData.h:234
DTTracoTrigData::K
int K() const
Return trigger K parameter.
Definition:
DTTracoTrigData.h:198
DTTracoTrigData::qdec
int qdec() const
Return the trigger code in new format.
Definition:
DTTracoTrigData.cc:41
DTTracoTrigData::X
int X() const
Return trigger X parameter.
Definition:
DTTracoTrigData.h:201
DTTracoTrigData::_tracoid
DTTracoId _tracoid
Definition:
DTTracoTrigData.h:217
DTTracoTrigData::print
void print() const override
print
Definition:
DTTracoTrigData.cc:62
DTTracoTrigData::code
int code() const
Return trigger code.
Definition:
DTTracoTrigData.h:165
std
Definition:
JetResolutionObject.h:76
DTTracoId::traco
int traco() const
Returns the traco.
Definition:
DTTracoId.h:59
DTTracoTrigData::step
int step() const
Return step.
Definition:
DTTracoTrigData.h:162
DTTracoTrigData::clear
void clear()
Clear.
Definition:
DTTracoTrigData.h:144
DTTracoId::wheel
int wheel() const
Returns wheel number.
Definition:
DTTracoId.h:53
DTTracoTrigData::DeltaPsiR
int DeltaPsiR() const
Return DeltaPsiR.
Definition:
DTTracoTrigData.h:210
DTTracoTrigData::DTTracoTrigData
DTTracoTrigData()
Constructor.
Definition:
DTTracoTrigData.h:42
DTTracoId::sector
int sector() const
Returns sector number.
Definition:
DTTracoId.h:57
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
Generated for CMSSW Reference Manual by
1.8.16