1 #if !defined(__CINT__) || defined(__MAKECINT__)
3 #include "AliTPCDDLRawData.h"
4 #include "AliTPCCompression.h"
9 void AliTPCDDLRawData(Int_t LDCsNumber=12){
10 AliTPCDDLRawData *util=new AliTPCDDLRawData();
11 AliTPCCompression *u=new AliTPCCompression();
14 static const Int_t NumTable=5;
17 //The Altro File "AltroFormatDDL.dat" is built from "AliTPCDDL.dat"
20 //The file "AltroFormatDDL.dat" is converted in a txt file "AltroFormatDDL.txt"
21 //that is used for debugging
22 u->ReadAltroFormat("AltroFormatDDL.txt","AltroFormatDDL.dat");
23 //Tables are created and stored in as sequence of binary files
24 u->CreateTables("AltroFormatDDL.dat",NumTable);
29 //Slices are built here
31 util->RawData(LDCsNumber);
38 //An Altro File is created from the slides
39 util->RawDataAltroDecode(LDCsNumber,0);
40 ///The Altro file AltroDDLRecomposed.dat is converted in a txt file AltroDDLRecomposed.txt
41 //This file must be equal to the ones created above.
42 u->ReadAltroFormat("AltroDDLRecomposed.txt","AltroDDLRecomposed.dat");
47 //Slices are compressed here using the tables created above or an optimized set of tables (Tables file for Huffman coding are required)
49 util->RawDataCompDecompress(LDCsNumber,0);
57 util->RawDataCompDecompress(LDCsNumber,1);
63 //SLICE DECOMPRESSED CHECKING
64 //A new Altro file is created from the decompressed slides
65 util->RawDataAltroDecode(LDCsNumber,1);
66 //Convertion of the Altro file AltroDDLRecomposedDec.dat in a txt file AltroDDLRecomposedDec.txt
67 //Useful for debugging
68 u->ReadAltroFormat("AltroDDLRecomposedDec.txt","AltroDDLRecomposedDec.dat");