CMS 3D CMS Logo

RecHitLessByDet.h
Go to the documentation of this file.
1 #ifndef CD_RecHitLessByDet_H_
2 #define CD_RecHitLessByDet_H_
3 
15 
18 
19 public:
21 
23 
24  bool operator()(const RecHitPointer& aHit, const RecHitPointer& bHit) const {
25  return (theDirection == alongMomentum ? (aHit->surface()->toGlobal(aHit->localPosition()).mag() <
26  bHit->surface()->toGlobal(bHit->localPosition()).mag())
27  : (aHit->surface()->toGlobal(aHit->localPosition()).mag() >
28  bHit->surface()->toGlobal(bHit->localPosition()).mag()));
29  }
30 
31 private:
33 };
34 #endif //CD_RecHitLessByDet_H_
RecHitLessByDet::theDirection
PropagationDirection theDirection
Definition: RecHitLessByDet.h:32
TransientTrackingRecHit.h
RecHitLessByDet::RecHitLessByDet
RecHitLessByDet(const PropagationDirection &dir)
Definition: RecHitLessByDet.h:20
RecHitLessByDet::~RecHitLessByDet
~RecHitLessByDet()
Definition: RecHitLessByDet.h:22
TrackingRecHit::ConstRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
Definition: TrackingRecHit.h:25
PropagationDirection.h
RecHitLessByDet
Definition: RecHitLessByDet.h:16
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition: Basic3DVectorLD.h:127
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
RecHitLessByDet::RecHitPointer
TransientTrackingRecHit::ConstRecHitPointer RecHitPointer
Definition: RecHitLessByDet.h:17
alongMomentum
Definition: PropagationDirection.h:4
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
RecHitLessByDet::operator()
bool operator()(const RecHitPointer &aHit, const RecHitPointer &bHit) const
Definition: RecHitLessByDet.h:24