3 #include "AliTPCDDLRawData.h"
4 #include "AliTPCCompression.h"
7 /// \file AliTPCDDLRawData.C
9 void AliTPCDDLRawData(Int_t eventNumber=0, Int_t LDCsNumber=12){
10 AliTPCDDLRawData *util=new AliTPCDDLRawData();
11 AliTPCCompression *u=new AliTPCCompression();
13 static const Int_t NumTable=5;
18 // The Altro File "AltroFormatDDL.dat" is built from "AliTPCDDL.dat"
19 // util->RawDataAltro();
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 while (eventNumber<=0){
35 cout<<"Insert the event number:";
41 //Slices are built here
43 util->RawData(LDCsNumber,eventNumber);
49 //An Altro File is created from the slides
50 cout<<"slice control"<<endl;
51 util->RawDataAltroDecode(LDCsNumber,eventNumber,0);
52 ///The Altro file AltroDDLRecomposed.dat is converted in a txt file AltroDDLRecomposed.txt
53 //This file must be equal to the ones created above.
54 u->ReadAltroFormat("AltroDDLRecomposed.txt","AltroDDLRecomposed.dat");
59 cout<<"Slice Compression"<<endl;
60 //Slices are compressed here using the tables created above or an optimized set of tables
61 //(Tables file for Huffman coding are required)
63 util->RawDataCompDecompress(LDCsNumber,eventNumber,0);
70 util->RawDataCompDecompress(LDCsNumber,eventNumber,1);
76 //SLICE DECOMPRESSED CHECKING
77 //A new Altro file is created from the decompressed slides
78 util->RawDataAltroDecode(LDCsNumber,eventNumber,1);
79 //Convertion of the Altro file AltroDDLRecomposedDec.dat in a txt file AltroDDLRecomposedDec.txt
80 //Useful for debugging
81 u->ReadAltroFormat("AltroDDLRecomposedDec.txt","AltroDDLRecomposedDec.dat");