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