CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfTangent.h
Go to the documentation of this file.
1 #ifndef GsfTrackReco_GsfTangent_h
2 #define GsfTrackReco_GsfTangent_h
3 
12 
13 namespace reco {
14 
15  class GsfTangent {
16  public:
19  position_(0.,0.,0.), momentum_(0.,0.,0.),
20  deltaP_(0.), sigDeltaP_(0.) {}
24  const Measurement1D& deltaP) :
25  position_(position), momentum_(momentum) {
26  deltaP_ = deltaP.value();
27  sigDeltaP_ = deltaP.error();
28  }
29  const math::XYZPoint& position () const {return position_;}
30  const math::XYZVector& momentum () const {return momentum_;}
32  Measurement1D deltaP () const {
34  }
35 
36  private:
39  double deltaP_;
40  double sigDeltaP_;
41  };
42 }
43 #endif
math::XYZVector momentum_
Definition: GsfTangent.h:38
double error() const
Definition: Measurement1D.h:30
Measurement1D deltaP() const
estimated deltaP (p_out-p_in)
Definition: GsfTangent.h:32
const math::XYZPoint & position() const
Definition: GsfTangent.h:29
double sigDeltaP_
Definition: GsfTangent.h:40
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
double value() const
Definition: Measurement1D.h:28
GsfTangent(const math::XYZPoint &position, const math::XYZVector &momentum, const Measurement1D &deltaP)
constructor from position, momentum and estimated deltaP
Definition: GsfTangent.h:22
const math::XYZVector & momentum() const
Definition: GsfTangent.h:30
math::XYZPoint position_
Definition: GsfTangent.h:37
GsfTangent()
default constructor
Definition: GsfTangent.h:18