Adding static_cast to keep the compiler happy
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Mar 2008 16:55:35 +0000 (16:55 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Mar 2008 16:55:35 +0000 (16:55 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoParticle.cxx
PWG2/RESONANCES/AliRsnReader.cxx
PWG2/RESONANCES/AliRsnSelectorRL.cxx

index 19dca545b5513c9dc827aa04c765f6baf4ec8477..39732f7376c9c3df415c186cdccb4a2dcb12bf1b 100644 (file)
@@ -7,17 +7,9 @@
 // to the detector parts, e.g. entrance and exit points.                 //
 //                                                                       //
 ///////////////////////////////////////////////////////////////////////////
+#include "AliFemtoKink.h"
 #include "AliFemtoParticle.h"
-//#include "math_constants.h"
-#ifdef __CC5__
-  #include <math.h>
-#else
-  #include <cmath>
-#endif
-
-
-#include "TMath.h"
-using namespace TMath;
+#include "AliFemtoXi.h"
 
 double AliFemtoParticle::fgPrimPimPar0= 9.05632e-01;
 double AliFemtoParticle::fgPrimPimPar1= -2.26737e-01;
index 376a33d85c3c229a9c6c276871989c5fc87db1e0..c8ac0c24354c3018261650b9116d1ba1fd264278 100644 (file)
@@ -170,7 +170,7 @@ void AliRsnReader::Identify(AliRsnDaughter &track)
                        Double_t *prob = GetPIDprobabilities(track);
                        if (!prob) track.SetPDG(0);
                        Int_t idx[AliPID::kSPECIES];
-                       TMath::Sort(AliPID::kSPECIES, prob, idx);
+                       TMath::Sort(static_cast<Int_t>(AliPID::kSPECIES), prob, idx);
                        Int_t imax = idx[0];
                        Double_t maxprob = prob[imax];
                        if (maxprob >= fProbThreshold) {
index 189369d7ace6ef2255b1da63bef67cc1338cf884..582d6a04a9d96af97035d6da8e23ada0ca53e623 100644 (file)
@@ -177,7 +177,7 @@ void AliRsnSelectorRL::Identify(AliRsnDaughter &track)
              Double_t *prob = GetPIDprobabilities(track);
          if (!prob) track.SetPDG(0);
              Int_t idx[AliPID::kSPECIES];
-         TMath::Sort(AliPID::kSPECIES, prob, idx);
+             TMath::Sort(static_cast<Int_t>(AliPID::kSPECIES), prob, idx);
              Int_t imax = idx[0];
          Double_t maxprob = prob[imax];
              if (maxprob >= fProbThreshold) {