CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NonPropagatingDetMeasurements.cc
Go to the documentation of this file.
7 
8 std::vector<TrajectoryMeasurement>
10  const TrajectoryStateOnSurface& stateOnThisDet,
11  const MeasurementEstimator& est,
12  const MeasurementTrackerEvent &data) const
13 {
14  throw cms::Exception("THIS SHOULD NOT BE CALLED");
15  std::vector<TrajectoryMeasurement> result;
16  /*
17  MeasurementDet::RecHitContainer allHits = det.recHits(stateOnThisDet, data);
18  for (MeasurementDet::RecHitContainer::const_iterator ihit=allHits.begin();
19  ihit != allHits.end(); ihit++) {
20  std::pair<bool,double> diffEst = est.estimate( stateOnThisDet, **ihit);
21  if ( diffEst.first) {
22  result.push_back( TrajectoryMeasurement( stateOnThisDet, *ihit,
23  diffEst.second));
24  }
25  }
26  //GIO// std::cerr << "NonPropagatingDetMeasurements: " << allHits.size() << " => " << result.size() << std::endl;
27  if ( result.empty()) {
28  // create a TrajectoryMeasurement with an invalid RecHit and zero estimate
29  result.push_back( TrajectoryMeasurement( stateOnThisDet,
30  InvalidTransientRecHit::build(&det.geomDet()), 0.F));
31  }
32  else {
33  // sort results according to estimator value
34  if ( result.size() > 1) {
35  sort( result.begin(), result.end(), TrajMeasLessEstim());
36  }
37  }
38  */
39  return result;
40 }
std::vector< TrajectoryMeasurement > get(const MeasurementDet &det, const TrajectoryStateOnSurface &stateOnThisDet, const MeasurementEstimator &est, const MeasurementTrackerEvent &data) const
tuple result
Definition: mps_fire.py:83