CMS 3D CMS Logo

TrackerSingleRecHit.h
Go to the documentation of this file.
1 #ifndef TrackerSingleRecHit_H
2 #define TrackerSingleRecHit_H
3 
7 
8 /* a Hit composed by a "single" measurement
9  * it has a reference to a cluster and a local position&error
10  */
12 public:
14 
16 
21 
22  // no position (as in persistent)
24 
25  template <typename CluRef>
26  TrackerSingleRecHit(const LocalPoint& p, const LocalError& e, GeomDet const& idet, CluRef const& clus)
27  : Base(p, e, idet, trackerHitRTTI::single), cluster_(clus) {}
28 
29  // for projected or timing...
30  template <typename CluRef>
32  const LocalPoint& p, const LocalError& e, GeomDet const& idet, trackerHitRTTI::RTTI rt, CluRef const& clus)
33  : Base(p, e, idet, rt), cluster_(clus) {}
34 
35  // a single hit is on a detunit
36  const GeomDetUnit* detUnit() const override { return det(); }
37 
38  // used by trackMerger (to be improved)
39  OmniClusterRef const& firstClusterRef() const final { return cluster_; }
40 
41  OmniClusterRef const& omniClusterRef() const { return cluster_; }
42  OmniClusterRef const& omniCluster() const { return cluster_; }
43  // for rekeying...
46 
48 
50 
52 
54 
55  SiStripCluster const& stripCluster() const { return cluster_.stripCluster(); }
56 
57  SiPixelCluster const& pixelCluster() const { return cluster_.pixelCluster(); }
58 
60 
61  FTLCluster const& mtdCluster() const { return cluster_.mtdCluster(); }
62 
63  // void setClusterRef(const & OmniClusterRef ref) { cluster_ =ref;}
68 
69  bool sharesInput(const TrackingRecHit* other, SharedInputType what) const final;
70 
71  bool sharesInput(TrackerSingleRecHit const& other) const { return cluster_ == other.cluster_; }
72 
73  bool sameCluster(OmniClusterRef const& oh) const { return oh == cluster_; }
74 
75  std::vector<const TrackingRecHit*> recHits() const override;
76  std::vector<TrackingRecHit*> recHits() override;
77 
78 private:
79  // new game
81 };
82 
83 #endif
TrackerSingleRecHit::ClusterPixelRef
OmniClusterRef::ClusterPixelRef ClusterPixelRef
Definition: TrackerSingleRecHit.h:17
TrackerSingleRecHit::recHits
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
Definition: TrackerSingleRecHit.cc:146
TrackerSingleRecHit::TrackerSingleRecHit
TrackerSingleRecHit(const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt, CluRef const &clus)
Definition: TrackerSingleRecHit.h:31
OmniClusterRef::mtdCluster
FTLCluster const & mtdCluster() const
Definition: OmniClusterRef.h:57
GeomDet
Definition: GeomDet.h:27
Phase2TrackerCluster1D
Definition: Phase2TrackerCluster1D.h:10
FTLCluster
Definition: FTLCluster.h:21
TrackerSingleRecHit::mtdCluster
FTLCluster const & mtdCluster() const
Definition: TrackerSingleRecHit.h:61
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
OmniClusterRef::cluster_mtd
ClusterMTDRef cluster_mtd() const
Definition: OmniClusterRef.h:52
hcal_runs.rt
rt
Definition: hcal_runs.py:76
TrackingRecHit::det
const GeomDet * det() const
Definition: TrackingRecHit.h:122
TrackerSingleRecHit::stripCluster
SiStripCluster const & stripCluster() const
Definition: TrackerSingleRecHit.h:55
TrackerSingleRecHit::cluster_mtd
ClusterMTDRef cluster_mtd() const
Definition: TrackerSingleRecHit.h:53
TrackerSingleRecHit::ClusterPhase2Ref
OmniClusterRef::Phase2Cluster1DRef ClusterPhase2Ref
Definition: TrackerSingleRecHit.h:19
SiPixelCluster
Pixel cluster – collection of neighboring pixels above threshold.
Definition: SiPixelCluster.h:27
watchdog.const
const
Definition: watchdog.py:83
OmniClusterRef
Definition: OmniClusterRef.h:12
TrackerSingleRecHit::omniCluster
OmniClusterRef const & omniCluster() const
Definition: TrackerSingleRecHit.h:42
TrackerSingleRecHit::omniCluster
OmniClusterRef & omniCluster()
Definition: TrackerSingleRecHit.h:45
edm::Ref
Definition: AssociativeIterator.h:58
OmniClusterRef::cluster_phase2OT
Phase2Cluster1DRef cluster_phase2OT() const
Definition: OmniClusterRef.h:48
TrackerSingleRecHit::setClusterMTDRef
void setClusterMTDRef(ClusterMTDRef const &ref)
Definition: TrackerSingleRecHit.h:67
DetId
Definition: DetId.h:17
TrackerSingleRecHit::sharesInput
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const final
Definition: TrackerSingleRecHit.cc:104
TrackingRecHit::SharedInputType
SharedInputType
definition of equality via shared input
Definition: TrackingRecHit.h:59
OmniClusterRef::cluster_strip
ClusterStripRef cluster_strip() const
Definition: OmniClusterRef.h:44
TrackerSingleRecHit::Base
BaseTrackerRecHit Base
Definition: TrackerSingleRecHit.h:13
BaseTrackerRecHit
Definition: BaseTrackerRecHit.h:15
OmniClusterRef::stripCluster
SiStripCluster const & stripCluster() const
Definition: OmniClusterRef.h:55
TrackerSingleRecHit::firstClusterRef
OmniClusterRef const & firstClusterRef() const final
Definition: TrackerSingleRecHit.h:39
trackerHitRTTI::RTTI
RTTI
Definition: trackerHitRTTI.h:8
TrackerSingleRecHit::cluster_pixel
ClusterPixelRef cluster_pixel() const
Definition: TrackerSingleRecHit.h:47
trackingPlots.other
other
Definition: trackingPlots.py:1465
Point3DBase< float, LocalTag >
TrackerSingleRecHit::cluster_strip
ClusterStripRef cluster_strip() const
Definition: TrackerSingleRecHit.h:49
TrackerSingleRecHit::sameCluster
bool sameCluster(OmniClusterRef const &oh) const
Definition: TrackerSingleRecHit.h:73
trackerHitRTTI::single
Definition: trackerHitRTTI.h:10
TrackerSingleRecHit::TrackerSingleRecHit
TrackerSingleRecHit(DetId id, OmniClusterRef const &clus)
Definition: TrackerSingleRecHit.h:23
LocalError
Definition: LocalError.h:12
OmniClusterRef::phase2OTCluster
Phase2TrackerCluster1D const & phase2OTCluster() const
Definition: OmniClusterRef.h:56
TrackerSingleRecHit::setClusterPhase2Ref
void setClusterPhase2Ref(ClusterPhase2Ref const &ref)
Definition: TrackerSingleRecHit.h:66
TrackerSingleRecHit::omniClusterRef
OmniClusterRef & omniClusterRef()
Definition: TrackerSingleRecHit.h:44
OmniClusterRef::pixelCluster
SiPixelCluster const & pixelCluster() const
Definition: OmniClusterRef.h:54
OmniClusterRef.h
TrackingRecHit
Definition: TrackingRecHit.h:21
BaseTrackerRecHit.h
GeomDet.h
TrackerSingleRecHit::TrackerSingleRecHit
TrackerSingleRecHit(const LocalPoint &p, const LocalError &e, GeomDet const &idet, CluRef const &clus)
Definition: TrackerSingleRecHit.h:26
TrackerSingleRecHit::TrackerSingleRecHit
TrackerSingleRecHit()
Definition: TrackerSingleRecHit.h:15
TrackerSingleRecHit::ClusterMTDRef
OmniClusterRef::ClusterMTDRef ClusterMTDRef
Definition: TrackerSingleRecHit.h:20
TrackerSingleRecHit::setClusterStripRef
void setClusterStripRef(ClusterStripRef const &ref)
Definition: TrackerSingleRecHit.h:65
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
TrackerSingleRecHit::setClusterPixelRef
void setClusterPixelRef(ClusterPixelRef const &ref)
Definition: TrackerSingleRecHit.h:64
TrackerSingleRecHit
Definition: TrackerSingleRecHit.h:11
TrackerSingleRecHit::cluster_phase2OT
ClusterPhase2Ref cluster_phase2OT() const
Definition: TrackerSingleRecHit.h:51
TrackerSingleRecHit::ClusterStripRef
OmniClusterRef::ClusterStripRef ClusterStripRef
Definition: TrackerSingleRecHit.h:18
TrackerSingleRecHit::pixelCluster
SiPixelCluster const & pixelCluster() const
Definition: TrackerSingleRecHit.h:57
TrackerSingleRecHit::cluster_
OmniClusterRef cluster_
Definition: TrackerSingleRecHit.h:80
TrackerSingleRecHit::sharesInput
bool sharesInput(TrackerSingleRecHit const &other) const
Definition: TrackerSingleRecHit.h:71
TrackerSingleRecHit::phase2OTCluster
Phase2TrackerCluster1D const & phase2OTCluster() const
Definition: TrackerSingleRecHit.h:59
trackerHitRTTI
Definition: trackerHitRTTI.h:6
SiStripCluster
Definition: SiStripCluster.h:9
TrackerSingleRecHit::omniClusterRef
OmniClusterRef const & omniClusterRef() const
Definition: TrackerSingleRecHit.h:41
OmniClusterRef::cluster_pixel
ClusterPixelRef cluster_pixel() const
Definition: OmniClusterRef.h:40
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
TrackerSingleRecHit::detUnit
const GeomDetUnit * detUnit() const override
Definition: TrackerSingleRecHit.h:36