CMS 3D CMS Logo

Public Member Functions | Private Attributes

SortHitPointersByY Class Reference

#include <RoadSearchHitSorting.h>

List of all members.

Public Member Functions

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

Private Attributes

const TrackerGeometry_tracker

Detailed Description

Definition at line 112 of file RoadSearchHitSorting.h.


Constructor & Destructor Documentation

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

Definition at line 114 of file RoadSearchHitSorting.h.

:_tracker(tracker){}

Member Function Documentation

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

Definition at line 115 of file RoadSearchHitSorting.h.

References _tracker, abs, TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), TrackingRecHit::localPosition(), query::result, GeomDet::toGlobal(), and detailsBasic3DVector::y.

  {
    bool result = 
      static_cast<unsigned int>(std::abs(_tracker.idToDet(rh1->geographicalId())->surface().toGlobal(rh1->localPosition()).y()) * 1E7) <
      static_cast<unsigned int>(std::abs(_tracker.idToDet(rh2->geographicalId())->surface().toGlobal(rh2->localPosition()).y()) * 1E7) ;
    return result;
  };

Member Data Documentation

Definition at line 122 of file RoadSearchHitSorting.h.

Referenced by operator()().