From e5d53b83bc0a449b6ea70519c6b3082aef86e269 Mon Sep 17 00:00:00 2001 From: fca Date: Thu, 13 Mar 2008 16:55:35 +0000 Subject: [PATCH] Adding static_cast to keep the compiler happy --- PWG2/FEMTOSCOPY/AliFemto/AliFemtoParticle.cxx | 12 ++---------- PWG2/RESONANCES/AliRsnReader.cxx | 2 +- PWG2/RESONANCES/AliRsnSelectorRL.cxx | 2 +- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/PWG2/FEMTOSCOPY/AliFemto/AliFemtoParticle.cxx b/PWG2/FEMTOSCOPY/AliFemto/AliFemtoParticle.cxx index 19dca545b55..39732f7376c 100644 --- a/PWG2/FEMTOSCOPY/AliFemto/AliFemtoParticle.cxx +++ b/PWG2/FEMTOSCOPY/AliFemto/AliFemtoParticle.cxx @@ -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 -#else - #include -#endif - - -#include "TMath.h" -using namespace TMath; +#include "AliFemtoXi.h" double AliFemtoParticle::fgPrimPimPar0= 9.05632e-01; double AliFemtoParticle::fgPrimPimPar1= -2.26737e-01; diff --git a/PWG2/RESONANCES/AliRsnReader.cxx b/PWG2/RESONANCES/AliRsnReader.cxx index 376a33d85c3..c8ac0c24354 100644 --- a/PWG2/RESONANCES/AliRsnReader.cxx +++ b/PWG2/RESONANCES/AliRsnReader.cxx @@ -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(AliPID::kSPECIES), prob, idx); Int_t imax = idx[0]; Double_t maxprob = prob[imax]; if (maxprob >= fProbThreshold) { diff --git a/PWG2/RESONANCES/AliRsnSelectorRL.cxx b/PWG2/RESONANCES/AliRsnSelectorRL.cxx index 189369d7ace..582d6a04a9d 100644 --- a/PWG2/RESONANCES/AliRsnSelectorRL.cxx +++ b/PWG2/RESONANCES/AliRsnSelectorRL.cxx @@ -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(AliPID::kSPECIES), prob, idx); Int_t imax = idx[0]; Double_t maxprob = prob[imax]; if (maxprob >= fProbThreshold) { -- 2.39.3