Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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::strip_
uint16_t strip_
Definition:
RPCDigi.h:50
RPCDigi::bx
int bx() const
Definition:
RPCDigi.h:28
RPCDigi::RPCDigi
RPCDigi()
Definition:
RPCDigi.cc:28
funct::false
false
Definition:
Factorize.h:29
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:167
RPCDigi::strip
int strip() const
Definition:
RPCDigi.h:27
RPCDigi.h
RPCDigi
Definition:
RPCDigi.h:19
RPCDigi::bx_
int32_t bx_
Definition:
RPCDigi.h:51
digitizers_cfi.strip
strip
Definition:
digitizers_cfi.py:45
RPCDigi::operator==
bool operator==(const RPCDigi &digi) const
Definition:
RPCDigi.cc:42
RPCDigi::print
void print() const
Definition:
RPCDigi.cc:58
class-composition.o
tuple o
Definition:
class-composition.py:65
makePileupJSON.bx
tuple bx
Definition:
makePileupJSON.py:40
gather_cfg.cout
tuple 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.5