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
23 cout<<"Creating a txt file from an Altro format file"<<endl;
24 u->ReadAltroFormat("AltroFormatDDL.txt","AltroFormatDDL.dat");
26 //Tables are created and stored in as sequence of binary files
27 u->CreateTables("AltroFormatDDL.dat",NumTable);
32 //Slices are built here
34 util->RawData(LDCsNumber);
40 //An Altro File is created from the slides
41 cout<<"slice control"<<endl;
42 util->RawDataAltroDecode(LDCsNumber,0);
43 ///The Altro file AltroDDLRecomposed.dat is converted in a txt file AltroDDLRecomposed.txt
44 //This file must be equal to the ones created above.
45 cout<<"Creating a txt file from an Altro format file"<<endl;
46 u->ReadAltroFormat("AltroDDLRecomposed.txt","AltroDDLRecomposed.dat");
51 cout<<"Slice Compression"<<endl;
52 //Slices are compressed here using the tables created above or an optimized set of tables
53 //(Tables file for Huffman coding are required)
55 util->RawDataCompDecompress(LDCsNumber,0);
62 util->RawDataCompDecompress(LDCsNumber,1);
68 //SLICE DECOMPRESSED CHECKING
69 //A new Altro file is created from the decompressed slides
70 util->RawDataAltroDecode(LDCsNumber,1);
71 //Convertion of the Altro file AltroDDLRecomposedDec.dat in a txt file AltroDDLRecomposedDec.txt
72 //Useful for debugging
73 cout<<"Creating a txt file from an Altro format file"<<endl;
74 u->ReadAltroFormat("AltroDDLRecomposedDec.txt","AltroDDLRecomposedDec.dat");