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();
16 //verbose level can be: 0=silent 1=few messages 2=pedantic output
19 util->CreateTables(fSource,NumTable);
20 //util->ReadAltroFormat("File1.txt","AltroFormat.dat");
21 //The source file is compressed
24 util->CompressDataOptTables(NumTable,fSource,fDest);
29 //The Compressed file is decompressed
31 util->DecompressDataOptTables(NumTable,fDest);
34 //util->ReadAltroFormat("File2.txt","SourceDecompressed.dat");