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, int bx) : v_(pads), bx_(bx) {}
5 
6 GEMPadDigiCluster::GEMPadDigiCluster() : v_(std::vector<uint16_t>()), bx_(-99) {}
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 bool GEMPadDigiCluster::isValid() const { return !v_.empty() and bx_ != -99; }
27 
28 std::ostream& operator<<(std::ostream& o, const GEMPadDigiCluster& digi) {
29  o << " bx: " << digi.bx() << " pads: ";
30  for (auto p : digi.pads())
31  o << " " << p;
32  o << std::endl;
33  return o;
34 }
35 
37  std::cout << " bx: " << bx() << " pads: ";
38  for (auto p : pads())
39  std::cout << " " << p;
40  std::cout << std::endl;
41 }
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
gather_cfg.cout
cout
Definition: gather_cfg.py:144
GEMPadDigiCluster
Definition: GEMPadDigiCluster.h:17
GEMPadDigiCluster::pads
const std::vector< uint16_t > & pads() const
Definition: GEMPadDigiCluster.h:27
GEMPadDigiCluster::GEMPadDigiCluster
GEMPadDigiCluster()
Definition: GEMPadDigiCluster.cc:6
GEMPadDigiCluster::bx
int bx() const
Definition: GEMPadDigiCluster.h:28
GEMPadDigiCluster::operator==
bool operator==(const GEMPadDigiCluster &digi) const
Definition: GEMPadDigiCluster.cc:9
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
simKBmtfDigis_cfi.bx
bx
Definition: simKBmtfDigis_cfi.py:55
GEMPadDigiCluster::isValid
bool isValid() const
Definition: GEMPadDigiCluster.cc:26
GEMPadDigiCluster::print
void print() const
Definition: GEMPadDigiCluster.cc:36
GEMPadDigiCluster.h
GEMPadDigiCluster::bx_
int32_t bx_
Definition: GEMPadDigiCluster.h:34
GEMPadDigiCluster::operator<
bool operator<(const GEMPadDigiCluster &digi) const
Precedence operator.
Definition: GEMPadDigiCluster.cc:19
operator<<
std::ostream & operator<<(std::ostream &o, const GEMPadDigiCluster &digi)
Definition: GEMPadDigiCluster.cc:28
GEMPadDigiCluster::v_
std::vector< uint16_t > v_
Definition: GEMPadDigiCluster.h:33
std
Definition: JetResolutionObject.h:76
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
GEMPadDigiCluster::operator!=
bool operator!=(const GEMPadDigiCluster &digi) const
Definition: GEMPadDigiCluster.cc:14