Defines the search area in the forward
- Author
- Nancy Marinelli, U. of Notre Dame, US
Definition at line 21 of file ConversionForwardEstimator.h.
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 12 of file ConversionForwardEstimator.cc.
References dr_, TrajectoryStateOnSurface::globalParameters(), TrackingRecHit::globalPosition(), TrackingRecHit::localPositionError(), LogDebug, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), pi, GlobalTrajectoryParameters::position(), funct::pow(), query::result, mathSSE::sqrt(), thePhiRangeMin, and LocalError::yy().
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;
Geom::Phi< T > phi() const
virtual GlobalPoint globalPosition() const
GlobalPoint position() const
const GlobalTrajectoryParameters & globalParameters() const
virtual LocalError localPositionError() const =0
Power< A, B >::type pow(const A &a, const B &b)