CMS 3D CMS Logo

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 bool GEMPadDigi::isValid() const
49 {
50  return pad_ != 0;
51 }
52 
53 
54 std::ostream & operator<<(std::ostream & o, const GEMPadDigi& digi)
55 {
56  return o << " GEMPadDigi Pad = " << digi.pad() << " bx = " << digi.bx();
57 }
58 
59 
60 void GEMPadDigi::print() const
61 {
62  std::cout << "Pad " << pad() << " bx " << bx() <<std::endl;
63 }
64 
bool isValid() const
Definition: GEMPadDigi.cc:48
bool operator==(const GEMPadDigi &digi) const
Definition: GEMPadDigi.cc:25
std::ostream & operator<<(std::ostream &o, const GEMPadDigi &digi)
Definition: GEMPadDigi.cc:54
bool operator!=(const GEMPadDigi &digi) const
Definition: GEMPadDigi.cc:32
uint16_t pad_
Definition: GEMPadDigi.h:33
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::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
int pad() const
Definition: GEMPadDigi.h:27
void print() const
Definition: GEMPadDigi.cc:60
int bx() const
Definition: GEMPadDigi.h:28
bool operator<(const GEMPadDigi &digi) const
Precedence operator.
Definition: GEMPadDigi.cc:39
int16_t bx_
Definition: GEMPadDigi.h:34