CMS 3D CMS Logo

ME0PadDigi.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 ME0PadDigi::ME0PadDigi(int pad, int bx) : pad_(pad), bx_(bx) {}
5 
6 ME0PadDigi::ME0PadDigi() : pad_(0), bx_(0) {}
7 
8 bool ME0PadDigi::operator==(const ME0PadDigi& digi) const { return pad_ == digi.pad() and bx_ == digi.bx(); }
9 
10 bool ME0PadDigi::operator!=(const ME0PadDigi& digi) const { return pad_ != digi.pad() or bx_ != digi.bx(); }
11 
12 bool ME0PadDigi::operator<(const ME0PadDigi& digi) const {
13  if (digi.bx() == bx_)
14  return digi.pad() < pad_;
15  else
16  return digi.bx() < bx_;
17 }
18 
19 std::ostream& operator<<(std::ostream& o, const ME0PadDigi& digi) {
20  return o << " pad: " << digi.pad() << " bx: " << digi.bx();
21 }
ME0PadDigi::bx
int bx() const
Definition: ME0PadDigi.h:26
operator<<
std::ostream & operator<<(std::ostream &o, const ME0PadDigi &digi)
Definition: ME0PadDigi.cc:19
ME0PadDigi::bx_
int16_t bx_
Definition: ME0PadDigi.h:30
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
simKBmtfDigis_cfi.bx
bx
Definition: simKBmtfDigis_cfi.py:55
ME0PadDigi::pad_
uint16_t pad_
Definition: ME0PadDigi.h:29
ME0PadDigi.h
ME0PadDigi::operator!=
bool operator!=(const ME0PadDigi &digi) const
Definition: ME0PadDigi.cc:10
ME0PadDigi::operator==
bool operator==(const ME0PadDigi &digi) const
Definition: ME0PadDigi.cc:8
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
ME0PadDigi
Definition: ME0PadDigi.h:15
ME0PadDigi::pad
int pad() const
Definition: ME0PadDigi.h:25
ME0PadDigi::operator<
bool operator<(const ME0PadDigi &digi) const
Definition: ME0PadDigi.cc:12
ME0PadDigi::ME0PadDigi
ME0PadDigi()
Definition: ME0PadDigi.cc:6