RecoTracker
SiTrackerMRHTools
src
GenericProjectedRecHit2D.cc
Go to the documentation of this file.
1
#include "
RecoTracker/SiTrackerMRHTools/interface/GenericProjectedRecHit2D.h
"
2
#include "
RecoTracker/TransientTrackingRecHit/interface/TSiPixelRecHit.h
"
3
#include "
RecoTracker/TransientTrackingRecHit/interface/TSiStripMatchedRecHit.h
"
4
#include "
RecoTracker/TransientTrackingRecHit/interface/TSiStripRecHit2DLocalPos.h
"
5
#include "
RecoTracker/TransientTrackingRecHit/interface/ProjectedRecHit2D.h
"
6
#include "
FWCore/Utilities/interface/Exception.h
"
7
8
GenericProjectedRecHit2D::GenericProjectedRecHit2D
(
const
LocalPoint
&
pos
,
9
const
LocalError
&
err
,
10
const
GeomDet
* det,
11
const
GeomDet
* originalDet,
12
const
TransientTrackingRecHit::ConstRecHitPointer
originalHit,
13
const
TrackingRecHitPropagator
*
propagator
)
14
:
TrackingRecHit
(*det)
//, originalHit->weight(), originalHit->getAnnealingFactor())
15
{
16
theOriginalDet
=
originalDet
;
17
thePropagator
=
propagator
;
18
theOriginalTransientHit
= originalHit;
19
theLp
=
pos
;
20
theLe
=
err
;
21
theProjectionMatrix
= originalHit->projectionMatrix();
22
theDimension
= originalHit->dimension();
23
//theOriginalHit = originalTransientHit.hit()->clone();
24
}
25
26
AlgebraicVector
GenericProjectedRecHit2D::parameters
()
const
{
27
AlgebraicVector
result
(2);
28
result
[0] =
theLp
.
x
();
29
result
[1] =
theLp
.
y
();
30
return
result
;
31
}
32
33
TransientTrackingRecHit::RecHitPointer
GenericProjectedRecHit2D::clone
(
34
const
TrajectoryStateOnSurface
& ts,
const
TransientTrackingRecHitBuilder
* builder)
const
{
35
return
thePropagator
->
project
<
GenericProjectedRecHit2D
>(
theOriginalTransientHit
, *
det
(), ts, builder);
36
}
GenericProjectedRecHit2D::GenericProjectedRecHit2D
GenericProjectedRecHit2D(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)
Definition:
GenericProjectedRecHit2D.cc:8
GenericProjectedRecHit2D
Definition:
GenericProjectedRecHit2D.h:8
GeomDet
Definition:
GeomDet.h:27
GenericProjectedRecHit2D::theProjectionMatrix
AlgebraicMatrix theProjectionMatrix
Definition:
GenericProjectedRecHit2D.h:74
PV3DBase::x
T x() const
Definition:
PV3DBase.h:59
TrackingRecHit::det
const GeomDet * det() const
Definition:
TrackingRecHit.h:122
pos
Definition:
PixelAliasList.h:18
GenericProjectedRecHit2D.h
TrackingRecHitPropagator::project
TrackingRecHit::RecHitPointer project(const TrackingRecHit::ConstRecHitPointer hit, const GeomDet &det, const TrajectoryStateOnSurface ts, const TransientTrackingRecHitBuilder *builder) const
Definition:
TrackingRecHitPropagator.h:30
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition:
TrackingRecHit.h:24
GenericProjectedRecHit2D::thePropagator
const TrackingRecHitPropagator * thePropagator
Definition:
GenericProjectedRecHit2D.h:75
TSiStripRecHit2DLocalPos.h
GenericProjectedRecHit2D::theLe
LocalError theLe
Definition:
GenericProjectedRecHit2D.h:73
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:16
TrackCandidateProducer_cfi.propagator
propagator
Definition:
TrackCandidateProducer_cfi.py:17
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition:
AlgebraicObjects.h:13
GenericProjectedRecHit2D::theOriginalDet
const GeomDet * theOriginalDet
Definition:
GenericProjectedRecHit2D.h:70
GenericProjectedRecHit2D::theDimension
int theDimension
Definition:
GenericProjectedRecHit2D.h:77
ProjectedRecHit2D.h
Point3DBase< float, LocalTag >
TSiPixelRecHit.h
TrackingRecHitPropagator
Definition:
TrackingRecHitPropagator.h:21
runTheMatrix.err
err
Definition:
runTheMatrix.py:288
LocalError
Definition:
LocalError.h:12
PV3DBase::y
T y() const
Definition:
PV3DBase.h:60
TrackingRecHit::ConstRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
Definition:
TrackingRecHit.h:25
GenericProjectedRecHit2D::propagator
const TrackingRecHitPropagator * propagator() const
Definition:
GenericProjectedRecHit2D.h:52
GenericProjectedRecHit2D::originalDet
const GeomDet * originalDet() const
Definition:
GenericProjectedRecHit2D.h:56
TrackingRecHit
Definition:
TrackingRecHit.h:21
GenericProjectedRecHit2D::clone
GenericProjectedRecHit2D * clone() const override
Definition:
GenericProjectedRecHit2D.h:79
TSiStripMatchedRecHit.h
GenericProjectedRecHit2D::theLp
LocalPoint theLp
Definition:
GenericProjectedRecHit2D.h:72
Exception.h
mps_fire.result
result
Definition:
mps_fire.py:303
GenericProjectedRecHit2D::parameters
AlgebraicVector parameters() const override
Definition:
GenericProjectedRecHit2D.cc:26
GenericProjectedRecHit2D::theOriginalTransientHit
TransientTrackingRecHit::ConstRecHitPointer theOriginalTransientHit
Definition:
GenericProjectedRecHit2D.h:71
TransientTrackingRecHitBuilder
Definition:
TransientTrackingRecHitBuilder.h:6
Generated for CMSSW Reference Manual by
1.8.16