#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 27 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 35 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();
50 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
54 float rhPhi = gp.
phi();
56 float phiDiff = tsPhi - rhPhi;
57 if (phiDiff >
pi) phiDiff -= twopi;
58 if (phiDiff < -
pi) phiDiff += twopi;
60 if ( phiDiff < thePhiMax && phiDiff >
thePhiMin ) {
62 return std::pair<bool,double>(
true,1.);
65 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 71 of file BarrelMeasurementEstimator.cc.
References funct::abs(), PV3DBase< T, PVType, FrameType >::barePhi(), f, TrajectoryStateOnSurface::globalParameters(), normalized_phi(), PV3DBase< T, PVType, FrameType >::perp(), GlobalTrajectoryParameters::position(), and PV3DBase< T, PVType, FrameType >::z().
78 float myR = gp.
perp();
80 float zDiff = myZ -ts.
z() ;
90 if( zDiff >= myZmax || zDiff <= myZmin )
return std::pair<bool,double>(
false,0.);
97 {
return std::pair<bool,double>(
true,1.) ; }
99 {
return std::pair<bool,double>(
false,0.) ; }
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 |