CMS 3D CMS Logo

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