CMS 3D CMS Logo

IdealHelixParameters.h
Go to the documentation of this file.
1 #ifndef IDEALHELIXPARAMETERS_H
2 #define IDEALHELIXPARAMETERS_H
3 
8 
9 /*
10 Given a track, evaluates the status of the track finding in the XY plane
11 the point of tangent of the circle to the reference point(in general the PrimaryVertex or the BeamSpot)
12 
13 The approach is the following.
14 Given a track,
15 -extract the innermomentum at the innerpoint
16 -evalaute the radius of curvature and the center of the circle
17 -solving geometrical equation, evaluate the point of tangence to the circle, starting from the PV
18 -evaluate the status at this point of tangence T
19 
20  */
22 
23  public:
24 
27  _refPoint (math::XYZVector(0,0,0)),
28  _tangentPoint (math::XYZVector(0,0,0)),
31 
32  inline void setMagnField(const MagneticField* magnField){_magnField=magnField;}
33  inline void setData(const reco::Track* track, const math::XYZVector& refPoint=math::XYZVector(0,0,0));
34  inline void setData(const reco::Track* track, const math::XYZPoint& ref);
35 
36  inline bool isTangentPointDistanceLessThan(float rmax, const reco::Track* track, const math::XYZVector& refPoint);
37 
41  float GetTransverseIPAtTangent() const {return _transverseIP;}
42  float GetRotationAngle() const {return _rotationAngle;}
43 
44  private:
45 
46  inline void calculate();
47  inline void evalCircleCenter();
48  inline void evalTangentPoint();
49  inline void evalMomentumatTangentPoint();
50 
53  float _radius;
60 
61  // std::stringstream ss;
62 
63 };
64 #include "IdealHelixParameters.icc"
65 
66 #endif
void setData(const reco::Track *track, const math::XYZVector &refPoint=math::XYZVector(0, 0, 0))
float GetRotationAngle() const
math::XYZVector GetCircleCenter() const
const reco::Track * _track
void setMagnField(const MagneticField *magnField)
#define nullptr
math::XYZVector GetMomentumAtTangentPoint() const
math::XYZVector _MomentumAtTangentPoint
math::XYZVector XYZVector
math::XYZVector GetTangentPoint() const
float GetTransverseIPAtTangent() const
Definition: Error.h:16
math::XYZVector _circleCenter
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
const MagneticField * _magnField
bool isTangentPointDistanceLessThan(float rmax, const reco::Track *track, const math::XYZVector &refPoint)
void evalMomentumatTangentPoint()
math::XYZVector _tangentPoint