FastSimulation
TrajectoryManager
src
InsideBoundsMeasurementEstimator.cc
Go to the documentation of this file.
1
#include "
FastSimulation/TrajectoryManager/interface/InsideBoundsMeasurementEstimator.h
"
2
#include "
TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h
"
3
#include "
DataFormats/GeometrySurface/interface/BoundPlane.h
"
4
#include "
TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h
"
5
bool
InsideBoundsMeasurementEstimator::estimate
(
const
TrajectoryStateOnSurface
& ts,
const
Plane
& plane)
const
{
6
return
plane.
bounds
().
inside
(ts.
localPosition
());
7
}
8
9
MeasurementEstimator::Local2DVector
InsideBoundsMeasurementEstimator::maximalLocalDisplacement
(
10
const
TrajectoryStateOnSurface
& ts,
const
Plane
&)
const
{
11
return
Local2DVector
(0, 0);
12
}
13
14
std::pair<bool, double>
InsideBoundsMeasurementEstimator::estimate
(
const
TrajectoryStateOnSurface
& tsos,
15
const
TrackingRecHit
& aRecHit)
const
{
16
bool
inside = aRecHit.
det
()->
surface
().
bounds
().
inside
(tsos.
localPosition
());
17
return
HitReturnType
(inside, 0);
18
}
TrajectoryStateOnSurface.h
TrackingRecHit::det
const GeomDet * det() const
Definition:
TrackingRecHit.h:122
TransientTrackingRecHit.h
MeasurementEstimator::Local2DVector
Vector2DBase< float, LocalTag > Local2DVector
Definition:
MeasurementEstimator.h:26
MeasurementEstimator::HitReturnType
std::pair< bool, double > HitReturnType
Definition:
MeasurementEstimator.h:34
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition:
GeomDet.h:37
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:16
InsideBoundsMeasurementEstimator.h
Bounds::inside
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
Surface::bounds
const Bounds & bounds() const
Definition:
Surface.h:87
Vector2DBase
Definition:
Vector2DBase.h:8
TrajectoryStateOnSurface::localPosition
LocalPoint localPosition() const
Definition:
TrajectoryStateOnSurface.h:74
InsideBoundsMeasurementEstimator::estimate
bool estimate(const TrajectoryStateOnSurface &ts, const Plane &plane) const override
Definition:
InsideBoundsMeasurementEstimator.cc:5
TrackingRecHit
Definition:
TrackingRecHit.h:21
Plane
Definition:
Plane.h:16
BoundPlane.h
InsideBoundsMeasurementEstimator::maximalLocalDisplacement
Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const override
Definition:
InsideBoundsMeasurementEstimator.cc:9
Generated for CMSSW Reference Manual by
1.8.16