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
14  UNLIKELY(!hasGroups()) 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 }
Likely.h
MeasurementEstimator
Definition: MeasurementEstimator.h:19
TrajectoryStateOnSurface.h
MessageLogger.h
GeometricSearchDet::~GeometricSearchDet
virtual ~GeometricSearchDet()
Definition: GeometricSearchDet.cc:7
GeometricSearchDet.h
GeometricSearchDet::compatibleDets
virtual std::vector< DetWithState > compatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
Definition: GeometricSearchDet.cc:35
Propagator
Definition: Propagator.h:44
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
GeometricSearchDet::groupedCompatibleDets
virtual std::vector< DetGroup > groupedCompatibleDets(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est) const
Definition: GeometricSearchDet.cc:42
GeometricSearchDet::groupedCompatibleDetsV
virtual void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const
Definition: GeometricSearchDet.cc:28
edm::LogError
Definition: MessageLogger.h:183
GeometricSearchDet::compatibleDetsV
virtual void compatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetWithState > &result) const
Definition: GeometricSearchDet.cc:9
GeometricSearchDet::hasGroups
bool hasGroups() const
Definition: GeometricSearchDet.h:99
mps_fire.result
result
Definition: mps_fire.py:303