CMS 3D CMS Logo

TrackingRecHitLess Class Reference

Defines order of layers in the Tracker as seen by straight tracks coming from the interaction region. More...

#include <RecoTracker/TrackProducer/interface/TrackingRecHitLess.h>

List of all members.

Public Member Functions

bool operator() (const TrackingRecHit &a, const TrackingRecHit &b) const
 TrackingRecHitLess (const TrackingGeometry *geometry_, PropagationDirection dir=alongMomentum)

Private Attributes

const TrackingGeometryg_
GeomDetLessless_


Detailed Description

Defines order of layers in the Tracker as seen by straight tracks coming from the interaction region.

Definition at line 18 of file TrackingRecHitLess.h.


Constructor & Destructor Documentation

TrackingRecHitLess::TrackingRecHitLess ( const TrackingGeometry geometry_,
PropagationDirection  dir = alongMomentum 
) [inline]

Definition at line 21 of file TrackingRecHitLess.h.

References dir, and less_.

00021                                                                                                     :
00022     g_(geometry_){
00023     less_ = new GeomDetLess(dir);
00024   }


Member Function Documentation

bool TrackingRecHitLess::operator() ( const TrackingRecHit a,
const TrackingRecHit b 
) const [inline]

Definition at line 27 of file TrackingRecHitLess.h.

References g_, TrackingRecHit::geographicalId(), TrackingGeometry::idToDet(), and less_.

00027                                                                            {
00028     
00029     return  less_->operator()(
00030                              g_->idToDet(a.geographicalId()), g_->idToDet(b.geographicalId()));
00031   }


Member Data Documentation

const TrackingGeometry* TrackingRecHitLess::g_ [private]

Definition at line 34 of file TrackingRecHitLess.h.

Referenced by operator()().

GeomDetLess* TrackingRecHitLess::less_ [private]

Definition at line 35 of file TrackingRecHitLess.h.

Referenced by operator()(), and TrackingRecHitLess().


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