CMS 3D CMS Logo

SiStripOverlapHit.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: CalibTracker/SiStripHitResolution
4 // Class: SiStripOverlapHit
5 //
13 //
14 // Original Author: Christophe Delaere
15 // Created: Fri, 20 Sep 2019 14:45:00 GMT
16 //
17 //
18 #ifndef CalibTracker_SiStripHitResolution_SiStripOverlapHit_H
19 #define CalibTracker_SiStripHitResolution_SiStripOverlapHit_H
20 
26 
28 public:
31 
32  // constructes an overlap from 2 hits and a track. Hits are internally sorted inside-out
33  explicit SiStripOverlapHit(TrajectoryMeasurement const& measA, TrajectoryMeasurement const& measB);
34  // destructor
35  virtual ~SiStripOverlapHit() {}
36 
37  // access to indivitual hits and to the trajectory state
38  inline ConstRecHitPointer const& hitA() const { return measA_.recHit(); }
39  inline ConstRecHitPointer const& hitB() const { return measB_.recHit(); }
40  inline ConstRecHitPointer const& hit(unsigned int hit) const { return hit ? hitB() : hitA(); }
41  TrajectoryStateOnSurface const& trajectoryStateOnSurface(unsigned int hit = 0, bool updated = true) const;
42 
43  // utilities
44 
45  // track local angle
46  double getTrackLocalAngle(unsigned int hit) const; // 0: average, 1: hit A, 2: hit B
47  // raw local distance between hit and strajectory state
48  double offset(unsigned int hit) const;
49  // distance between the two hits in the "trajectory frame"
50  double shift() const;
51  // absolute global distance between the hits (useful to debug pair finding)
52  double distance(bool fromTrajectory = false) const;
53  // global position (averaged over the two hits)
54  GlobalPoint position() const;
55 
56 private:
59 };
60 
61 #endif
ConstRecHitPointer const & hit(unsigned int hit) const
GlobalPoint position() const
double getTrackLocalAngle(unsigned int hit) const
double offset(unsigned int hit) const
double distance(bool fromTrajectory=false) const
SiStripOverlapHit(TrajectoryMeasurement const &measA, TrajectoryMeasurement const &measB)
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
double shift() const
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual ~SiStripOverlapHit()
TrajectoryMeasurement measB_
ConstRecHitPointer const & hitB() const
TrackingRecHit::RecHitPointer RecHitPointer
TrajectoryMeasurement measA_
ConstRecHitPointer const & hitA() const
TrajectoryStateOnSurface const & trajectoryStateOnSurface(unsigned int hit=0, bool updated=true) const
ConstRecHitPointer const & recHit() const
TrackingRecHit::ConstRecHitPointer ConstRecHitPointer