X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=TPC%2FAliTPCCompression.cxx;h=dc031e3d13a72ec8fc67e0948cc4e403d4d5f215;hp=0f265c85f98d8b04849e7eb9508a0e2002dfe17a;hb=30c1018ed2b0e5ba76bf85a7a2d6695a50bf0f4a;hpb=cbc87b107746e4f0b5316dafdaf21c260c18c2b9 diff --git a/TPC/AliTPCCompression.cxx b/TPC/AliTPCCompression.cxx index 0f265c85f98..dc031e3d13a 100644 --- a/TPC/AliTPCCompression.cxx +++ b/TPC/AliTPCCompression.cxx @@ -12,7 +12,7 @@ * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ -/* $Id:*/ +/* $Id$ */ // This class contains the implementation of the // compression and decompression algorithms @@ -233,8 +233,12 @@ Int_t AliTPCCompression::StoreTables(AliTPCHTable* table[],const Int_t NumTable) char filename[15]; ofstream fTable; for(Int_t k=0;kSize(); //Table dimension is written into a file fTable.write((char*)(&dim),sizeof(Int_t)); @@ -357,7 +361,11 @@ Int_t AliTPCCompression::RetrieveTables(AliTPCHTable* table[],Int_t NumTable){ for(Int_t k=0;kSize(); @@ -555,7 +567,11 @@ Int_t AliTPCCompression::CompressDataOptTables(Int_t NumTable,const char* fSourc AliTPCHTable **table = new AliTPCHTable*[NumTable]; RetrieveTables(table,NumTable); //the output file is open +#ifndef __DECCXX f.open(fDest,ios::binary|ios::out); +#else + f.open(fDest,ios::out); +#endif // Source file is open AliTPCBuffer160 buff(fSource,0); //coded words are written into a file @@ -785,7 +801,11 @@ void AliTPCCompression::CreateTreesFromFile(AliTPCHNode *RootNode[],const Int_t RootNode[k]=new AliTPCHNode(); //RootNode is the root of the tree Int_t dim=0;//this variable contains the table dimension sprintf(filename,"Table%d.dat",k); +#ifndef __DECCXX fTable.open(filename,ios::binary); +#else + fTable.open(filename); +#endif fTable.read((char*)(&dim),sizeof(Int_t)); if (fVerbose) cout<<"Table dimension: "<