test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMPadDigiCluster.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 GEMPadDigiCluster::GEMPadDigiCluster (std::vector<uint16_t> pads, int bx) :
5  v_(pads),
6  bx_(bx)
7 {}
8 
10  v_(std::vector<uint16_t>()),
11  bx_(0)
12 {}
13 
14 
15 // Comparison
17 {
18  return v_ == digi.pads() and bx_ == digi.bx();
19 }
20 
21 
22 // Comparison
24 {
25  return v_ != digi.pads() or bx_ != digi.bx();
26 }
27 
28 
31 {
32  if(digi.bx() == bx_)
33  return digi.pads().front() < v_.front();
34  else
35  return digi.bx() < bx_;
36 }
37 
38 
39 std::ostream & operator<<(std::ostream & o, const GEMPadDigiCluster& digi)
40 {
41  o << " bx: " << digi.bx() << " pads: ";
42  for (auto p: digi.pads()) o << " " << p;
43  o << std::endl;
44  return o;
45 }
46 
47 
49 {
50  std::cout << " bx: " << bx() << " pads: ";
51  for (auto p: pads()) std::cout << " " << p;
52  std::cout << std::endl;
53 }
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
bool operator==(const GEMPadDigiCluster &digi) const
bool operator!=(const GEMPadDigiCluster &digi) const
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_
bool operator<(const GEMPadDigiCluster &digi) const
Precedence operator.
tuple cout
Definition: gather_cfg.py:145