CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Chi2Strip1DEstimator Class Reference

#include <Chi2Strip1DEstimator.h>

Inheritance diagram for Chi2Strip1DEstimator:
Chi2MeasurementEstimatorBase MeasurementEstimator

Public Member Functions

 Chi2Strip1DEstimator (double maxChi2, double nSigma=3.)
 
virtual Chi2Strip1DEstimatorclone () const
 
virtual std::pair< bool, double > estimate (const TrajectoryStateOnSurface &, const TrackingRecHit &) const
 
- Public Member Functions inherited from Chi2MeasurementEstimatorBase
 Chi2MeasurementEstimatorBase (double maxChi2, double nSigma=3.)
 
double chiSquaredCut () const
 
virtual bool estimate (const TrajectoryStateOnSurface &ts, const Plane &plane) const
 
virtual Local2DVector maximalLocalDisplacement (const TrajectoryStateOnSurface &ts, const Plane &plane) const
 
double nSigmaCut () const
 
- Public Member Functions inherited from MeasurementEstimator
virtual bool preFilter (const TrajectoryStateOnSurface &, OpaquePayload const &) const
 
virtual ~MeasurementEstimator ()
 

Additional Inherited Members

- Public Types inherited from MeasurementEstimator
typedef std::pair< bool, double > HitReturnType
 
typedef Vector2DBase< float,
LocalTag
Local2DVector
 
typedef bool SurfaceReturnType
 
- Protected Member Functions inherited from Chi2MeasurementEstimatorBase
std::pair< bool, double > returnIt (double est) const
 

Detailed Description

A Chi2 MeasurementEstimator that only uses the X coordinate in the measurement frame (the one perpendicular to the strip). Ported from ORCA.

Author
todorov, cerati

Definition at line 14 of file Chi2Strip1DEstimator.h.

Constructor & Destructor Documentation

Chi2Strip1DEstimator::Chi2Strip1DEstimator ( double  maxChi2,
double  nSigma = 3. 
)
inlineexplicit

Definition at line 18 of file Chi2Strip1DEstimator.h.

Referenced by clone().

18  :
19  Chi2MeasurementEstimatorBase( maxChi2, nSigma) {}
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma=3.)

Member Function Documentation

virtual Chi2Strip1DEstimator* Chi2Strip1DEstimator::clone ( void  ) const
inlinevirtual

Implements MeasurementEstimator.

Definition at line 24 of file Chi2Strip1DEstimator.h.

References Chi2Strip1DEstimator().

24  {
25  return new Chi2Strip1DEstimator(*this);
26  }
Chi2Strip1DEstimator(double maxChi2, double nSigma=3.)
pair< bool, double > Chi2Strip1DEstimator::estimate ( const TrajectoryStateOnSurface ts,
const TrackingRecHit 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 Chi2MeasurementEstimatorBase.

Definition at line 9 of file Chi2Strip1DEstimator.cc.

References funct::C, TrackingRecHit::detUnit(), GeomDetType::isTrackerPixel(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), TrackingRecHit::localPosition(), TrackingRecHit::localPositionError(), m, Topology::measurementError(), Topology::measurementPosition(), LocalTrajectoryError::positionError(), dttmaxenums::R, alignCSCRings::r, GeomDet::topology(), ecaldqm::topology(), GeomDet::type(), and x.

10  {
11 
12  if(//hit.isMatched() ||
13  hit.detUnit()->type().isTrackerPixel()
14  ) return HitReturnType(false,0.);
15 
16 
17  const StripTopology* topology =
18  dynamic_cast<const StripTopology*>(&(hit.detUnit()->topology()));
19 
20  double m = topology->measurementPosition(hit.localPosition()).x();
21 
22  double x = topology->measurementPosition(state.localPosition()).x();
23 
24  double V =
25  topology->measurementError(hit.localPosition(),
26  hit.localPositionError()).uu();
27  double C =
28  topology->measurementError(state.localPosition(),
29  state.localError().positionError()).uu();
30  double r = m - x;
31  double R = V + C;
32 
33  double est = r*r/R;
34 
35  return returnIt(est);
36 }
std::pair< bool, double > returnIt(double est) const
virtual const GeomDetType & type() const
Definition: GeomDet.cc:90
CaloTopology const * topology(0)
virtual const Topology & topology() const
Definition: GeomDet.cc:86
virtual MeasurementError measurementError(const LocalPoint &, const LocalError &) const =0
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
bool isTrackerPixel() const
Definition: GeomDetType.cc:30
std::pair< bool, double > HitReturnType
virtual LocalError localPositionError() const =0
virtual const GeomDetUnit * detUnit() const
Definition: DDAxes.h:10
virtual LocalPoint localPosition() const =0