CMS 3D CMS Logo

Chi2Strip1DEstimator.cc
Go to the documentation of this file.
6 using namespace std;
7 
9  const TrackingRecHit& hit) const {
10  if ( //hit.isMatched() ||
11  hit.detUnit()->type().isTrackerPixel())
12  return HitReturnType(false, 0.);
13 
14  const StripTopology* topology = dynamic_cast<const StripTopology*>(&(hit.detUnit()->topology()));
15 
16  double m = topology->measurementPosition(hit.localPosition()).x();
17 
18  double x = topology->measurementPosition(state.localPosition()).x();
19 
20  double V = topology->measurementError(hit.localPosition(), hit.localPositionError()).uu();
21  double C = topology->measurementError(state.localPosition(), state.localError().positionError()).uu();
22  double r = m - x;
23  double R = V + C;
24 
25  double est = r * r / R;
26 
27  return returnIt(est);
28 }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t V
virtual MeasurementError measurementError(const LocalPoint &, const LocalError &) const =0
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
float x
std::pair< bool, double > HitReturnType
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const override