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
ichamberid,
6
const
int
iquality,
7
const
int
iphiposition,
8
const
int
ipartition,
9
const
int
ideltaphi,
10
const
int
ibend,
11
const
int
ibx)
12
: chamberid_(ichamberid),
13
quality_(iquality),
14
phiposition_(iphiposition),
15
partition_
(ipartition),
16
deltaphi_(ideltaphi),
17
bend_(ibend),
18
bx_(ibx) {}
19
20
ME0TriggerDigi::ME0TriggerDigi
() {
21
clear
();
// set contents to zero
22
}
23
24
void
ME0TriggerDigi::clear
() {
25
chamberid_
= 0;
26
quality_
= 0;
27
phiposition_
= 0;
28
partition_
= 0;
29
deltaphi_
= 0;
30
bend_
= 0;
31
bx_
= 0;
32
}
33
34
bool
ME0TriggerDigi::operator==
(
const
ME0TriggerDigi
& rhs)
const
{
35
return
((
chamberid_
== rhs.
chamberid_
) && (
quality_
== rhs.
quality_
) && (
phiposition_
== rhs.
phiposition_
) &&
36
(
partition_
== rhs.
partition_
) && (
deltaphi_
== rhs.
deltaphi_
) && (
bend_
== rhs.
bend_
) && (
bx_
== rhs.
bx_
));
37
}
38
39
std::ostream&
operator<<
(std::ostream&
o
,
const
ME0TriggerDigi
& digi) {
40
return
o
<<
"ME0 chamber id #"
<< digi.
getChamberid
() <<
" Partition = "
<< digi.
getPartition
()
41
<<
": Quality = "
<< digi.
getQuality
() <<
" Phiposition = "
<< digi.
getPhiposition
()
42
<<
" Strip = "
<< digi.
getStrip
() <<
" deltaPhi = "
<< digi.
getDeltaphi
()
43
<<
" Bend = "
<< ((digi.
getBend
() == 0) ?
'L'
:
'R'
) <<
"\n"
44
<<
" BX = "
<< digi.
getBX
() <<
"\n"
;
45
}
ME0TriggerDigi::bx_
uint16_t bx_
Definition:
ME0TriggerDigi.h:116
ME0TriggerDigi.h
MessageLogger.h
ME0TriggerDigi::chamberid_
uint16_t chamberid_
Definition:
ME0TriggerDigi.h:109
ME0TriggerDigi::getDeltaphi
int getDeltaphi() const
return bending angle
Definition:
ME0TriggerDigi.h:65
ME0TriggerDigi::bend_
uint16_t bend_
Definition:
ME0TriggerDigi.h:115
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:36
operator<<
std::ostream & operator<<(std::ostream &o, const ME0TriggerDigi &digi)
Definition:
ME0TriggerDigi.cc:39
ME0TriggerDigi::getPhiposition
int getPhiposition() const
return the phi position, resolution: half strip level
Definition:
ME0TriggerDigi.h:59
ME0TriggerDigi::getQuality
int getQuality() const
return the Quality
Definition:
ME0TriggerDigi.h:53
ME0TriggerDigi::ME0TriggerDigi
ME0TriggerDigi()
default
Definition:
ME0TriggerDigi.cc:20
ME0TriggerDigi::getChamberid
int getChamberid() const
return chamber number in one CTP7
Definition:
ME0TriggerDigi.h:50
ME0TriggerDigi::getStrip
int getStrip() const
return the key strip
Definition:
ME0TriggerDigi.h:56
sistrip::partition_
static const char partition_[]
Definition:
ConstantsForGranularity.h:24
ME0TriggerDigi::quality_
uint16_t quality_
Definition:
ME0TriggerDigi.h:110
ME0TriggerDigi::getPartition
int getPartition() const
return the key "partition"
Definition:
ME0TriggerDigi.h:62
ME0TriggerDigi::deltaphi_
uint16_t deltaphi_
Definition:
ME0TriggerDigi.h:114
ME0TriggerDigi::getBX
int getBX() const
return BX
Definition:
ME0TriggerDigi.h:71
ME0TriggerDigi::getBend
int getBend() const
return bend
Definition:
ME0TriggerDigi.h:68
ME0TriggerDigi::partition_
uint16_t partition_
Definition:
ME0TriggerDigi.h:113
ME0TriggerDigi
Definition:
ME0TriggerDigi.h:28
ME0TriggerDigi::phiposition_
uint16_t phiposition_
Definition:
ME0TriggerDigi.h:112
ME0TriggerDigi::clear
void clear()
clear this Trigger
Definition:
ME0TriggerDigi.cc:24
ME0TriggerDigi::operator==
bool operator==(const ME0TriggerDigi &) const
Comparison.
Definition:
ME0TriggerDigi.cc:34
Generated for CMSSW Reference Manual by
1.8.16