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