]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCDDLRawData.C
- The default value of useFastDecoder in ctor changed to kFALSE,
[u/mrichter/AliRoot.git] / TPC / AliTPCDDLRawData.C
CommitLineData
b62e2a95 1#if !defined(__CINT__)
2e9f335b 2
3#include "AliTPCDDLRawData.h"
4#include "AliTPCCompression.h"
2e9f335b 5#endif
6
7
04fa961a 8void AliTPCDDLRawData(Int_t eventNumber=0, Int_t LDCsNumber=12){
2e9f335b 9 AliTPCDDLRawData *util=new AliTPCDDLRawData();
10 AliTPCCompression *u=new AliTPCCompression();
11 TStopwatch timer;
2e9f335b 12 static const Int_t NumTable=5;
c9bd9d3d 13
14 util->SetVerbose(1);
15 u->SetVerbose(1);
2e9f335b 16
2e9f335b 17 //The Altro File "AltroFormatDDL.dat" is built from "AliTPCDDL.dat"
04fa961a 18 //util->RawDataAltro();
c9bd9d3d 19
20 /*
2e9f335b 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");
c9bd9d3d 24 */
25
26 /*
27 //TABLES CREATION
2e9f335b 28 //Tables are created and stored in as sequence of binary files
29 u->CreateTables("AltroFormatDDL.dat",NumTable);
c9bd9d3d 30 */
31
32
04fa961a 33 while (eventNumber<=0){
34 cout<<"Insert the event number:";
35 cin>>eventNumber;
36 cout<<endl;
37 }
2e9f335b 38
2e9f335b 39 //SLICE CREATION
40 //Slices are built here
41 timer.Start();
c9bd9d3d 42 util->RawData(LDCsNumber,eventNumber);
2e9f335b 43 timer.Stop();
44 timer.Print();
c9bd9d3d 45
46 /*
2e9f335b 47 //SLICE CHECKING
48 //An Altro File is created from the slides
a79660fb 49 cout<<"slice control"<<endl;
c9bd9d3d 50 util->RawDataAltroDecode(LDCsNumber,eventNumber,0);
2e9f335b 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");
c9bd9d3d 54 */
b62e2a95 55
c9bd9d3d 56
2e9f335b 57 //SLICE COMPRESSION
a79660fb 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)
2e9f335b 61 timer.Start();
c9bd9d3d 62 util->RawDataCompDecompress(LDCsNumber,eventNumber,0);
2e9f335b 63 timer.Stop();
64 timer.Print();
c9bd9d3d 65
66 /*
2e9f335b 67 //SLICE DECOMPRESSION
68 timer.Start();
c9bd9d3d 69 util->RawDataCompDecompress(LDCsNumber,eventNumber,1);
2e9f335b 70 timer.Stop();
71 timer.Print();
c9bd9d3d 72 */
9f992f70 73
c9bd9d3d 74 /*
2e9f335b 75 //SLICE DECOMPRESSED CHECKING
76 //A new Altro file is created from the decompressed slides
c9bd9d3d 77 util->RawDataAltroDecode(LDCsNumber,eventNumber,1);
2e9f335b 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");
c9bd9d3d 81 */
2e9f335b 82 delete util;
83 delete u;
84 return;
85}