CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GEMPadDigiCluster.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 GEMPadDigiCluster::GEMPadDigiCluster(std::vector<uint16_t> pads,
5  int16_t bx,
7  unsigned nPart)
8  : v_(pads), bx_(bx), station_(station), part_(nPart) {}
9 
11  : v_(std::vector<uint16_t>()), bx_(-99), station_(GEMSubDetId::Station::GE11), part_(NumberPartitions::GE11) {}
12 
13 // Comparison
15  return v_ == digi.pads() and bx_ == digi.bx() and station_ == digi.station();
16 }
17 
18 // Comparison
20  return v_ != digi.pads() or bx_ != digi.bx();
21 }
22 
25  if (digi.bx() == bx_)
26  return digi.pads().front() < v_.front();
27  else
28  return digi.bx() < bx_;
29 }
30 
32  // empty clusters are always invalid
33  if (v_.empty())
34  return false;
35 
36  uint16_t invalid = GE11InValid;
38  invalid = GE21InValid;
39  }
40  return v_[0] != invalid;
41 }
42 
43 std::ostream& operator<<(std::ostream& o, const GEMPadDigiCluster& digi) {
44  o << " bx: " << digi.bx() << " pads: [";
45  for (auto p : digi.pads())
46  o << " " << p;
47  o << "]";
48  return o;
49 }
50 
52  std::cout << " bx: " << bx() << " pads: ";
53  for (auto p : pads())
54  std::cout << " " << p;
55  std::cout << std::endl;
56 }
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:167
bool operator==(const GEMPadDigiCluster &digi) const
bool operator!=(const GEMPadDigiCluster &digi) const
const std::vector< uint16_t > & pads() const
std::vector< uint16_t > v_
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
GEMSubDetId::Station station_
bool operator<(const GEMPadDigiCluster &digi) const
Precedence operator.
bool isValid() const
tuple cout
Definition: gather_cfg.py:144
GEMSubDetId::Station station() const