CMS 3D CMS Logo

RecHitLessByDet Class Reference

A comparison operator for RecHits. More...

#include <TrackingTools/TrackFitters/interface/RecHitLessByDet.h>

List of all members.

Public Member Functions

bool operator() (const RecHitPointer &aHit, const RecHitPointer &bHit) const
 RecHitLessByDet (const PropagationDirection &dir)
 ~RecHitLessByDet ()

Private Types

typedef
TransientTrackingRecHit::ConstRecHitPointer 
RecHitPointer

Private Attributes

PropagationDirection theDirection


Detailed Description

A comparison operator for RecHits.

Returns true if the hits are in the order in which they would be seen by an outgoing (or an incoming) track. Only meaningful for RecHits from the same trajectory. Ported from ORCA

Date
2007/07/18 22:16:06
Revision
1.7
Author:
todorov, cerati

Definition at line 18 of file RecHitLessByDet.h.


Member Typedef Documentation

typedef TransientTrackingRecHit::ConstRecHitPointer RecHitLessByDet::RecHitPointer [private]

Definition at line 20 of file RecHitLessByDet.h.


Constructor & Destructor Documentation

RecHitLessByDet::RecHitLessByDet ( const PropagationDirection dir  )  [inline]

Definition at line 23 of file RecHitLessByDet.h.

00023                                                    :
00024     theDirection(dir) {}

RecHitLessByDet::~RecHitLessByDet (  )  [inline]

Definition at line 26 of file RecHitLessByDet.h.

00026 {}


Member Function Documentation

bool RecHitLessByDet::operator() ( const RecHitPointer aHit,
const RecHitPointer bHit 
) const [inline]

Definition at line 28 of file RecHitLessByDet.h.

References alongMomentum, muonGeometry::mag(), and theDirection.

00028                                                                              {
00029 
00030     return (theDirection == alongMomentum ? 
00031             (aHit->surface()->toGlobal(aHit->localPosition()).mag() < 
00032              bHit->surface()->toGlobal(bHit->localPosition()).mag() ) :
00033             (aHit->surface()->toGlobal(aHit->localPosition()).mag() >
00034              bHit->surface()->toGlobal(bHit->localPosition()).mag()) );
00035   }


Member Data Documentation

PropagationDirection RecHitLessByDet::theDirection [private]

Definition at line 39 of file RecHitLessByDet.h.

Referenced by operator()().


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