CMS 3D CMS Logo

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