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 }
GEMSubDetId
Definition: GEMSubDetId.h:10
relativeConstraints.station
station
Definition: relativeConstraints.py:67
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
gather_cfg.cout
cout
Definition: gather_cfg.py:144
GEMPadDigiCluster::GE21InValid
Definition: GEMPadDigiCluster.h:21
GEMPadDigiCluster
Definition: GEMPadDigiCluster.h:19
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
GEMPadDigiCluster::pads
const std::vector< uint16_t > & pads() const
Definition: GEMPadDigiCluster.h:39
CTPPSpixelLocalTrackReconstructionInfo::invalid
GEMPadDigiCluster::GEMPadDigiCluster
GEMPadDigiCluster()
Definition: GEMPadDigiCluster.cc:10
GEMPadDigiCluster::bx
int bx() const
Definition: GEMPadDigiCluster.h:40
GEMPadDigiCluster::operator==
bool operator==(const GEMPadDigiCluster &digi) const
Definition: GEMPadDigiCluster.cc:14
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
GEMSubDetId::Station::GE21
GEMPadDigiCluster::isValid
bool isValid() const
Definition: GEMPadDigiCluster.cc:31
GEMPadDigiCluster::print
void print() const
Definition: GEMPadDigiCluster.cc:51
GEMPadDigiCluster.h
nPart
TString nPart(Int_t part, TString string, TString delimit=";", Bool_t removerest=true)
GEMPadDigiCluster::GE11InValid
Definition: GEMPadDigiCluster.h:21
GEMSubDetId::Station
Station
Definition: GEMSubDetId.h:12
GEMPadDigiCluster::bx_
int32_t bx_
Definition: GEMPadDigiCluster.h:48
GEMPadDigiCluster::operator<
bool operator<(const GEMPadDigiCluster &digi) const
Precedence operator.
Definition: GEMPadDigiCluster.cc:24
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
GEMPadDigiCluster::NumberPartitions
NumberPartitions
Definition: GEMPadDigiCluster.h:24
operator<<
std::ostream & operator<<(std::ostream &o, const GEMPadDigiCluster &digi)
Definition: GEMPadDigiCluster.cc:43
GEMPadDigiCluster::station_
GEMSubDetId::Station station_
Definition: GEMPadDigiCluster.h:49
GEMPadDigiCluster::v_
std::vector< uint16_t > v_
Definition: GEMPadDigiCluster.h:47
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::station
GEMSubDetId::Station station() const
Definition: GEMPadDigiCluster.h:41
GEMPadDigiCluster::operator!=
bool operator!=(const GEMPadDigiCluster &digi) const
Definition: GEMPadDigiCluster.cc:19