return p[1];
}
-Double_t AliExternalTrackParam::Pz() const {
- //---------------------------------------------------------------------
- // Returns z-component of momentum
- // Result for (nearly) straight tracks is meaningless !
- //---------------------------------------------------------------------
- return Pt()*GetTgl();
-}
-
Double_t AliExternalTrackParam::Xv() const {
//---------------------------------------------------------------------
// Returns x-component of first track point
return r[1];
}
-Double_t AliExternalTrackParam::Zv() const {
- //---------------------------------------------------------------------
- // Returns z-component of first track point
- //---------------------------------------------------------------------
-
- Double_t r[3]={0.,0.,0.};
- GetXYZ(r);
-
- return r[2];
-}
-
Double_t AliExternalTrackParam::Theta() const {
// return theta angle of momentum
// additional functions for AliVParticle
Double_t Px() const;
Double_t Py() const;
- Double_t Pz() const;
+ Double_t Pz() const {Pt()*GetTgl();}
Double_t Pt() const { return TMath::Abs(GetSignedPt()); }
Double_t P() const { return GetP(); }
Bool_t PxPyPz(Double_t p[3]) const { return GetPxPyPz(p); }
Double_t Xv() const;
Double_t Yv() const;
- Double_t Zv() const;
+ Double_t Zv() const {return GetZ();}
Bool_t XvYvZv(Double_t x[3]) const { return GetXYZ(x); }
Double_t OneOverPt() const { return 1./Pt(); }