CMS 3D CMS Logo

TwoTrackMinimumDistance.h
Go to the documentation of this file.
1 #ifndef _TwoTrackMinimumDistance_H_
2 #define _TwoTrackMinimumDistance_H_
3 
9 
20 public:
21  enum Mode { FastMode = 0, SlowMode = 1 };
22 
24  theModus = m;
25  status_ = false;
26  };
28 
29  bool calculate(const TrajectoryStateOnSurface& sta, const TrajectoryStateOnSurface& stb) override;
30 
31  bool calculate(const FreeTrajectoryState& sta, const FreeTrajectoryState& stb) override;
32 
33  virtual bool calculate(const GlobalTrajectoryParameters& sta, const GlobalTrajectoryParameters& stb);
34 
35  bool status() const override { return status_; }
36 
41  std::pair<GlobalPoint, GlobalPoint> points() const override;
42 
44  GlobalPoint crossingPoint() const override;
45 
47  float distance() const override;
48 
52  TwoTrackMinimumDistance* clone() const override { return new TwoTrackMinimumDistance(*this); }
53 
54  double firstAngle() const;
55  double secondAngle() const;
56  std::pair<double, double> pathLength() const;
57 
58 private:
59  enum Charge { hh, hl, ll };
66  bool status_;
67  std::pair<GlobalPoint, GlobalPoint> points_;
68 
72 };
73 
74 #endif
std::pair< GlobalPoint, GlobalPoint > points() const override
std::pair< GlobalPoint, GlobalPoint > points_
bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb) override
TwoTrackMinimumDistanceHelixLine theTTMDhl
bool pointsHelixLine(const GlobalTrajectoryParameters &sta, const GlobalTrajectoryParameters &stb)
TwoTrackMinimumDistance * clone() const override
TwoTrackMinimumDistance(const Mode m=FastMode)
#define dso_internal
Definition: Visibility.h:13
bool status() const override
TwoTrackMinimumDistanceHelixHelix theTTMDhh
bool pointsLineLine(const GlobalTrajectoryParameters &sta, const GlobalTrajectoryParameters &stb)
GlobalPoint crossingPoint() const override
float distance() const override
ClosestApproachInRPhi theIniAlgo
std::pair< double, double > pathLength() const
bool pointsHelixHelix(const GlobalTrajectoryParameters &sta, const GlobalTrajectoryParameters &stb)
TwoTrackMinimumDistanceLineLine theTTMDll