CMS 3D CMS Logo

Public Member Functions | Private Attributes

TrackingRecHitLess Class Reference

#include <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_.

                                                                                                    :
    g_(geometry_){
    less_ = new GeomDetLess(dir);
  }

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_.

                                                                           {
    
    return  less_->operator()(
                             g_->idToDet(a.geographicalId()), g_->idToDet(b.geographicalId()));
  }

Member Data Documentation

Definition at line 34 of file TrackingRecHitLess.h.

Referenced by operator()().

Definition at line 35 of file TrackingRecHitLess.h.

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