Main Page
Namespaces
Classes
Package Documentation
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
)
36
: _tracoid(tracoid), _step(step) {
37
clear
();
38
}
39
40
41
//--------------
42
// Operations --
43
//--------------
44
45
int
46
DTTracoTrigData::qdec
()
const
{
47
// This is consistent with memo
48
if
(
_codeIn
==8 &&
_codeOut
==8)
return
6;
// HH
49
if
(
_codeIn
==8 &&
_codeOut
==0)
return
2;
// Hinner
50
if
(
_codeIn
==0 &&
_codeOut
==8)
return
3;
// Houter
51
if
(
_codeIn
>0 &&
_codeOut
==8)
return
5;
// LH
52
if
(
_codeIn
==8 &&
_codeOut
> 0)
return
5;
// HL
53
if
(
_codeIn
> 0 &&
_codeOut
> 0)
return
4;
// LL
54
if
(
_codeIn
> 0 &&
_codeOut
==0)
return
0;
// Linner
55
if
(
_codeIn
==0 &&
_codeOut
> 0)
return
1;
// Louter
56
return
7;
// null
57
}
58
59
void
60
DTTracoTrigData::print
()
const
{
61
cout
<<
"TRACO Id="
<<
" ( "
<<
_tracoid
.
wheel
() ;
62
cout
<<
" , "
<<
_tracoid
.
station
() ;
63
cout
<<
" , "
<<
_tracoid
.
sector
() ;
64
cout
<<
" # "
<<
_tracoid
.
traco
() ;
65
cout
<<
" ) "
<<
" step: "
<<
step
();
66
67
cout
<<
dec
<<
" code="
<<
code
() <<
" K="
<<
K
() <<
" X="
<<
X
();
68
cout
<<
dec
<<
" PVcode="
<<
pvCode
() <<
" PVk="
<<
pvK
() <<
" qdec="
<<
qdec
();
69
cout
<<
" qdec="
<<
qdec
();
70
cout
<< hex <<
" psiR="
<<
psiR
() <<
" DeltaPsiR="
<<
DeltaPsiR
() <<
dec
<< endl;
71
if
(
isFirst
())
72
cout
<<
" I trk"
;
73
if
(!
isFirst
())
74
cout
<<
" II trk"
;
75
cout
<<
" ("
;
76
if
(!
pvCorr
())
cout
<<
"NOT "
;
77
cout
<<
"correlated)"
<< endl;
78
}
DTTracoTrigData::DTTracoTrigData
DTTracoTrigData()
Constructor.
Definition:
DTTracoTrigData.h:44
DTTracoTrigData::print
void print() const
print
Definition:
DTTracoTrigData.cc:60
DTTracoId
Definition:
DTTracoId.h:35
DTTracoTrigData.h
DTTracoTrigData::psiR
int psiR() const
Return trigger X parameter converted to angle.
Definition:
DTTracoTrigData.h:271
DTTracoTrigData::step
int step() const
Return step.
Definition:
DTTracoTrigData.h:194
std
Definition:
JetResolutionObject.h:76
DTTracoTrigData::pvCorr
int pvCorr() const
Return the preview correaltion bit.
Definition:
DTTracoTrigData.h:245
DTTracoTrigData::X
int X() const
Return trigger X parameter.
Definition:
DTTracoTrigData.h:261
DTTracoId::sector
int sector() const
Returns sector number.
Definition:
DTTracoId.h:68
DTTracoId::traco
int traco() const
Returns the traco.
Definition:
DTTracoId.h:70
DTTracoTrigData::clear
void clear()
Clear.
Definition:
DTTracoTrigData.h:170
DTTracoId::station
int station() const
Returns station number.
Definition:
DTTracoId.h:66
DTTracoTrigData::isFirst
int isFirst() const
Return non 0 if the track is a first track.
Definition:
DTTracoTrigData.h:230
DTTracoTrigData::pvK
int pvK() const
Return the preview K.
Definition:
DTTracoTrigData.h:240
DTTracoTrigData::DeltaPsiR
int DeltaPsiR() const
Return DeltaPsiR.
Definition:
DTTracoTrigData.h:276
DTTracoId::wheel
int wheel() const
Returns wheel number.
Definition:
DTTracoId.h:64
DTTracoTrigData::pvCode
int pvCode() const
Return the preview code.
Definition:
DTTracoTrigData.h:235
DTTracoTrigData::_codeIn
myint8 _codeIn
Definition:
DTTracoTrigData.h:301
DTTracoTrigData::_tracoid
DTTracoId _tracoid
Definition:
DTTracoTrigData.h:286
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:141
DTTracoTrigData::qdec
int qdec() const
Return the trigger code in new format.
Definition:
DTTracoTrigData.cc:46
DTTracoTrigData::code
int code() const
Return trigger code.
Definition:
DTTracoTrigData.h:199
DTTracoTrigData::K
int K() const
Return trigger K parameter.
Definition:
DTTracoTrigData.h:256
gather_cfg.cout
cout
Definition:
gather_cfg.py:145
step
step
Definition:
StallMonitor.cc:104
DTTracoTrigData::_codeOut
myint8 _codeOut
Definition:
DTTracoTrigData.h:303
Generated for CMSSW Reference Manual by
1.8.11