CMS 3D CMS Logo

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:
18  GsfTangent() : position_(0., 0., 0.), momentum_(0., 0., 0.), deltaP_(0.), sigDeltaP_(0.) {}
21  : position_(position), momentum_(momentum) {
22  deltaP_ = deltaP.value();
23  sigDeltaP_ = deltaP.error();
24  }
25  const math::XYZPoint& position() const { return position_; }
26  const math::XYZVector& momentum() const { return momentum_; }
29 
30  private:
33  double deltaP_;
34  double sigDeltaP_;
35  };
36 } // namespace reco
37 #endif
math::XYZVector momentum_
Definition: GsfTangent.h:32
double error() const
Definition: Measurement1D.h:27
Measurement1D deltaP() const
estimated deltaP (p_out-p_in)
Definition: GsfTangent.h:28
const math::XYZPoint & position() const
Definition: GsfTangent.h:25
double sigDeltaP_
Definition: GsfTangent.h:34
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
double value() const
Definition: Measurement1D.h:25
GsfTangent(const math::XYZPoint &position, const math::XYZVector &momentum, const Measurement1D &deltaP)
constructor from position, momentum and estimated deltaP
Definition: GsfTangent.h:20
fixed size matrix
const math::XYZVector & momentum() const
Definition: GsfTangent.h:26
math::XYZPoint position_
Definition: GsfTangent.h:31
GsfTangent()
default constructor
Definition: GsfTangent.h:18