1 #include "CLHEP/Units/GlobalPhysicalConstants.h"
14 LogDebug(
"ConversionForwardEstimator") <<
"ConversionForwardEstimator::estimate( const TrajectoryStateOnSurface& ts ...) " <<
"\n";
17 std::pair<bool,double>
result;
21 float rhPhi = gp.
phi();
22 float rhR = gp.
perp();
33 float rMin = rLayer - newdr;
34 float rMax = rLayer + newdr;
35 float phiDiff = tsPhi - rhPhi;
36 if (phiDiff >
pi) phiDiff -= twopi;
37 if (phiDiff < -
pi) phiDiff += twopi;
45 rhR < rMax && rhR > rMin) {
54 result.second=phiDiff;
virtual Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const
Vector2DBase< float, LocalTag > Local2DVector
Geom::Phi< T > phi() const
virtual GlobalPoint globalPosition() const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const
GlobalPoint position() const
const GlobalTrajectoryParameters & globalParameters() const
virtual LocalError localPositionError() const =0
Power< A, B >::type pow(const A &a, const B &b)