CMS 3D CMS Logo

CompareHitY Class Reference

#include <RecoTracker/SingleTrackPattern/interface/CosmicTrajectoryBuilder.h>

List of all members.

Public Member Functions

 CompareHitY (const TrackerGeometry &tracker)
 CompareHitY (const TrackerGeometry &tracker)
bool operator() (const TrackingRecHit *rh1, const TrackingRecHit *rh2)
bool operator() (const TrackingRecHit *rh1, const TrackingRecHit *rh2)

Private Attributes

const TrackerGeometry_tracker
const TrackerGeometry_tracker


Detailed Description

Definition at line 43 of file CosmicTrajectoryBuilder.h.


Constructor & Destructor Documentation

CompareHitY::CompareHitY ( const TrackerGeometry tracker  )  [inline]

Definition at line 45 of file CosmicTrajectoryBuilder.h.

00045 :_tracker(tracker){}

CompareHitY::CompareHitY ( const TrackerGeometry tracker  )  [inline]

Definition at line 100 of file CRackTrajectoryBuilder.h.

00100 :_tracker(tracker){}


Member Function Documentation

bool CompareHitY::operator() ( const TrackingRecHit rh1,
const TrackingRecHit rh2 
) [inline]

Definition at line 101 of file CRackTrajectoryBuilder.h.

References _tracker, TrackingRecHit::geographicalId(), gp1, TrackerGeometry::idToDet(), TrackingRecHit::localPosition(), and GeomDet::toGlobal().

00103   {
00104     GlobalPoint gp1=_tracker.idToDet(rh1->geographicalId())->surface().toGlobal(rh1->localPosition());
00105     GlobalPoint gp2=_tracker.idToDet(rh2->geographicalId())->surface().toGlobal(rh2->localPosition());
00106     return gp1.y()<gp2.y();};

bool CompareHitY::operator() ( const TrackingRecHit rh1,
const TrackingRecHit rh2 
) [inline]

Definition at line 46 of file CosmicTrajectoryBuilder.h.

References _tracker, TrackingRecHit::geographicalId(), gp1, TrackerGeometry::idToDet(), TrackingRecHit::localPosition(), and GeomDet::toGlobal().

00048    {
00049      GlobalPoint gp1=_tracker.idToDet(rh1->geographicalId())->surface().toGlobal(rh1->localPosition());
00050      GlobalPoint gp2=_tracker.idToDet(rh2->geographicalId())->surface().toGlobal(rh2->localPosition());
00051      return gp1.y()<gp2.y();};


Member Data Documentation

const TrackerGeometry& CompareHitY::_tracker [private]

Definition at line 106 of file CRackTrajectoryBuilder.h.

const TrackerGeometry& CompareHitY::_tracker [private]

Definition at line 51 of file CosmicTrajectoryBuilder.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:34 2009 for CMSSW by  doxygen 1.5.4