Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
RPCDigi
src
RPCDigi.cc
Go to the documentation of this file.
1
10
#include "
DataFormats/RPCDigi/interface/RPCDigi.h
"
11
#include <iostream>
12
13
RPCDigi::RPCDigi
(
int
strip,
int
bx) :
14
strip_(strip),
15
bx_(bx)
16
{}
17
18
RPCDigi::RPCDigi
():
19
strip_(0),
20
bx_(0)
21
{}
22
23
24
// Comparison
25
bool
26
RPCDigi::operator ==
(
const
RPCDigi
& digi)
const
{
27
if
(
strip_
!= digi.
strip
() ||
28
bx_
!= digi.
bx
() )
return
false
;
29
return
true
;
30
}
31
33
bool
34
RPCDigi::operator<
(
const
RPCDigi
& digi)
const
{
35
36
if
(digi.
bx
() == this->
bx
())
37
return
digi.
strip
()<this->
strip
();
38
else
39
return
digi.
bx
()<this->
bx
();
40
}
41
42
std::ostream &
operator<<
(std::ostream &
o
,
const
RPCDigi
& digi) {
43
return
o <<
" "
<< digi.
strip
()
44
<<
" "
<< digi.
bx
();
45
}
46
47
int
RPCDigi::strip
()
const
{
return
strip_
; }
48
49
int
RPCDigi::bx
()
const
{
return
bx_
; }
50
51
void
52
RPCDigi::print
()
const
{
53
std::cout
<<
"Strip "
<<
strip
()
54
<<
" bx "
<<
bx
() <<std::endl;
55
}
56
RPCDigi::strip_
uint16_t strip_
Definition:
RPCDigi.h:32
RPCDigi::bx
int bx() const
Definition:
RPCDigi.cc:49
RPCDigi::RPCDigi
RPCDigi()
Definition:
RPCDigi.cc:18
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
RPCDigi::strip
int strip() const
Definition:
RPCDigi.cc:47
RPCDigi.h
python.connectstrParser.o
string o
Definition:
connectstrParser.py:70
RPCDigi
Definition:
RPCDigi.h:18
RPCDigi::bx_
int32_t bx_
Definition:
RPCDigi.h:33
RPCDigi::operator==
bool operator==(const RPCDigi &digi) const
Definition:
RPCDigi.cc:26
RPCDigi::print
void print() const
Definition:
RPCDigi.cc:52
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
RPCDigi::operator<
bool operator<(const RPCDigi &digi) const
Precedence operator.
Definition:
RPCDigi.cc:34
Generated for CMSSW Reference Manual by
1.8.5