CMS 3D CMS Logo

GEMPadDigi.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 GEMPadDigi::GEMPadDigi(int pad, int bx) : pad_(pad), bx_(bx) {}
5 
6 GEMPadDigi::GEMPadDigi() : pad_(65535), bx_(-99) {}
7 
8 // Comparison
9 bool GEMPadDigi::operator==(const GEMPadDigi& digi) const { return pad_ == digi.pad() and bx_ == digi.bx(); }
10 
11 // Comparison
12 bool GEMPadDigi::operator!=(const GEMPadDigi& digi) const { return pad_ != digi.pad() or bx_ != digi.bx(); }
13 
15 bool GEMPadDigi::operator<(const GEMPadDigi& digi) const {
16  if (digi.bx() == bx_)
17  return digi.pad() < pad_;
18  else
19  return digi.bx() < bx_;
20 }
21 
22 bool GEMPadDigi::isValid() const { return bx_ != -99 and pad_ != 65535; }
23 
24 std::ostream& operator<<(std::ostream& o, const GEMPadDigi& digi) {
25  return o << " GEMPadDigi Pad = " << digi.pad() << " bx = " << digi.bx();
26 }
27 
28 void GEMPadDigi::print() const { std::cout << "Pad " << pad() << " bx " << bx() << std::endl; }
bool isValid() const
Definition: GEMPadDigi.cc:22
bool operator==(const GEMPadDigi &digi) const
Definition: GEMPadDigi.cc:9
std::ostream & operator<<(std::ostream &o, const GEMPadDigi &digi)
Definition: GEMPadDigi.cc:24
bool operator!=(const GEMPadDigi &digi) const
Definition: GEMPadDigi.cc:12
uint16_t pad_
Definition: GEMPadDigi.h:32
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:26
void print() const
Definition: GEMPadDigi.cc:28
int bx() const
Definition: GEMPadDigi.h:27
bool operator<(const GEMPadDigi &digi) const
Precedence operator.
Definition: GEMPadDigi.cc:15
int16_t bx_
Definition: GEMPadDigi.h:33