CMS 3D CMS Logo

ME0Digi.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 ME0Digi::ME0Digi (int strip, int bx) :
5  strip_(strip),
6  bx_(bx)
7 {}
8 
10  strip_(0),
11  bx_(0)
12 {}
13 
14 bool ME0Digi::operator == (const ME0Digi& digi) const
15 {
16  return strip_ == digi.strip() and bx_ == digi.bx();
17 }
18 
19 bool ME0Digi::operator != (const ME0Digi& digi) const
20 {
21  return strip_ != digi.strip() or bx_ != digi.bx();
22 }
23 
24 bool ME0Digi::operator<(const ME0Digi& digi) const
25 {
26  if(digi.bx() == bx_)
27  return digi.strip() < strip_;
28  else
29  return digi.bx() < bx_;
30 }
31 
32 std::ostream & operator<<(std::ostream & o, const ME0Digi& digi)
33 {
34  return o << " strip: " << digi.strip() << " bx: " << digi.bx();
35 }
std::ostream & operator<<(std::ostream &o, const ME0Digi &digi)
Definition: ME0Digi.cc:32
bool operator!=(const ME0Digi &digi) const
Definition: ME0Digi.cc:19
ME0Digi()
Definition: ME0Digi.cc:9
uint16_t strip_
Definition: ME0Digi.h:30
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 strip() const
Definition: ME0Digi.h:26
bool operator==(const ME0Digi &digi) const
Definition: ME0Digi.cc:14
int16_t bx_
Definition: ME0Digi.h:31
int bx() const
Definition: ME0Digi.h:27
bool operator<(const ME0Digi &digi) const
Definition: ME0Digi.cc:24