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);
30 
31  int mkFitLayerNumber(DetId detId) const;
33  mkfit::TrackerInfo const& trackerInfo() const { return *trackerInfo_; }
34  const std::vector<const DetLayer*>& detLayers() const { return dets_; }
35  unsigned int uniqueIdInLayer(int layer, unsigned int detId) const {
36  return trackerInfo_->layer(layer).short_id(detId);
37  }
38  const TrackerTopology* topology() const { return ttopo_; }
39 
40 private:
42  std::unique_ptr<mkfit::LayerNumberConverter> lnc_; // for pimpl pattern
43  std::unique_ptr<mkfit::TrackerInfo> trackerInfo_;
44  std::vector<const DetLayer*> dets_;
45 };
46 
47 #endif
std::unique_ptr< mkfit::LayerNumberConverter > lnc_
Definition: MkFitGeometry.h:42
unsigned int uniqueIdInLayer(int layer, unsigned int detId) const
Definition: MkFitGeometry.h:35
constexpr std::array< uint8_t, layerIndexSize > layer
const TrackerTopology * ttopo_
Definition: MkFitGeometry.h:41
mkfit::TrackerInfo const & trackerInfo() const
Definition: MkFitGeometry.h:33
const TrackerTopology * topology() const
Definition: MkFitGeometry.h:38
mkfit::LayerNumberConverter const & layerNumberConverter() const
Definition: MkFitGeometry.h:32
const std::vector< const DetLayer * > & detLayers() const
Definition: MkFitGeometry.h:34
Definition: DetId.h:17
std::unique_ptr< mkfit::TrackerInfo > trackerInfo_
Definition: MkFitGeometry.h:43
int mkFitLayerNumber(DetId detId) const
MkFitGeometry(const TrackerGeometry &geom, const GeometricSearchTracker &tracker, const TrackerTopology &ttopo, std::unique_ptr< mkfit::TrackerInfo > trackerInfo)
std::vector< const DetLayer * > dets_
Definition: MkFitGeometry.h:44