Browse Source

fixed bug in StRoot/StFemtoEvent/StFemtoTrack.cxx in GetMassSqr method mBeta -> GetBeta()

Nikita Ermakov 6 years ago
parent
commit
fc81c00f56
1 changed files with 2 additions and 1 deletions
  1. 2 1
      StRoot/StFemtoEvent/StFemtoTrack.cxx

+ 2 - 1
StRoot/StFemtoEvent/StFemtoTrack.cxx

@@ -130,9 +130,10 @@ Float_t StFemtoTrack::GetMassSqr() const {
 
   //Calculate squared mass of the track via TOF beta measurement
   Float_t mSqr = -999.;
+  Float_t beta = GetBeta();
   if(mBeta > 0.) {
     Float_t ptot = TMath::Sqrt(mMomX*mMomX + mMomY*mMomY + mMomZ*mMomZ);
-    mSqr = ptot*ptot * (1./(mBeta*mBeta) - 1.);
+    mSqr = ptot*ptot * (1./(beta*beta) - 1.);
   }
 
   return mSqr;