CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GeometricSearchDet.cc
Go to the documentation of this file.
3 
5 
7 
8 void
10  const Propagator& prop,
11  const MeasurementEstimator& est,
12  std::vector<DetWithState>& result) const {
13 
14  if unlikely(!hasGroups()) edm::LogError("DetLayers") << "At the moment not a real implementation" ;
15 
16 
17  // standard implementation of compatibleDets() for class which have
18  // groupedCompatibleDets implemented.
19 
20  std::vector<DetGroup> vectorGroups;
21  groupedCompatibleDetsV(startingState,prop,est,vectorGroups);
22  for(auto itDG=vectorGroups.begin(); itDG!=vectorGroups.end();itDG++){
23  for(auto itDGE=itDG->begin(); itDGE!=itDG->end();itDGE++){
24  result.emplace_back(itDGE->det(),itDGE->trajectoryState());
25  }
26  }
27 }
28 
29 void
31  const Propagator&,
32  const MeasurementEstimator&,
33  std::vector<DetGroup> &) const {
34  edm::LogError("DetLayers") << "At the moment not a real implementation" ;
35 }
36 
37 
38 std::vector<GeometricSearchDet::DetWithState>
40  const Propagator& prop,
41  const MeasurementEstimator& est) const {
42  std::vector<DetWithState> result;
43  compatibleDetsV( startingState, prop, est,result);
44  return result;
45 }
46 
47 std::vector<DetGroup>
49  const Propagator& prop,
50  const MeasurementEstimator& est) const {
51  std::vector<DetGroup> result;
52  groupedCompatibleDetsV(startingState, prop, est,result);
53  return result;
54 }
55 
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
tuple result
Definition: mps_fire.py:83
#define unlikely(x)
virtual void compatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetWithState > &result) const