CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
EqualsBySharesInput Struct Reference

Public Member Functions

bool operator() (const TransientTrackingRecHit *h1, const TransientTrackingRecHit *h2) const
 

Detailed Description

Definition at line 15 of file TrajectoryCleanerBySharedHits.cc.

Member Function Documentation

bool EqualsBySharesInput::operator() ( const TransientTrackingRecHit h1,
const TransientTrackingRecHit h2 
) const
inline

Definition at line 16 of file TrajectoryCleanerBySharedHits.cc.

References TrackingRecHit::geographicalId(), TransientTrackingRecHit::hit(), TrackingRecHit::sharesInput(), and TrackingRecHit::some.

16  {
17  return (h1 == h2) || ((h1->geographicalId() == h2->geographicalId()) && (h1->hit()->sharesInput(h2->hit(), TrackingRecHit::some)));
18  }
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
virtual const TrackingRecHit * hit() const =0
DetId geographicalId() const