CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
RecHitSorter Class Reference

#include <RecHitSorter.h>

Public Types

typedef TransientTrackingRecHit::ConstRecHitContainer RecHitContainer
 

Public Member Functions

 RecHitSorter ()
 
RecHitContainer sortHits (const RecHitContainer &hits, const PropagationDirection &dir) const
 
 ~RecHitSorter ()
 

Detailed Description

Sorts the RecHits along the PropagationDirection. Ported from ORCA

Author
todorov, cerati

Definition at line 13 of file RecHitSorter.h.

Member Typedef Documentation

◆ RecHitContainer

Definition at line 15 of file RecHitSorter.h.

Constructor & Destructor Documentation

◆ RecHitSorter()

RecHitSorter::RecHitSorter ( )
inline

Definition at line 17 of file RecHitSorter.h.

17 {}

◆ ~RecHitSorter()

RecHitSorter::~RecHitSorter ( )
inline

Definition at line 19 of file RecHitSorter.h.

19 {}

Member Function Documentation

◆ sortHits()

RecHitSorter::RecHitContainer RecHitSorter::sortHits ( const RecHitContainer hits,
const PropagationDirection dir 
) const

Definition at line 6 of file RecHitSorter.cc.

7  {
8  RecHitContainer myHits(hits);
9 
10  sort(myHits.begin(), myHits.end(), RecHitLessByDet(dir));
11 
12  return myHits;
13 }

References DeadROC_duringRun::dir, hfClusterShapes_cfi::hits, and jetUpdater_cfi::sort.

Referenced by KFSplittingFitter::sorter().

RecHitSorter::RecHitContainer
TransientTrackingRecHit::ConstRecHitContainer RecHitContainer
Definition: RecHitSorter.h:15
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
RecHitLessByDet
Definition: RecHitLessByDet.h:16
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23