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; }
GEMPadDigi::print
void print() const
Definition: GEMPadDigi.cc:28
GEMPadDigi
Definition: GEMPadDigi.h:15
GEMPadDigi::operator!=
bool operator!=(const GEMPadDigi &digi) const
Definition: GEMPadDigi.cc:12
gather_cfg.cout
cout
Definition: gather_cfg.py:144
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
operator<<
std::ostream & operator<<(std::ostream &o, const GEMPadDigi &digi)
Definition: GEMPadDigi.cc:24
GEMPadDigi::bx_
int16_t bx_
Definition: GEMPadDigi.h:33
GEMPadDigi::pad
int pad() const
Definition: GEMPadDigi.h:26
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
GEMPadDigi::operator<
bool operator<(const GEMPadDigi &digi) const
Precedence operator.
Definition: GEMPadDigi.cc:15
GEMPadDigi::operator==
bool operator==(const GEMPadDigi &digi) const
Definition: GEMPadDigi.cc:9
GEMPadDigi::bx
int bx() const
Definition: GEMPadDigi.h:27
or
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
GEMPadDigi::isValid
bool isValid() const
Definition: GEMPadDigi.cc:22
GEMPadDigi::pad_
uint16_t pad_
Definition: GEMPadDigi.h:32
GEMPadDigi.h
GEMPadDigi::GEMPadDigi
GEMPadDigi()
Definition: GEMPadDigi.cc:6