DataFormats
TrackerRecHit2D
interface
TrackingRecHitLessFromGlobalPosition.h
Go to the documentation of this file.
1
#ifndef DataFormats_TrackerRecHit2D_TrackingRecHitLessFromGlobalPosition_H
2
#define DataFormats_TrackerRecHit2D_TrackingRecHitLessFromGlobalPosition_H
3
4
#include "
DataFormats/TrajectorySeed/interface/PropagationDirection.h
"
5
#include "
Geometry/CommonDetUnit/interface/GeomDet.h
"
6
#include <functional>
7
#include "
Geometry/CommonDetUnit/interface/TrackingGeometry.h
"
8
#include "
DataFormats/TrackingRecHit/interface/TrackingRecHit.h
"
13
class
TrackingRecHitLessFromGlobalPosition
{
14
public
:
15
TrackingRecHitLessFromGlobalPosition
(
const
TrackingGeometry
* geometry_,
PropagationDirection
dir
=
alongMomentum
)
16
:
geometry
(geometry_),
theDir
(
dir
) {}
17
18
bool
operator()
(
const
TrackingRecHit
&
a
,
const
TrackingRecHit
&
b
)
const
{
19
if
(
theDir
==
alongMomentum
)
20
return
insideOutLess
(
a
,
b
);
21
else
22
return
insideOutLess
(
b
,
a
);
23
}
24
25
private
:
26
bool
insideOutLess
(
const
TrackingRecHit
&
a
,
const
TrackingRecHit
&
b
)
const
;
27
28
bool
barrelForwardLess
(
const
TrackingRecHit
&
a
,
const
TrackingRecHit
&
b
)
const
;
29
30
const
TrackingGeometry
*
geometry
;
31
PropagationDirection
theDir
;
32
};
33
#endif
TrackingGeometry
Definition:
TrackingGeometry.h:26
geometry
Definition:
geometry.py:1
TrackingGeometry.h
TrackingRecHitLessFromGlobalPosition::operator()
bool operator()(const TrackingRecHit &a, const TrackingRecHit &b) const
Definition:
TrackingRecHitLessFromGlobalPosition.h:18
TrackingRecHitLessFromGlobalPosition::TrackingRecHitLessFromGlobalPosition
TrackingRecHitLessFromGlobalPosition(const TrackingGeometry *geometry_, PropagationDirection dir=alongMomentum)
Definition:
TrackingRecHitLessFromGlobalPosition.h:15
TrackingRecHitLessFromGlobalPosition
Definition:
TrackingRecHitLessFromGlobalPosition.h:13
TrackingRecHit.h
TrackingRecHitLessFromGlobalPosition::insideOutLess
bool insideOutLess(const TrackingRecHit &a, const TrackingRecHit &b) const
Definition:
TrackingRecHitLessFromGlobalPosition.cc:13
b
double b
Definition:
hdecay.h:118
TrackingRecHitLessFromGlobalPosition::theDir
PropagationDirection theDir
Definition:
TrackingRecHitLessFromGlobalPosition.h:31
a
double a
Definition:
hdecay.h:119
TrackingRecHitLessFromGlobalPosition::barrelForwardLess
bool barrelForwardLess(const TrackingRecHit &a, const TrackingRecHit &b) const
Definition:
TrackingRecHitLessFromGlobalPosition.cc:66
PropagationDirection.h
TrackingRecHit
Definition:
TrackingRecHit.h:21
GeomDet.h
PropagationDirection
PropagationDirection
Definition:
PropagationDirection.h:4
alongMomentum
Definition:
PropagationDirection.h:4
TrackingRecHitLessFromGlobalPosition::geometry
const TrackingGeometry * geometry
Definition:
TrackingRecHitLessFromGlobalPosition.h:30
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
Generated for CMSSW Reference Manual by
1.8.16