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
virtual void getKfComponents(KfComponentsHolder &holder) const
SiStripCluster const & stereoCluster() const
OmniClusterRef clusterStereo_
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
SiStripRecHit2D stereoHit() const
virtual OmniClusterRef const & firstClusterRef() const
OmniClusterRef & stereoClusterRef()
SiStripRecHit2D monoHit() const
OmniClusterRef const & monoClusterRef() const
void getKfComponents2D(KfComponentsHolder &holder) const
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
unsigned int stereoId() const
SiStripMatchedRecHit2D(const LocalPoint &pos, const LocalError &err, const DetId &id, const SiStripRecHit2D *rMono, const SiStripRecHit2D *rStereo)
unsigned int monoId() const
~SiStripMatchedRecHit2D()
virtual SiStripMatchedRecHit2D * clone() const
SiStripCluster const & monoCluster() const
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
OmniClusterRef & monoClusterRef()
OmniClusterRef const & stereoClusterRef() const
virtual int dimension() const
bool sharesClusters(SiStripMatchedRecHit2D const &h1, SiStripMatchedRecHit2D const &h2, TrackingRecHit::SharedInputType what)
Unlimited (trivial) bounds.