Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
DTDigi
src
DTLocalTrigger.cc
Go to the documentation of this file.
1
9
#include <
DataFormats/DTDigi/interface/DTLocalTrigger.h
>
10
11
12
using namespace
std;
13
14
15
DTLocalTrigger::DTLocalTrigger
(
int
eventBx,
int
bx,
int
data
) :
16
theEventBX(eventBx),
17
theBX (bx),
18
theData(data)
19
{}
20
21
22
DTLocalTrigger::DTLocalTrigger
() :
23
theEventBX(0),
24
theBX (0),
25
theData(0)
26
{}
27
28
29
// Comparison
30
bool
DTLocalTrigger::operator ==
(
const
DTLocalTrigger
& trig)
const
{
31
if
(
theBX
!= trig.
bx
() ||
32
this->
quality
() != trig.
quality
() )
return
false
;
33
return
true
;
34
}
35
36
// Getters
37
38
39
uint16_t
DTLocalTrigger::bx
()
const
{
return
theBX
; }
40
41
uint16_t
DTLocalTrigger::quality
()
const
{
42
return
( (
theData
& 0xE) >> 1 );
43
}
44
uint16_t
DTLocalTrigger::trTheta
()
const
{
45
return
( (
theData
& 0x30) >> 4 );
46
}
47
48
bool
DTLocalTrigger::secondTrack
()
const
{
49
return
(
theData
& 0x1 );
50
}
51
bool
DTLocalTrigger::trOut
()
const
{
52
return
( (
theData
& 0x40) >> 6 );
53
}
54
55
// Setters ??
56
57
// Debug
58
59
void
60
DTLocalTrigger::print
()
const
{
61
cout
<<
" trigger at BX "
<<
bx
()<<
": "
<<
theData
;
62
if
(
secondTrack
())
63
cout
<<
" IT IS A SECOND TRACK !! "
;
64
cout
<<
" Quality "
<<
quality
();
65
if
(
trTheta
() == 1)
66
cout
<<
" with a low Theta trigger "
;
67
if
(
trTheta
() == 3)
68
cout
<<
" with a high Theta trigger "
;
69
if
(
trOut
())
70
cout
<<
" Trigger Out set "
;
71
cout
<< endl;
72
}
73
74
uint16_t
DTLocalTrigger::eventBx
()
const
{
75
return
theEventBX
;
76
}
DTLocalTrigger::quality
uint16_t quality() const
Definition:
DTLocalTrigger.cc:41
DTLocalTrigger::theData
uint16_t theData
Definition:
DTLocalTrigger.h:48
DTLocalTrigger::theBX
uint16_t theBX
Definition:
DTLocalTrigger.h:47
DTLocalTrigger::trOut
bool trOut() const
Definition:
DTLocalTrigger.cc:51
DTLocalTrigger::trTheta
uint16_t trTheta() const
Definition:
DTLocalTrigger.cc:44
DTLocalTrigger::operator==
bool operator==(const DTLocalTrigger &trig) const
triggers are equal if they are in the same chamber and have same BX count (??)
Definition:
DTLocalTrigger.cc:30
DTLocalTrigger.h
DTLocalTrigger::theEventBX
uint16_t theEventBX
Definition:
DTLocalTrigger.h:46
DTLocalTrigger::DTLocalTrigger
DTLocalTrigger()
Default construction.
Definition:
DTLocalTrigger.cc:22
DTLocalTrigger::print
void print() const
Print content of trigger.
Definition:
DTLocalTrigger.cc:60
DTLocalTrigger
Definition:
DTLocalTrigger.h:16
DTLocalTrigger::secondTrack
bool secondTrack() const
Definition:
DTLocalTrigger.cc:48
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
DTLocalTrigger::bx
uint16_t bx() const
Definition:
DTLocalTrigger.cc:39
DTLocalTrigger::eventBx
uint16_t eventBx() const
Definition:
DTLocalTrigger.cc:74
Generated for CMSSW Reference Manual by
1.8.5