CMS 3D CMS Logo

MeasurementByLayerGrouper.h
Go to the documentation of this file.
1 #ifndef SiTrackerMRHTools_MeasurementByLayerGrouper_H
2 #define SiTrackerMRHTools_MeasurementByLayerGrouper_H
3 
4 class DetLayer;
7 
8 #include <vector>
9 #include <map>
10 
11 //groups the TrajectoryMeasurements on a layer by layer basis
12 
14 private:
17 
18  const DetLayer* getDetLayer(const TM& tm) const;
19 
20 public:
21  explicit MeasurementByLayerGrouper(const GeometricSearchTracker* search = nullptr) : theGeomSearch(search){};
22 
23  std::vector<std::pair<const DetLayer*, std::vector<TM> > > operator()(const std::vector<TM>&) const;
24 
25  //to be ported later if needed
26  /*
27  vector<TM>
28  operator()(const vector<pair<const DetLayer*, vector<TM> > >&) const;
29 
30  vector<pair<const DetLayer*, map<int, vector<TrajectoryMeasurement> > > >
31  operator()(const map<int, vector<TM> >&) const;
32 */
33 };
34 #endif
MeasurementByLayerGrouper(const GeometricSearchTracker *search=nullptr)
std::vector< T >::const_iterator search(const cond::Time_t &val, const std::vector< T > &container)
Definition: IOVProxy.cc:315
std::vector< std::pair< const DetLayer *, std::vector< TM > > > operator()(const std::vector< TM > &) const
const DetLayer * getDetLayer(const TM &tm) const
const GeometricSearchTracker * theGeomSearch