CMS 3D CMS Logo

MkFitGeometry.h
Go to the documentation of this file.
1 #ifndef RecoTracker_MkFit_MkFitGeometry_h
2 #define RecoTracker_MkFit_MkFitGeometry_h
3 
6 
7 #include <memory>
8 #include <unordered_map>
9 #include <vector>
10 
11 namespace mkfit {
12  class LayerNumberConverter;
13 } // namespace mkfit
14 
15 class DetLayer;
17 class TrackerGeometry;
18 class TrackerTopology;
19 
24 public:
25  explicit MkFitGeometry(const TrackerGeometry& geom,
27  const TrackerTopology& ttopo,
28  std::unique_ptr<mkfit::TrackerInfo> trackerInfo,
29  const mkfit::LayerNumberConverter& layNConv);
31 
32  int mkFitLayerNumber(DetId detId) const;
34  mkfit::TrackerInfo const& trackerInfo() const { return *trackerInfo_; }
35  const std::vector<const DetLayer*>& detLayers() const { return dets_; }
36  unsigned int uniqueIdInLayer(int layer, unsigned int detId) const {
37  return trackerInfo_->layer(layer).short_id(detId);
38  }
39  const TrackerTopology* topology() const { return ttopo_; }
40 
41 private:
43  std::unique_ptr<mkfit::LayerNumberConverter> lnc_; // for pimpl pattern
44  std::unique_ptr<mkfit::TrackerInfo> trackerInfo_;
45  std::vector<const DetLayer*> dets_;
46 };
47 
48 #endif
std::unique_ptr< mkfit::LayerNumberConverter > lnc_
Definition: MkFitGeometry.h:43
unsigned int uniqueIdInLayer(int layer, unsigned int detId) const
Definition: MkFitGeometry.h:36
const TrackerTopology * ttopo_
Definition: MkFitGeometry.h:42
mkfit::TrackerInfo const & trackerInfo() const
Definition: MkFitGeometry.h:34
const TrackerTopology * topology() const
Definition: MkFitGeometry.h:39
mkfit::LayerNumberConverter const & layerNumberConverter() const
Definition: MkFitGeometry.h:33
const std::vector< const DetLayer * > & detLayers() const
Definition: MkFitGeometry.h:35
Definition: DetId.h:17
std::unique_ptr< mkfit::TrackerInfo > trackerInfo_
Definition: MkFitGeometry.h:44
int mkFitLayerNumber(DetId detId) const
MkFitGeometry(const TrackerGeometry &geom, const GeometricSearchTracker &tracker, const TrackerTopology &ttopo, std::unique_ptr< mkfit::TrackerInfo > trackerInfo, const mkfit::LayerNumberConverter &layNConv)
std::vector< const DetLayer * > dets_
Definition: MkFitGeometry.h:45