From 83b96ab7d3d2c0d15d4f519200a061ba1a54b6f4 Mon Sep 17 00:00:00 2001 From: hristov Date: Fri, 19 Jul 2002 10:54:38 +0000 Subject: [PATCH] Using ios or ios_base with different compilers --- PHOS/AliPHOSPIDv1.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/PHOS/AliPHOSPIDv1.cxx b/PHOS/AliPHOSPIDv1.cxx index 574b7b70942..07c52c3e184 100644 --- a/PHOS/AliPHOSPIDv1.cxx +++ b/PHOS/AliPHOSPIDv1.cxx @@ -510,8 +510,12 @@ void AliPHOSPIDv1::SetParameters() fParameters100 = new TMatrixD(22,3) ; fParameters = new TMatrixD(22,3) ; +#if defined (__GNUC__)&&(__GNUC__ >= 3) ifstream paramFile5(fFileNamePar5, ios_base::out) ; - +#else + ifstream paramFile5(fFileNamePar5, ios::out) ; +#endif + Int_t i,j ; for(i = 0; i< 21; i++){ @@ -521,7 +525,11 @@ void AliPHOSPIDv1::SetParameters() } paramFile5.close(); +#if defined (__GNUC__)&&(__GNUC__ >= 3) ifstream paramFile100(fFileNamePar100, ios_base::out) ; +#else + ifstream paramFile100(fFileNamePar100, ios::out) ; +#endif Int_t l,k ; @@ -532,7 +540,11 @@ void AliPHOSPIDv1::SetParameters() } paramFile100.close(); +#if defined (__GNUC__)&&(__GNUC__ >= 3) ifstream paramFile(fFileNamePar100, ios_base::out) ; +#else + ifstream paramFile(fFileNamePar100, ios::out) ; +#endif Int_t h,n; for(h = 0; h< 22; h++){ for(n = 0; n< 3; n++){ -- 2.39.3