CMS 3D CMS Logo

ME0PadDigiCluster.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 ME0PadDigiCluster::ME0PadDigiCluster(std::vector<uint16_t> pads, int bx) : v_(pads), bx_(bx) {}
5 
6 ME0PadDigiCluster::ME0PadDigiCluster() : v_(std::vector<uint16_t>()), bx_(0) {}
7 
8 // Comparison
10  return v_ == digi.pads() and bx_ == digi.bx();
11 }
12 
13 // Comparison
15  return v_ != digi.pads() or bx_ != digi.bx();
16 }
17 
20  if (digi.bx() == bx_)
21  return digi.pads().front() < v_.front();
22  else
23  return digi.bx() < bx_;
24 }
25 
26 std::ostream& operator<<(std::ostream& o, const ME0PadDigiCluster& digi) {
27  o << " bx: " << digi.bx() << " pads: ";
28  for (auto p : digi.pads())
29  o << " " << p;
30  o << std::endl;
31  return o;
32 }
33 
35  std::cout << " bx: " << bx() << " pads: ";
36  for (auto p : pads())
37  std::cout << " " << p;
38  std::cout << std::endl;
39 }
ME0PadDigiCluster.h
operator<<
std::ostream & operator<<(std::ostream &o, const ME0PadDigiCluster &digi)
Definition: ME0PadDigiCluster.cc:26
ME0PadDigiCluster::pads
const std::vector< uint16_t > & pads() const
Definition: ME0PadDigiCluster.h:26
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
gather_cfg.cout
cout
Definition: gather_cfg.py:144
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
ME0PadDigiCluster::operator==
bool operator==(const ME0PadDigiCluster &digi) const
Definition: ME0PadDigiCluster.cc:9
ME0PadDigiCluster::operator!=
bool operator!=(const ME0PadDigiCluster &digi) const
Definition: ME0PadDigiCluster.cc:14
ME0PadDigiCluster::v_
std::vector< uint16_t > v_
Definition: ME0PadDigiCluster.h:32
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
ME0PadDigiCluster::operator<
bool operator<(const ME0PadDigiCluster &digi) const
Precedence operator.
Definition: ME0PadDigiCluster.cc:19
ME0PadDigiCluster::bx
int bx() const
Definition: ME0PadDigiCluster.h:27
ME0PadDigiCluster
Definition: ME0PadDigiCluster.h:17
ME0PadDigiCluster::bx_
int32_t bx_
Definition: ME0PadDigiCluster.h:33
std
Definition: JetResolutionObject.h:76
ME0PadDigiCluster::print
void print() const
Definition: ME0PadDigiCluster.cc:34
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
ME0PadDigiCluster::ME0PadDigiCluster
ME0PadDigiCluster()
Definition: ME0PadDigiCluster.cc:6