#include <ForwardMeasurementEstimator.h>
Public Member Functions | |
virtual ForwardMeasurementEstimator * | clone () const |
virtual std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &hit) const |
virtual bool | estimate (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const |
virtual std::pair< bool, double > | estimate (const GlobalPoint &vprim, const TrajectoryStateOnSurface &ts, GlobalPoint &gp) const |
virtual std::pair< bool, double > | estimate (const TrajectoryStateOnSurface &ts, GlobalPoint &gp) const |
ForwardMeasurementEstimator (float phiMin, float phiMax, float rMin, float rMax) | |
ForwardMeasurementEstimator () | |
MeasurementEstimator::Local2DVector | maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const |
void | setPhiRange (float dummyphiMin, float dummyphiMax) |
void | setRRange (float rmin, float rmax) |
void | setRRangeI (float rmin, float rmax) |
Private Attributes | |
float | thePhiMax |
float | thePhiMin |
float | theRMax |
float | theRMaxI |
float | theRMin |
float | theRMinI |
Description: Class defining the search area in the forward disks in the pixel match, ported from ORCA
Implementation: <Notes on="" implementation>="">
Description: MeasurementEstimator for Pixel Endcap, ported from ORCA
Implementation: <Notes on="" implementation>="">
Definition at line 27 of file ForwardMeasurementEstimator.h.
ForwardMeasurementEstimator::ForwardMeasurementEstimator | ( | ) | [inline] |
ForwardMeasurementEstimator::ForwardMeasurementEstimator | ( | float | phiMin, |
float | phiMax, | ||
float | rMin, | ||
float | rMax | ||
) | [inline] |
virtual ForwardMeasurementEstimator* ForwardMeasurementEstimator::clone | ( | void | ) | const [inline, virtual] |
Implements MeasurementEstimator.
Definition at line 51 of file ForwardMeasurementEstimator.h.
References ForwardMeasurementEstimator().
{ return new ForwardMeasurementEstimator(*this) ; }
std::pair< bool, double > ForwardMeasurementEstimator::estimate | ( | const TrajectoryStateOnSurface & | ts, |
const TransientTrackingRecHit & | hit | ||
) | const [virtual] |
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 ForwardMeasurementEstimator.cc.
References TransientTrackingRecHit::det(), TrackingRecHit::localPosition(), GeomDet::surface(), and Surface::toGlobal().
{ LocalPoint lp = hit.localPosition(); GlobalPoint gp = hit.det()->surface().toGlobal( lp); return estimate(ts,gp); }
std::pair< bool, double > ForwardMeasurementEstimator::estimate | ( | const TrajectoryStateOnSurface & | ts, |
GlobalPoint & | gp | ||
) | const [virtual] |
Definition at line 34 of file ForwardMeasurementEstimator.cc.
References abs, TrajectoryStateOnSurface::globalParameters(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), pi, GlobalTrajectoryParameters::position(), thePhiMax, thePhiMin, theRMax, theRMaxI, theRMin, theRMinI, and PV3DBase< T, PVType, FrameType >::z().
{ float tsR = ts.globalParameters().position().perp(); float tsPhi = ts.globalParameters().position().phi(); float rhPhi = gp.phi(); float rhR = gp.perp(); float myZ = gp.z(); float rMin = theRMin; float rMax = theRMax; float myPhimin = thePhiMin; float myPhimax = thePhiMax; if(std::abs(myZ)> 70. && std::abs(myZ)<170.) { rMin = theRMinI; rMax = theRMaxI; } float phiDiff = tsPhi - rhPhi; if (phiDiff > pi) phiDiff -= twopi; if (phiDiff < -pi) phiDiff += twopi; float rDiff = tsR - rhR; if ( phiDiff < myPhimax && phiDiff > myPhimin && rDiff < rMax && rDiff > rMin) { return std::pair<bool,double>(true,1.); } else { return std::pair<bool,double>(false,0.); } }
bool ForwardMeasurementEstimator::estimate | ( | const TrajectoryStateOnSurface & | ts, |
const BoundPlane & | plane | ||
) | const [virtual] |
Returns true if the TrajectoryStateOnSurface is compatible with the BoundPlane, false otherwise. The TrajectoryStateOnSurface must be on the plane.
Implements MeasurementEstimator.
Definition at line 106 of file ForwardMeasurementEstimator.cc.
References abs, funct::false, TrajectoryStateOnSurface::globalParameters(), GlobalTrajectoryParameters::position(), rangesIntersect(), and funct::true.
{ typedef std::pair<float,float> Range ; GlobalPoint trajPos(ts.globalParameters().position()); GlobalDetRangeRPhi detRange(plane); float r1 = 0.; float r2 = 40.; Range trajRRange(trajPos.perp() - r1, trajPos.perp() + r2); Range trajPhiRange(trajPos.phi() - std::abs(thePhiMin), trajPos.phi() + std::abs(thePhiMax)); if(rangesIntersect(trajRRange, detRange.rRange()) && rangesIntersect(trajPhiRange, detRange.phiRange(), PhiLess())) { return true ; } else { return false ; } }
std::pair< bool, double > ForwardMeasurementEstimator::estimate | ( | const GlobalPoint & | vprim, |
const TrajectoryStateOnSurface & | ts, | ||
GlobalPoint & | gp | ||
) | const [virtual] |
Definition at line 70 of file ForwardMeasurementEstimator.cc.
References abs, TrajectoryStateOnSurface::globalParameters(), normalized_phi(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), GlobalTrajectoryParameters::position(), and PV3DBase< T, PVType, FrameType >::z().
{ GlobalVector ts = absolute_ts.globalParameters().position() - vprim ; GlobalVector gp = absolute_gp - vprim ; float tsR = ts.perp(); float tsPhi = ts.phi(); float rhPhi = gp.phi(); float rhR = gp.perp(); float myZ = gp.z(); float rMin = theRMin; float rMax = theRMax; float myPhimin = thePhiMin; float myPhimax = thePhiMax; if(std::abs(myZ)> 70. && std::abs(myZ)<170.) { rMin = theRMinI; rMax = theRMaxI; } float phiDiff = normalized_phi(rhPhi - tsPhi) ; float rDiff = rhR - tsR; if ( phiDiff < myPhimax && phiDiff > myPhimin && rDiff < rMax && rDiff > rMin) { return std::pair<bool,double>(true,1.) ; } else { return std::pair<bool,double>(false,0.) ; } }
MeasurementEstimator::Local2DVector ForwardMeasurementEstimator::maximalLocalDisplacement | ( | const TrajectoryStateOnSurface & | ts, |
const BoundPlane & | plane | ||
) | const [virtual] |
Returns the size of the compatibility region around the local position of the TrajectoryStateOnSurface along the directions of local x and y axis. The TrajectoryStateOnSurface must be on the plane. This method allows to limit the search for compatible detectors or RecHits. The MeasurementEstimator should not return "true" for any RecHit or BoundPlane which is entirely outside of the compatibility region defined by maximalLocalDisplacement().
Reimplemented from MeasurementEstimator.
Definition at line 129 of file ForwardMeasurementEstimator.cc.
References TrajectoryStateOnSurface::hasError(), asciidump::le, TrajectoryStateOnSurface::localError(), LocalTrajectoryError::positionError(), mathSSE::sqrt(), LocalError::xx(), and LocalError::yy().
{ float nSigmaCut = 3.; if ( ts.hasError()) { LocalError le = ts.localError().positionError(); return Local2DVector( sqrt(le.xx())*nSigmaCut, sqrt(le.yy())*nSigmaCut); } else return Local2DVector(999999,999999) ; }
void ForwardMeasurementEstimator::setPhiRange | ( | float | dummyphiMin, |
float | dummyphiMax | ||
) | [inline] |
void ForwardMeasurementEstimator::setRRange | ( | float | rmin, |
float | rmax | ||
) | [inline] |
void ForwardMeasurementEstimator::setRRangeI | ( | float | rmin, |
float | rmax | ||
) | [inline] |
float ForwardMeasurementEstimator::thePhiMax [private] |
Definition at line 60 of file ForwardMeasurementEstimator.h.
Referenced by estimate(), and setPhiRange().
float ForwardMeasurementEstimator::thePhiMin [private] |
Definition at line 59 of file ForwardMeasurementEstimator.h.
Referenced by estimate(), and setPhiRange().
float ForwardMeasurementEstimator::theRMax [private] |
Definition at line 62 of file ForwardMeasurementEstimator.h.
Referenced by estimate(), and setRRange().
float ForwardMeasurementEstimator::theRMaxI [private] |
Definition at line 64 of file ForwardMeasurementEstimator.h.
Referenced by estimate(), and setRRangeI().
float ForwardMeasurementEstimator::theRMin [private] |
Definition at line 61 of file ForwardMeasurementEstimator.h.
Referenced by estimate(), and setRRange().
float ForwardMeasurementEstimator::theRMinI [private] |
Definition at line 63 of file ForwardMeasurementEstimator.h.
Referenced by estimate(), and setRRangeI().