CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
SiStripMatchedRecHit2D.h File Reference
#include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2D.h"
#include "TkCloner.h"

Go to the source code of this file.

Classes

class  SiStripMatchedRecHit2D
 

Functions

bool sharesClusters (SiStripMatchedRecHit2D const &h1, SiStripMatchedRecHit2D const &h2, TrackingRecHit::SharedInputType what)
 

Function Documentation

bool sharesClusters ( SiStripMatchedRecHit2D const &  h1,
SiStripMatchedRecHit2D const &  h2,
TrackingRecHit::SharedInputType  what 
)
inline

Definition at line 76 of file SiStripMatchedRecHit2D.h.

References TrackingRecHit::all, SiStripMatchedRecHit2D::monoClusterRef(), and SiStripMatchedRecHit2D::stereoClusterRef().

Referenced by SiStripMatchedRecHit2D::sharesInput().

78  {
79  bool mono = h1.monoClusterRef() == h2.monoClusterRef();
80  bool stereo = h1.stereoClusterRef() == h2.stereoClusterRef();
81 
82  return (what == TrackingRecHit::all) ? (mono && stereo) : (mono || stereo);
83 }