CMS 3D CMS Logo

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;
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 }
const std::vector< uint16_t > & pads() const
bool operator==(const GEMPadDigiCluster &digi) const
std::ostream & operator<<(std::ostream &o, const GEMPadDigiCluster &digi)
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
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.
GEMSubDetId::Station station() const
bool operator!=(const GEMPadDigiCluster &digi) const