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  bool isPhase1() const;
35  bool isPhase2() const;
36  mkfit::TrackerInfo const& trackerInfo() const { return *trackerInfo_; }
37  const std::vector<const DetLayer*>& detLayers() const { return dets_; }
38  unsigned int uniqueIdInLayer(int layer, unsigned int detId) const {
39  return trackerInfo_->layer(layer).short_id(detId);
40  }
41  const TrackerTopology* topology() const { return ttopo_; }
42 
43 private:
45  std::unique_ptr<mkfit::LayerNumberConverter> lnc_; // for pimpl pattern
46  std::unique_ptr<mkfit::TrackerInfo> trackerInfo_;
47  std::vector<const DetLayer*> dets_;
48 };
49 
50 #endif
bool isPhase1() const
std::unique_ptr< mkfit::LayerNumberConverter > lnc_
Definition: MkFitGeometry.h:45
unsigned int uniqueIdInLayer(int layer, unsigned int detId) const
Definition: MkFitGeometry.h:38
bool isPhase2() const
const TrackerTopology * ttopo_
Definition: MkFitGeometry.h:44
mkfit::TrackerInfo const & trackerInfo() const
Definition: MkFitGeometry.h:36
const TrackerTopology * topology() const
Definition: MkFitGeometry.h:41
mkfit::LayerNumberConverter const & layerNumberConverter() const
Definition: MkFitGeometry.h:33
const std::vector< const DetLayer * > & detLayers() const
Definition: MkFitGeometry.h:37
Definition: DetId.h:17
std::unique_ptr< mkfit::TrackerInfo > trackerInfo_
Definition: MkFitGeometry.h:46
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:47