CMS 3D CMS Logo

GeometricSearchDet.cc
Go to the documentation of this file.
3 
5 
7 
9  const Propagator& prop,
10  const MeasurementEstimator& est,
11  std::vector<DetWithState>& result) const {
12  if
13  UNLIKELY(!hasGroups()) edm::LogError("DetLayers") << "At the moment not a real implementation";
14 
15  // standard implementation of compatibleDets() for class which have
16  // groupedCompatibleDets implemented.
17 
18  std::vector<DetGroup> vectorGroups;
19  groupedCompatibleDetsV(startingState, prop, est, vectorGroups);
20  for (auto itDG = vectorGroups.begin(); itDG != vectorGroups.end(); itDG++) {
21  for (auto itDGE = itDG->begin(); itDGE != itDG->end(); itDGE++) {
22  result.emplace_back(itDGE->det(), itDGE->trajectoryState());
23  }
24  }
25 }
26 
28  const Propagator&,
29  const MeasurementEstimator&,
30  std::vector<DetGroup>&) const {
31  edm::LogError("DetLayers") << "At the moment not a real implementation";
32 }
33 
34 std::vector<GeometricSearchDet::DetWithState> GeometricSearchDet::compatibleDets(
35  const TrajectoryStateOnSurface& startingState, const Propagator& prop, const MeasurementEstimator& est) const {
36  std::vector<DetWithState> result;
37  compatibleDetsV(startingState, prop, est, result);
38  return result;
39 }
40 
41 std::vector<DetGroup> GeometricSearchDet::groupedCompatibleDets(const TrajectoryStateOnSurface& startingState,
42  const Propagator& prop,
43  const MeasurementEstimator& est) const {
44  std::vector<DetGroup> result;
45  groupedCompatibleDetsV(startingState, prop, est, result);
46  return result;
47 }
virtual std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
virtual void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
#define UNLIKELY(x)
Definition: Likely.h:21
virtual void compatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetWithState > &result) const