Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoTracker
TrackProducer
interface
TrackingRecHitLess.h
Go to the documentation of this file.
1
#ifndef TrackCandidate_TrackingRecHitLess_H
2
#define TrackCandidate_TrackingRecHitLess_H
3
4
#include "
DataFormats/TrajectorySeed/interface/PropagationDirection.h
"
5
#include "
Geometry/CommonDetUnit/interface/GeomDet.h
"
6
#include <functional>
7
#include "
Geometry/TrackerGeometryBuilder/interface/GeomDetLess.h
"
8
#include "
Geometry/CommonDetUnit/interface/TrackingGeometry.h
"
9
#include "
DataFormats/TrackingRecHit/interface/TrackingRecHit.h
"
10
11
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
12
18
class
TrackingRecHitLess
{
19
public
:
20
21
TrackingRecHitLess
(
const
TrackingGeometry
* geometry_,
PropagationDirection
dir
=
alongMomentum
) :
22
g_
(geometry_){
23
less_
=
new
GeomDetLess
(
dir
);
24
}
25
26
27
bool
operator()
(
const
TrackingRecHit
&
a
,
const
TrackingRecHit
&
b
)
const
{
28
29
return
less_
->operator()(
30
g_
->
idToDet
(a.
geographicalId
()),
g_
->
idToDet
(b.
geographicalId
()));
31
}
32
33
private
:
34
const
TrackingGeometry
*
g_
;
35
GeomDetLess
*
less_
;
36
};
37
38
#endif
TrackingGeometry
Definition:
TrackingGeometry.h:30
MessageLogger.h
GeomDet.h
GeomDetLess
Definition:
GeomDetLess.h:12
alongMomentum
Definition:
PropagationDirection.h:4
TrackingRecHit
Definition:
TrackingRecHit.h:28
PropagationDirection
PropagationDirection
Definition:
PropagationDirection.h:4
TrackingGeometry.h
TrackingRecHit.h
PropagationDirection.h
TrackingRecHitLess::less_
GeomDetLess * less_
Definition:
TrackingRecHitLess.h:35
TrackingRecHitLess::operator()
bool operator()(const TrackingRecHit &a, const TrackingRecHit &b) const
Definition:
TrackingRecHitLess.h:27
GeomDetLess.h
TrackingGeometry::idToDet
virtual const GeomDet * idToDet(DetId) const =0
b
double b
Definition:
hdecay.h:120
TrackingRecHitLess::g_
const TrackingGeometry * g_
Definition:
TrackingRecHitLess.h:34
a
double a
Definition:
hdecay.h:121
TrackingRecHitLess
Definition:
TrackingRecHitLess.h:18
TrackingRecHit::geographicalId
DetId geographicalId() const
Definition:
TrackingRecHit.h:120
dir
dbl *** dir
Definition:
mlp_gen.cc:35
TrackingRecHitLess::TrackingRecHitLess
TrackingRecHitLess(const TrackingGeometry *geometry_, PropagationDirection dir=alongMomentum)
Definition:
TrackingRecHitLess.h:21
Generated for CMSSW Reference Manual by
1.8.5