CMS 3D CMS Logo

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