Main Page
Namespaces
Classes
Package Documentation
DataFormats
RPCDigi
src
RPCDigi.cc
Go to the documentation of this file.
1
12
#include "
DataFormats/RPCDigi/interface/RPCDigi.h
"
13
#include <iostream>
14
15
RPCDigi::RPCDigi
(
int
strip
,
int
bx
)
16
: strip_(strip),
17
bx_(bx),
18
time_(0),
19
coordinateX_(0),
20
coordinateY_(0),
21
deltaTime_(0),
22
deltaX_(0),
23
deltaY_(0),
24
hasTime_(
false
),
25
hasX_(
false
),
26
hasY_(
false
) {}
27
28
RPCDigi::RPCDigi
()
29
:
strip_
(0),
30
bx_
(0),
31
time_
(0),
32
coordinateX_
(0),
33
coordinateY_
(0),
34
deltaTime_
(0),
35
deltaX_
(0),
36
deltaY_
(0),
37
hasTime_
(
false
),
38
hasX_
(
false
),
39
hasY_
(
false
) {}
40
41
// Comparison
42
bool
RPCDigi::operator==
(
const
RPCDigi
& digi)
const
{
43
if
(
strip_
!= digi.
strip
() ||
bx_
!= digi.
bx
())
44
return
false
;
45
return
true
;
46
}
47
49
bool
RPCDigi::operator<
(
const
RPCDigi
& digi)
const
{
50
if
(digi.
bx
() == this->
bx
())
51
return
digi.
strip
() < this->
strip
();
52
else
53
return
digi.
bx
() < this->
bx
();
54
}
55
56
std::ostream&
operator<<
(std::ostream&
o
,
const
RPCDigi
& digi) {
return
o <<
" "
<< digi.
strip
() <<
" "
<< digi.
bx
(); }
57
58
void
RPCDigi::print
()
const
{
std::cout
<<
"Strip "
<<
strip
() <<
" bx "
<<
bx
() << std::endl; }
RPCDigi::hasY_
bool hasY_
Definition:
RPCDigi.h:60
RPCDigi::deltaY_
double deltaY_
Definition:
RPCDigi.h:57
RPCDigi::strip_
uint16_t strip_
Definition:
RPCDigi.h:50
RPCDigi::hasX_
bool hasX_
Definition:
RPCDigi.h:59
RPCDigi::time_
double time_
Definition:
RPCDigi.h:52
l1GtPatternGenerator_cfi.bx
bx
Definition:
l1GtPatternGenerator_cfi.py:18
RPCDigi::bx
int bx() const
Definition:
RPCDigi.h:28
RPCDigi::RPCDigi
RPCDigi()
Definition:
RPCDigi.cc:28
funct::false
false
Definition:
Factorize.h:34
RPCDigi::coordinateY_
double coordinateY_
Definition:
RPCDigi.h:54
RPCDigi::strip
int strip() const
Definition:
RPCDigi.h:27
EcalTangentSkim_cfg.o
o
Definition:
EcalTangentSkim_cfg.py:36
RPCDigi::coordinateX_
double coordinateX_
Definition:
RPCDigi.h:53
RPCDigi.h
RPCDigi
Definition:
RPCDigi.h:19
RPCDigi::bx_
int32_t bx_
Definition:
RPCDigi.h:51
digitizers_cfi.strip
strip
Definition:
digitizers_cfi.py:19
RPCDigi::operator==
bool operator==(const RPCDigi &digi) const
Definition:
RPCDigi.cc:42
RPCDigi::deltaX_
double deltaX_
Definition:
RPCDigi.h:56
RPCDigi::print
void print() const
Definition:
RPCDigi.cc:58
operator<<
std::ostream & operator<<(std::ostream &o, const RPCDigi &digi)
Definition:
RPCDigi.cc:56
RPCDigi::hasTime_
bool hasTime_
Definition:
RPCDigi.h:58
RPCDigi::deltaTime_
double deltaTime_
Definition:
RPCDigi.h:55
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
RPCDigi::operator<
bool operator<(const RPCDigi &digi) const
Precedence operator.
Definition:
RPCDigi.cc:49
Generated for CMSSW Reference Manual by
1.8.11