CMS 3D CMS Logo

SiStripMatchedRecHit2D.cc
Go to the documentation of this file.
2 
4  if (what == all && (geographicalId() != other->geographicalId()))
5  return false;
6 
7  if (!sameDetModule(*other))
8  return false;
9 
11  const SiStripMatchedRecHit2D* otherMatched = static_cast<const SiStripMatchedRecHit2D*>(other);
12  return sharesClusters(*this, *otherMatched, what);
13  }
14 
15  if (what == all)
16  return false;
17  // what about multi ???
19  return false;
20 
21  auto const& otherClus = reinterpret_cast<const BaseTrackerRecHit*>(other)->firstClusterRef();
22  return (otherClus == stereoClusterRef()) || (otherClus == monoClusterRef());
23 }
24 
26  return other.sameCluster(monoClusterRef()) || other.sameCluster(stereoClusterRef());
27 }
28 
29 // it does not have components anymore...
30 std::vector<const TrackingRecHit*> SiStripMatchedRecHit2D::recHits() const {
31  std::vector<const TrackingRecHit*> rechits;
32  return rechits;
33 }
34 
35 std::vector<TrackingRecHit*> SiStripMatchedRecHit2D::recHits() {
36  std::vector<TrackingRecHit*> rechits;
37  return rechits;
38 }
BaseTrackerRecHit::sameDetModule
bool sameDetModule(TrackingRecHit const &hit) const
Definition: BaseTrackerRecHit.h:134
TrackingRecHit::geographicalId
DetId geographicalId() const
Definition: TrackingRecHit.h:120
TrackingRecHit::SharedInputType
SharedInputType
definition of equality via shared input
Definition: TrackingRecHit.h:59
trackingPlots.other
other
Definition: trackingPlots.py:1460
HI_PhotonSkim_cff.rechits
rechits
Definition: HI_PhotonSkim_cff.py:76
trackerHitRTTI::isMatched
bool isMatched(TrackingRecHit const &hit)
Definition: trackerHitRTTI.h:33
TrackingRecHit::all
Definition: TrackingRecHit.h:59
SiStripMatchedRecHit2D::stereoClusterRef
OmniClusterRef const & stereoClusterRef() const
Definition: SiStripMatchedRecHit2D.h:34
trackerHitRTTI::isFromDet
bool isFromDet(TrackingRecHit const &hit)
Definition: trackerHitRTTI.h:36
SiStripMatchedRecHit2D::monoClusterRef
OmniClusterRef const & monoClusterRef() const
Definition: SiStripMatchedRecHit2D.h:35
TrackingRecHit
Definition: TrackingRecHit.h:21
SiStripMatchedRecHit2D::sharesInput
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
Definition: SiStripMatchedRecHit2D.cc:3
SiStripMatchedRecHit2D
Definition: SiStripMatchedRecHit2D.h:8
TrackerSingleRecHit
Definition: TrackerSingleRecHit.h:11
SiStripMatchedRecHit2D.h
SiStripMatchedRecHit2D::recHits
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
Definition: SiStripMatchedRecHit2D.cc:30
sharesClusters
bool sharesClusters(SiStripMatchedRecHit2D const &h1, SiStripMatchedRecHit2D const &h2, TrackingRecHit::SharedInputType what)
Definition: SiStripMatchedRecHit2D.h:76