CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMPadDigi.cc
Go to the documentation of this file.
1 
11 #include <iostream>
12 
13 GEMPadDigi::GEMPadDigi (int pad, int bx) :
14  pad_(pad),
15  bx_(bx)
16 {}
17 
19  pad_(0),
20  bx_(0)
21 {}
22 
23 
24 // Comparison
25 bool GEMPadDigi::operator == (const GEMPadDigi& digi) const
26 {
27  return pad_ == digi.pad() and bx_ == digi.bx();
28 }
29 
30 
31 // Comparison
32 bool GEMPadDigi::operator != (const GEMPadDigi& digi) const
33 {
34  return pad_ != digi.pad() or bx_ != digi.bx();
35 }
36 
37 
39 bool GEMPadDigi::operator<(const GEMPadDigi& digi) const
40 {
41  if(digi.bx() == bx_)
42  return digi.pad() < pad_;
43  else
44  return digi.bx() < bx_;
45 }
46 
47 
48 std::ostream & operator<<(std::ostream & o, const GEMPadDigi& digi)
49 {
50  return o << " " << digi.pad() << " " << digi.bx();
51 }
52 
53 
54 void GEMPadDigi::print() const
55 {
56  std::cout << "Pad " << pad() << " bx " << bx() <<std::endl;
57 }
58 
bool operator==(const GEMPadDigi &digi) const
Definition: GEMPadDigi.cc:25
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
bool operator!=(const GEMPadDigi &digi) const
Definition: GEMPadDigi.cc:32
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
uint16_t pad_
Definition: GEMPadDigi.h:31
int pad() const
Definition: GEMPadDigi.h:25
void print() const
Definition: GEMPadDigi.cc:54
int bx() const
Definition: GEMPadDigi.h:26
bool operator<(const GEMPadDigi &digi) const
Precedence operator.
Definition: GEMPadDigi.cc:39
tuple cout
Definition: gather_cfg.py:145
int32_t bx_
Definition: GEMPadDigi.h:32