3 #include "AliTPCDDLRawData.h"
4 #include "AliTPCCompression.h"
8 void AliTPCDDLRawData(Int_t LDCsNumber=12){
9 AliTPCDDLRawData *util=new AliTPCDDLRawData();
10 AliTPCCompression *u=new AliTPCCompression();
13 static const Int_t NumTable=5;
16 //The Altro File "AltroFormatDDL.dat" is built from "AliTPCDDL.dat"
19 //The file "AltroFormatDDL.dat" is converted in a txt file "AltroFormatDDL.txt"
20 //that is used for debugging
22 cout<<"Creating a txt file from an Altro format file"<<endl;
23 u->ReadAltroFormat("AltroFormatDDL.txt","AltroFormatDDL.dat");
25 //Tables are created and stored in as sequence of binary files
26 u->CreateTables("AltroFormatDDL.dat",NumTable);
31 //Slices are built here
33 util->RawData(LDCsNumber);
39 //An Altro File is created from the slides
40 cout<<"slice control"<<endl;
41 util->RawDataAltroDecode(LDCsNumber,0);
42 ///The Altro file AltroDDLRecomposed.dat is converted in a txt file AltroDDLRecomposed.txt
43 //This file must be equal to the ones created above.
44 cout<<"Creating a txt file from an Altro format file"<<endl;
45 u->ReadAltroFormat("AltroDDLRecomposed.txt","AltroDDLRecomposed.dat");
50 cout<<"Slice Compression"<<endl;
51 //Slices are compressed here using the tables created above or an optimized set of tables
52 //(Tables file for Huffman coding are required)
54 util->RawDataCompDecompress(LDCsNumber,0);
61 util->RawDataCompDecompress(LDCsNumber,1);
67 //SLICE DECOMPRESSED CHECKING
68 //A new Altro file is created from the decompressed slides
69 util->RawDataAltroDecode(LDCsNumber,1);
70 //Convertion of the Altro file AltroDDLRecomposedDec.dat in a txt file AltroDDLRecomposedDec.txt
71 //Useful for debugging
72 cout<<"Creating a txt file from an Altro format file"<<endl;
73 u->ReadAltroFormat("AltroDDLRecomposedDec.txt","AltroDDLRecomposedDec.dat");