MarlinKinfit  0.4.0
JBLHelix.h
Go to the documentation of this file.
1 
10 #ifndef __JBLHELIX_H
11 #define __JBLHELIX_H
12 
13 
14 class ThreeVector;
15 class TwoVector;
16 
17 // Class JBLHelix
19 
33 class JBLHelix {
34  public:
36  JBLHelix (double kappa,
37  double phi0,
38  double theta,
39  double dca,
40  double z0
41  );
43  JBLHelix (double par_[]
44  );
46  ~JBLHelix();
47 
49  double getPar (int i
50  );
52  JBLHelix& setPar (int i,
53  double par_
54  );
55 
57 
69  int getClosestApproach (const JBLHelix& h1,
70  double& s0,
71  double& s1,
72  double& s02nd,
73  double& s12nd
74  ) const;
76  double getClosestS (const TwoVector& p
77  ) const;
79  double getClosestS (const ThreeVector& p
80  ) const;
82  void getTrajectoryPointEx (double s,
83  ThreeVector& p
84  ) const;
87  ) const;
89  double getTrajectoryZ (double s
90  ) const;
91 
93  void getCenterPointEx (TwoVector& p
94  ) const;
96  TwoVector getCenterPoint () const;
97 
99  double getNormalS (double s) const;
100 
101  private:
102  enum {NPAR = 5};
103  double par[NPAR];
104 };
105 
106 #endif // __JBLHELIX_H
double getTrajectoryZ(double s) const
Get z value along trajectory.
Definition: JBLHelix.cc:157
TwoVector getCenterPoint() const
Get center point of trajectory.
Definition: JBLHelix.cc:172
JBLHelix(double kappa, double phi0, double theta, double dca, double z0)
Constructor from (kappa, phi0, theta, dca, z0)
Definition: JBLHelix.cc:17
JBLHelix & setPar(int i, double par_)
Set value of parameter i.
Definition: JBLHelix.cc:43
double getNormalS(double s) const
Get smallest s that corresponds to same (x, y)
Definition: JBLHelix.cc:178
ThreeVector getTrajectoryPoint(double s) const
Get point along trajectory.
Definition: JBLHelix.cc:161
int getClosestApproach(const JBLHelix &h1, double &s0, double &s1, double &s02nd, double &s12nd) const
Get arc lengths for point where another helix comes closest.
Definition: JBLHelix.cc:49
void getCenterPointEx(TwoVector &p) const
Get center point of trajectory into existing 2-vector.
Definition: JBLHelix.cc:167
double getClosestS(const TwoVector &p) const
Return s of point on helix where helix comes closest in (x,y) to given point.
Definition: JBLHelix.cc:108
double getPar(int i)
Get value of parameter i.
Definition: JBLHelix.cc:38
~JBLHelix()
Destructor.
Definition: JBLHelix.cc:34
Definition: TwoVector.h:18
void getTrajectoryPointEx(double s, ThreeVector &p) const
Get point along trajectory into existing 3-vector.
Definition: JBLHelix.cc:138
A helix, parametrized by (kappa, phi0, theta, dca, z0)
Definition: JBLHelix.h:33
Definition: ThreeVector.h:18