CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrajectorySeedHitCandidate.h
Go to the documentation of this file.
1 #ifndef FastSimulation_Tracking_TrajectorySeedHitCandidate_H_
2 
3 #define FastSimulation_Tracking_TrajectorySeedHitCandidate_H_
4 
16 
18 
19 #include <vector>
20 
21 class TrackerTopology;
22 
24 public:
27  : theHit(nullptr),
28  seedingLayer()
29 
30  {}
31 
34 
36  inline const FastTrackerRecHit* hit() const { return theHit; }
37 
38  inline const TrackingLayer& getTrackingLayer() const { return seedingLayer; }
39 
41  inline unsigned int subDetId() const { return seedingLayer.getSubDetNumber(); }
42 
44  inline unsigned int layerNumber() const { return seedingLayer.getLayerNumber(); }
45 
47  inline LocalPoint localPosition() const { return hit()->localPosition(); }
49  // bool isOnRequestedDet(const std::vector<unsigned int>& whichDet) const;
50 
52  inline bool isOnTheSameLayer(const TrajectorySeedHitCandidate& other) const {
53  return seedingLayer == other.seedingLayer;
54  }
55 
56 private:
59 };
60 
61 #endif
unsigned int getSubDetNumber() const
Definition: TrackingLayer.h:55
unsigned int getLayerNumber() const
Definition: TrackingLayer.h:59
const FastTrackerRecHit * theHit
TrajectorySeedHitCandidate()
Default Constructor.
LocalPoint localPosition() const override
LocalPoint localPosition() const
The local position.
const FastTrackerRecHit * hit() const
The Hit itself.
unsigned int layerNumber() const
The Layer Number.
const TrackingLayer & getTrackingLayer() const
bool isOnTheSameLayer(const TrajectorySeedHitCandidate &other) const
Check if the hit is on one of the requested detector.
unsigned int subDetId() const
The subdet Id.