]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correction in SetOneOverPt (discovered by Simone Schuchmann)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Jun 2009 12:31:07 +0000 (12:31 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Jun 2009 12:31:07 +0000 (12:31 +0000)
STEER/AliAODTrack.h

index 1275b0b3fce16db2fbdc9d00a38e1202d84ecbc9..7d7ccfb503933921ece21065059957ca822cf27b 100644 (file)
@@ -212,7 +212,7 @@ class AliAODTrack : public AliVTrack {
   void SetUsedForVtxFit(Bool_t used = kTRUE) { used ? SetBit(kUsedForVtxFit) : ResetBit(kUsedForVtxFit); }
   void SetUsedForPrimVtxFit(Bool_t used = kTRUE) { used ? SetBit(kUsedForPrimVtxFit) : ResetBit(kUsedForPrimVtxFit); }
 
-  void SetOneOverPt(Double_t oneOverPt) { fMomentum[0] = oneOverPt; }
+  void SetOneOverPt(Double_t oneOverPt) { fMomentum[0] = 1. / oneOverPt; }
   void SetPt(Double_t pt) { fMomentum[0] = pt; };
   void SetPhi(Double_t phi) { fMomentum[1] = phi; }
   void SetTheta(Double_t theta) { fMomentum[2] = theta; }