1 #ifndef SiStripMatchedRecHit2D_H
2 #define SiStripMatchedRecHit2D_H
14 const SiStripRecHit2D* rMono,
const SiStripRecHit2D* rStereo):
15 BaseTrackerRecHit(pos, err, id, trackerHitRTTI::
match), clusterMono_(rMono->omniClusterRef()), clusterStereo_(rStereo->omniClusterRef()){}
18 SiStripRecHit2D
stereoHit()
const {
return SiStripRecHit2D(stereoId(),stereoClusterRef()) ;}
19 SiStripRecHit2D
monoHit()
const {
return SiStripRecHit2D(monoId(),monoClusterRef());}
35 return stereoClusterRef().stripCluster();
38 return monoClusterRef().stripCluster();
42 virtual SiStripMatchedRecHit2D *
clone()
const {
return new SiStripMatchedRecHit2D( *
this);}
53 virtual std::vector<const TrackingRecHit*>
recHits()
const;
55 virtual std::vector<TrackingRecHit*>
recHits();
63 bool sharesClusters(SiStripMatchedRecHit2D
const & h1, SiStripMatchedRecHit2D
const & h2,
65 bool mono = h1.monoClusterRef()== h2.monoClusterRef();
66 bool stereo = h1.stereoClusterRef()== h2.stereoClusterRef();
SharedInputType
definition of equality via shared input
OmniClusterRef const & monoClusterRef() const
OmniClusterRef & monoClusterRef()
OmniClusterRef const & stereoClusterRef() const
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
unsigned int stereoId() const
unsigned int monoId() const
SiStripRecHit2D monoHit() const
void getKfComponents2D(KfComponentsHolder &holder) const
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
virtual void getKfComponents(KfComponentsHolder &holder) const
SiStripMatchedRecHit2D(const LocalPoint &pos, const LocalError &err, const DetId &id, const SiStripRecHit2D *rMono, const SiStripRecHit2D *rStereo)
virtual int dimension() const
~SiStripMatchedRecHit2D()
SiStripCluster const & monoCluster() const
OmniClusterRef clusterStereo_
SiStripCluster const & stereoCluster() const
OmniClusterRef & stereoClusterRef()
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
SiStripRecHit2D stereoHit() const
virtual OmniClusterRef const & firstClusterRef() const
virtual SiStripMatchedRecHit2D * clone() const
bool sharesClusters(SiStripMatchedRecHit2D const &h1, SiStripMatchedRecHit2D const &h2, TrackingRecHit::SharedInputType what)