CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2D.h File Reference

#include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2D.h"

Go to the source code of this file.

Classes

class  GCC11_FINAL
 Our base class. More...

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 63 of file SiStripMatchedRecHit2D.h.

References TrackingRecHit::all.

                                                        {
  bool mono =  h1.monoClusterRef()== h2.monoClusterRef();
  bool stereo =  h1.stereoClusterRef()== h2.stereoClusterRef();
  
  return (what==TrackingRecHit::all) ? (mono&&stereo) : (mono||stereo);
  
}