CMS 3D CMS Logo

SortByRadius Class Reference

List of all members.

Public Member Functions

bool operator() (const TrackingRecHit *h1, const TrackingRecHit *h2) const
 SortByRadius (const TrackerGeometry *t)

Private Attributes

const TrackerGeometrytheTracker


Detailed Description

Definition at line 56 of file SeedGenerator.cc.


Constructor & Destructor Documentation

SortByRadius::SortByRadius ( const TrackerGeometry t  )  [inline]

Definition at line 60 of file SeedGenerator.cc.

00060 : theTracker(t) {}


Member Function Documentation

bool SortByRadius::operator() ( const TrackingRecHit h1,
const TrackingRecHit h2 
) const [inline]

Definition at line 62 of file SeedGenerator.cc.

References TrackingRecHit::geographicalId(), gp1, TrackerGeometry::idToDetUnit(), TrackingRecHit::localPosition(), PV3DBase< T, PVType, FrameType >::perp2(), and SeedGenerator::theTracker.

00064   {
00065     GlobalPoint gp1 = 
00066       theTracker->idToDetUnit(h1->geographicalId())->toGlobal(
00067                               h1->localPosition());
00068     GlobalPoint gp2 = 
00069       theTracker->idToDetUnit(h2->geographicalId())->toGlobal(
00070                               h2->localPosition());
00071 
00072     return (gp1.perp2() < gp2.perp2());
00073   };


Member Data Documentation

const TrackerGeometry* SortByRadius::theTracker [private]

Definition at line 73 of file SeedGenerator.cc.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:32:40 2009 for CMSSW by  doxygen 1.5.4