3 #include "AliTPCDDLRawData.h"
4 #include "AliTPCCompression.h"
8 void AliTPCDDLRawData(Int_t eventNumber=0, Int_t LDCsNumber=12){
9 AliTPCDDLRawData *util=new AliTPCDDLRawData();
10 AliTPCCompression *u=new AliTPCCompression();
12 static const Int_t NumTable=5;
17 //The Altro File "AltroFormatDDL.dat" is built from "AliTPCDDL.dat"
18 //util->RawDataAltro();
21 //The file "AltroFormatDDL.dat" is converted in a txt file "AltroFormatDDL.txt"
22 //that is used for debugging
23 u->ReadAltroFormat("AltroFormatDDL.txt","AltroFormatDDL.dat");
28 //Tables are created and stored in as sequence of binary files
29 u->CreateTables("AltroFormatDDL.dat",NumTable);
33 while (eventNumber<=0){
34 cout<<"Insert the event number:";
40 //Slices are built here
42 util->RawData(LDCsNumber,eventNumber);
48 //An Altro File is created from the slides
49 cout<<"slice control"<<endl;
50 util->RawDataAltroDecode(LDCsNumber,eventNumber,0);
51 ///The Altro file AltroDDLRecomposed.dat is converted in a txt file AltroDDLRecomposed.txt
52 //This file must be equal to the ones created above.
53 u->ReadAltroFormat("AltroDDLRecomposed.txt","AltroDDLRecomposed.dat");
58 cout<<"Slice Compression"<<endl;
59 //Slices are compressed here using the tables created above or an optimized set of tables
60 //(Tables file for Huffman coding are required)
62 util->RawDataCompDecompress(LDCsNumber,eventNumber,0);
69 util->RawDataCompDecompress(LDCsNumber,eventNumber,1);
75 //SLICE DECOMPRESSED CHECKING
76 //A new Altro file is created from the decompressed slides
77 util->RawDataAltroDecode(LDCsNumber,eventNumber,1);
78 //Convertion of the Altro file AltroDDLRecomposedDec.dat in a txt file AltroDDLRecomposedDec.txt
79 //Useful for debugging
80 u->ReadAltroFormat("AltroDDLRecomposedDec.txt","AltroDDLRecomposedDec.dat");