#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 TrackingRecHit &hit) const |
|
virtual std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &ts, const GlobalPoint &gp) const |
|
virtual std::pair< bool, double > | estimate (const GlobalPoint &vprim, const TrajectoryStateOnSurface &ts, const 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 =0 |
|
float | maxSagitta () const |
|
| MeasurementEstimator () |
|
| MeasurementEstimator (float maxSag, float minToll, float mpt) |
|
float | minPt2ForHitRecoveryInGluedDet () const |
|
float | minTolerance2 () const |
|
virtual bool | preFilter (const TrajectoryStateOnSurface &, OpaquePayload const &) 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 TrackingRecHit::det(), TrackingRecHit::localPosition(), GeomDet::surface(), and Surface::toGlobal().
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
const Plane & surface() const
The nominal surface of the GeomDet.
const GeomDet * det() const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &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().
40 float myR = gp.
perp();
51 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
55 float rhPhi = gp.
phi();
57 float phiDiff = tsPhi - rhPhi;
58 if (phiDiff >
pi) phiDiff -= twopi;
59 if (phiDiff < -
pi) phiDiff += twopi;
61 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin ) {
63 return std::pair<bool,double>(
true,1.);
66 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 72 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().
79 float myR = gp.
perp();
81 float zDiff = myZ -ts.
z() ;
91 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
93 float rhPhi = gp.
phi() ;
94 float tsPhi = ts.
phi();
97 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin )
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 |