#include <BarrelMeasurementEstimator.h>
|
| BarrelMeasurementEstimator () |
|
| BarrelMeasurementEstimator (float phiMin, float phiMax, float zMin, float zMax) |
|
virtual
BarrelMeasurementEstimator * | clone () const |
|
virtual std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const |
|
virtual std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &ts, GlobalPoint &gp) const |
|
virtual std::pair< bool, double > | estimate (const GlobalPoint &vprim, const TrajectoryStateOnSurface &ts, GlobalPoint &gp) const |
|
virtual bool | estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const |
|
MeasurementEstimator::Local2DVector | maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const |
|
void | setPhiRange (float dummyphiMin, float dummyphiMax) |
|
void | setZRange (float zmin, float zmax) |
|
virtual SurfaceReturnType | estimate (const TrajectoryStateOnSurface &ts, const Plane &plane) const =0 |
|
virtual Local2DVector | maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const Plane &plane) const |
|
virtual | ~MeasurementEstimator () |
|
BarrelMeasurementEstimator::BarrelMeasurementEstimator |
( |
| ) |
|
|
inline |
BarrelMeasurementEstimator::BarrelMeasurementEstimator |
( |
float |
phiMin, |
|
|
float |
phiMax, |
|
|
float |
zMin, |
|
|
float |
zMax |
|
) |
| |
|
inline |
Returns pair( true, value) if the TrajectoryStateOnSurface is compatible with the RecHit, and pair( false, value) if it is not compatible. The TrajectoryStateOnSurface must be on the same Surface as the RecHit. For an estimator where there is no value computed, e.g. fixed window estimator, only the first(bool) part is of interest.
Implements MeasurementEstimator.
Definition at line 28 of file BarrelMeasurementEstimator.cc.
References TransientTrackingRecHit::det(), TrackingRecHit::localPosition(), GeomDet::surface(), and Surface::toGlobal().
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
virtual const GeomDet * det() const =0
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
const Plane & surface() const
The nominal surface of the GeomDet.
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const
virtual LocalPoint localPosition() const =0
Definition at line 36 of file BarrelMeasurementEstimator.cc.
References funct::abs(), TrajectoryStateOnSurface::globalParameters(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), pi, GlobalTrajectoryParameters::position(), thePhiMin, theZMax, theZMin, and PV3DBase< T, PVType, FrameType >::z().
39 float myR = gp.
perp();
51 float rhPhi = gp.
phi();
54 float phiDiff = tsPhi - rhPhi;
55 if (phiDiff >
pi) phiDiff -= twopi;
56 if (phiDiff < -
pi) phiDiff += twopi;
61 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin &&
62 zDiff < myZmax && zDiff > myZmin) {
64 return std::pair<bool,double>(
true,1.);
67 return std::pair<bool,double>(
false,0.);
Geom::Phi< T > phi() const
Abs< T >::type abs(const T &t)
GlobalPoint position() const
const GlobalTrajectoryParameters & globalParameters() const
Definition at line 73 of file BarrelMeasurementEstimator.cc.
References funct::abs(), TrajectoryStateOnSurface::globalParameters(), normalized_phi(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), GlobalTrajectoryParameters::position(), and PV3DBase< T, PVType, FrameType >::z().
80 float tsPhi = ts.
phi();
81 float myR = gp.
perp();
93 float rhPhi = gp.
phi() ;
94 float zDiff = gp.
z()-ts.
z() ;
97 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin && zDiff < myZmax && zDiff > myZmin)
98 {
return std::pair<bool,double>(
true,1.) ; }
100 {
return std::pair<bool,double>(
false,0.) ; }
Geom::Phi< T > phi() const
RealType normalized_phi(RealType phi)
Abs< T >::type abs(const T &t)
GlobalPoint position() const
const GlobalTrajectoryParameters & globalParameters() const
void BarrelMeasurementEstimator::setPhiRange |
( |
float |
dummyphiMin, |
|
|
float |
dummyphiMax |
|
) |
| |
|
inline |
void BarrelMeasurementEstimator::setZRange |
( |
float |
zmin, |
|
|
float |
zmax |
|
) |
| |
|
inline |
float BarrelMeasurementEstimator::thePhiMax |
|
private |
float BarrelMeasurementEstimator::thePhiMin |
|
private |
float BarrelMeasurementEstimator::theZMax |
|
private |
float BarrelMeasurementEstimator::theZMin |
|
private |