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
ipartition,
9
const
int
ipattern,
10
const
int
ibend,
11
const
int
ibx):
12
trknmb_(itrknmb),
13
quality_(iquality),
14
strip_(istrip),
15
partition_
(ipartition),
16
pattern_(ipattern),
17
bend_(ibend),
18
bx_(ibx)
19
{}
20
21
ME0TriggerDigi::ME0TriggerDigi
() {
22
clear
();
// set contents to zero
23
}
24
25
void
ME0TriggerDigi::clear
() {
26
trknmb_
= 0;
27
quality_
= 0;
28
strip_
= 0;
29
partition_
= 0;
30
pattern_
= 0;
31
bend_
= 0;
32
bx_
= 0;
33
}
34
35
bool
ME0TriggerDigi::operator==
(
const
ME0TriggerDigi
&rhs)
const
{
36
return
((
trknmb_
== rhs.
trknmb_
) && (
quality_
== rhs.
quality_
) &&
37
(
strip_
== rhs.
strip_
) && (
partition_
== rhs.
partition_
) &&
38
(
pattern_
== rhs.
pattern_
) &&
39
(
bend_
== rhs.
bend_
) && (
bx_
== rhs.
bx_
) );
40
}
41
42
std::ostream &
operator<<
(std::ostream &
o
,
43
const
ME0TriggerDigi
& digi) {
44
return
o <<
"ME0 Trigger #"
<< digi.
getTrknmb
()
45
<<
": Quality = "
<< digi.
getQuality
()
46
<<
" Strip = "
<< digi.
getStrip
()
47
<<
" Partition = "
<< digi.
getPartition
()
48
<<
" Pattern = "
<< digi.
getPattern
()
49
<<
" Bend = "
<< ((digi.
getBend
() == 0) ?
'L'
:
'R'
) <<
"\n"
50
<<
" BX = "
<< digi.
getBX
()
51
<<
"\n"
;
52
}
ME0TriggerDigi::strip_
uint16_t strip_
Definition:
ME0TriggerDigi.h:83
MessageLogger.h
ME0TriggerDigi::getPattern
int getPattern() const
return pattern
Definition:
ME0TriggerDigi.h:48
ME0TriggerDigi::partition_
uint16_t partition_
Definition:
ME0TriggerDigi.h:84
ME0TriggerDigi.h
ME0TriggerDigi::bend_
uint16_t bend_
Definition:
ME0TriggerDigi.h:86
ME0TriggerDigi::getStrip
int getStrip() const
return the key strip
Definition:
ME0TriggerDigi.h:42
ME0TriggerDigi::operator==
bool operator==(const ME0TriggerDigi &) const
Comparison.
Definition:
ME0TriggerDigi.cc:35
ME0TriggerDigi
Definition:
ME0TriggerDigi.h:14
ME0TriggerDigi::getQuality
int getQuality() const
return the Quality
Definition:
ME0TriggerDigi.h:39
ME0TriggerDigi::getTrknmb
int getTrknmb() const
return track number
Definition:
ME0TriggerDigi.h:36
ME0TriggerDigi::trknmb_
uint16_t trknmb_
Definition:
ME0TriggerDigi.h:81
sistrip::partition_
static const char partition_[]
Definition:
ConstantsForGranularity.h:24
ME0TriggerDigi::quality_
uint16_t quality_
Definition:
ME0TriggerDigi.h:82
ME0TriggerDigi::getPartition
int getPartition() const
return the key "partition"
Definition:
ME0TriggerDigi.h:45
ME0TriggerDigi::ME0TriggerDigi
ME0TriggerDigi()
default
Definition:
ME0TriggerDigi.cc:21
ME0TriggerDigi::getBX
int getBX() const
return BX
Definition:
ME0TriggerDigi.h:54
connectstrParser.o
o
Definition:
connectstrParser.py:70
ME0TriggerDigi::getBend
int getBend() const
return bend
Definition:
ME0TriggerDigi.h:51
ME0TriggerDigi::bx_
uint16_t bx_
Definition:
ME0TriggerDigi.h:87
ME0TriggerDigi::clear
void clear()
clear this Trigger
Definition:
ME0TriggerDigi.cc:25
ME0TriggerDigi::pattern_
uint16_t pattern_
Definition:
ME0TriggerDigi.h:85
operator<<
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)
Definition:
ME0TriggerDigi.cc:42
Generated for CMSSW Reference Manual by
1.8.11