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;
18 //The Altro File "AltroFormatDDL.dat" is built from "AliTPCDDL.dat"
22 //The file "AltroFormatDDL.dat" is converted in a txt file "AltroFormatDDL.txt"
23 //that is used for debugging
24 u->ReadAltroFormat("AltroFormatDDL.txt","AltroFormatDDL.dat");
29 //Tables are created and stored in as sequence of binary files
30 u->CreateTables("AltroFormatDDL.dat",NumTable);
34 cout<<"Insert the event number:";
39 //Slices are built here
41 util->RawData(LDCsNumber,eventNumber);
47 //An Altro File is created from the slides
48 cout<<"slice control"<<endl;
49 util->RawDataAltroDecode(LDCsNumber,eventNumber,0);
50 ///The Altro file AltroDDLRecomposed.dat is converted in a txt file AltroDDLRecomposed.txt
51 //This file must be equal to the ones created above.
52 u->ReadAltroFormat("AltroDDLRecomposed.txt","AltroDDLRecomposed.dat");
57 cout<<"Slice Compression"<<endl;
58 //Slices are compressed here using the tables created above or an optimized set of tables
59 //(Tables file for Huffman coding are required)
61 util->RawDataCompDecompress(LDCsNumber,eventNumber,0);
68 util->RawDataCompDecompress(LDCsNumber,eventNumber,1);
74 //SLICE DECOMPRESSED CHECKING
75 //A new Altro file is created from the decompressed slides
76 util->RawDataAltroDecode(LDCsNumber,eventNumber,1);
77 //Convertion of the Altro file AltroDDLRecomposedDec.dat in a txt file AltroDDLRecomposedDec.txt
78 //Useful for debugging
79 u->ReadAltroFormat("AltroDDLRecomposedDec.txt","AltroDDLRecomposedDec.dat");