Main Page
Namespaces
Classes
Package Documentation
DataFormats
GEMDigi
src
ME0TriggerDigi.cc
Go to the documentation of this file.
1
#include "
DataFormats/GEMDigi/interface/ME0TriggerDigi.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
#include <iostream>
4
5
ME0TriggerDigi::ME0TriggerDigi
(
const
int
itrknmb,
6
const
int
iquality,
7
const
int
istrip,
8
const
int
ipattern,
9
const
int
ibend,
10
const
int
ibx):
11
trknmb(itrknmb),
12
quality
(iquality),
13
strip
(istrip),
14
pattern
(ipattern),
15
bend(ibend),
16
bx(ibx)
17
{}
18
19
ME0TriggerDigi::ME0TriggerDigi
() {
20
clear
();
// set contents to zero
21
}
22
23
void
ME0TriggerDigi::clear
() {
24
trknmb
= 0;
25
quality
= 0;
26
strip
= 0;
27
pattern
= 0;
28
bend
= 0;
29
bx
= 0;
30
}
31
32
bool
ME0TriggerDigi::operator==
(
const
ME0TriggerDigi
&rhs)
const
{
33
return
((
trknmb
== rhs.
trknmb
) && (
quality
== rhs.
quality
) &&
34
(
strip
== rhs.
strip
) && (
pattern
== rhs.
pattern
) &&
35
(
bend
== rhs.
bend
) && (
bx
== rhs.
bx
) );
36
}
37
38
std::ostream &
operator<<
(std::ostream &
o
,
39
const
ME0TriggerDigi
& digi) {
40
return
o <<
"ME0 Trigger #"
<< digi.
getTrknmb
()
41
<<
": Quality = "
<< digi.
getQuality
()
42
<<
" Strip = "
<< digi.
getStrip
()
43
<<
" Pattern = "
<< digi.
getPattern
()
44
<<
" Bend = "
<< ((digi.
getBend
() == 0) ?
'L'
:
'R'
) <<
"\n"
45
<<
" BX = "
<< digi.
getBX
()
46
<<
"\n"
;
47
}
MessageLogger.h
ME0TriggerDigi::getPattern
int getPattern() const
return pattern
Definition:
ME0TriggerDigi.h:44
ME0TriggerDigi::strip
uint16_t strip
Definition:
ME0TriggerDigi.h:76
ME0TriggerDigi.h
ME0TriggerDigi::bend
uint16_t bend
Definition:
ME0TriggerDigi.h:78
ME0TriggerDigi::quality
uint16_t quality
Definition:
ME0TriggerDigi.h:75
ME0TriggerDigi::getStrip
int getStrip() const
return the key strip
Definition:
ME0TriggerDigi.h:41
ME0TriggerDigi::operator==
bool operator==(const ME0TriggerDigi &) const
Comparison.
Definition:
ME0TriggerDigi.cc:32
ME0TriggerDigi
Definition:
ME0TriggerDigi.h:14
btvTracks_cfi.quality
quality
Definition:
btvTracks_cfi.py:12
ME0TriggerDigi::getQuality
int getQuality() const
return the Quality
Definition:
ME0TriggerDigi.h:38
ME0TriggerDigi::getTrknmb
int getTrknmb() const
return track number
Definition:
ME0TriggerDigi.h:35
ME0TriggerDigi::ME0TriggerDigi
ME0TriggerDigi()
default
Definition:
ME0TriggerDigi.cc:19
ME0TriggerDigi::getBX
int getBX() const
return BX
Definition:
ME0TriggerDigi.h:50
digi_MixPreMix_cfi.strip
strip
Definition:
digi_MixPreMix_cfi.py:15
connectstrParser.o
o
Definition:
connectstrParser.py:70
ME0TriggerDigi::getBend
int getBend() const
return bend
Definition:
ME0TriggerDigi.h:47
listBenchmarks.pattern
pattern
Definition:
listBenchmarks.py:26
ME0TriggerDigi::clear
void clear()
clear this Trigger
Definition:
ME0TriggerDigi.cc:23
ME0TriggerDigi::pattern
uint16_t pattern
Definition:
ME0TriggerDigi.h:77
ME0TriggerDigi::bx
uint16_t bx
Definition:
ME0TriggerDigi.h:79
operator<<
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)
Definition:
ME0TriggerDigi.cc:38
ME0TriggerDigi::trknmb
uint16_t trknmb
Definition:
ME0TriggerDigi.h:74
Generated for CMSSW Reference Manual by
1.8.11