1 #if !defined(__CINT__) || defined(__MAKECINT__)
4 #include "AliTPCCompression.h"
8 This macro compress and decompress an Altro format file using Huffman technique with 5 tables
11 void AliTPCH5OptimizedTables(const char* fSource="AltroFormat.dat",const char* fDest="CompressedData.dat"){
12 cout<<"Source file: "<<fSource<<" Output file: "<<fDest<<endl;
13 static const Int_t NumTable=5;
14 AliTPCCompression *util = new AliTPCCompression();
18 util->CreateTables(fSource,NumTable);
19 //util->ReadAltroFormat("File1.txt","AltroFormat.dat");
20 //The source file is compressed
23 util->CompressDataOptTables(NumTable,fSource,fDest);
28 //The Compressed file is decompressed
30 util->DecompressDataOptTables(NumTable,fDest);
33 //util->ReadAltroFormat("File2.txt","SourceDecompressed.dat");