TrackingTools
TrackFitters
interface
RecHitLessByDet.h
Go to the documentation of this file.
1
#ifndef CD_RecHitLessByDet_H_
2
#define CD_RecHitLessByDet_H_
3
13
#include "
DataFormats/TrajectorySeed/interface/PropagationDirection.h
"
14
#include "
TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h
"
15
16
class
RecHitLessByDet
{
17
typedef
TransientTrackingRecHit::ConstRecHitPointer
RecHitPointer
;
18
19
public
:
20
RecHitLessByDet
(
const
PropagationDirection
&
dir
) :
theDirection
(
dir
) {}
21
22
~RecHitLessByDet
() {}
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
:
32
PropagationDirection
theDirection
;
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
Generated for CMSSW Reference Manual by
1.8.16