]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCDDLRawData.C
Code for unified TPC/TRD tracking (S.Radomski)
[u/mrichter/AliRoot.git] / TPC / AliTPCDDLRawData.C
CommitLineData
2e9f335b 1#if !defined(__CINT__) || defined(__MAKECINT__)
2
3#include "AliTPCDDLRawData.h"
4#include "AliTPCCompression.h"
5#include <alles.h>
6#endif
7
8
9void AliTPCDDLRawData(Int_t LDCsNumber=12){
10 AliTPCDDLRawData *util=new AliTPCDDLRawData();
11 AliTPCCompression *u=new AliTPCCompression();
12 TStopwatch timer;
13
14 static const Int_t NumTable=5;
15
16 //TABLES CREATION
17 //The Altro File "AltroFormatDDL.dat" is built from "AliTPCDDL.dat"
18 util->RawDataAltro();
19 u->SetVerbose(1);
20 //The file "AltroFormatDDL.dat" is converted in a txt file "AltroFormatDDL.txt"
21 //that is used for debugging
22 u->ReadAltroFormat("AltroFormatDDL.txt","AltroFormatDDL.dat");
23 //Tables are created and stored in as sequence of binary files
24 u->CreateTables("AltroFormatDDL.dat",NumTable);
25
26
27
28 //SLICE CREATION
29 //Slices are built here
30 timer.Start();
31 util->RawData(LDCsNumber);
32 timer.Stop();
33 timer.Print();
34
a79660fb 35 /*
2e9f335b 36 //SLICE CHECKING
37 //An Altro File is created from the slides
a79660fb 38 cout<<"slice control"<<endl;
2e9f335b 39 util->RawDataAltroDecode(LDCsNumber,0);
40 ///The Altro file AltroDDLRecomposed.dat is converted in a txt file AltroDDLRecomposed.txt
41 //This file must be equal to the ones created above.
42 u->ReadAltroFormat("AltroDDLRecomposed.txt","AltroDDLRecomposed.dat");
43 */
44
45
46 //SLICE COMPRESSION
a79660fb 47 cout<<"Slice Compression"<<endl;
48 //Slices are compressed here using the tables created above or an optimized set of tables
49 //(Tables file for Huffman coding are required)
2e9f335b 50 timer.Start();
51 util->RawDataCompDecompress(LDCsNumber,0);
52 timer.Stop();
53 timer.Print();
54
55
56 /*
57 //SLICE DECOMPRESSION
58 timer.Start();
59 util->RawDataCompDecompress(LDCsNumber,1);
60 timer.Stop();
61 timer.Print();
62 */
63
a79660fb 64 /*
2e9f335b 65 //SLICE DECOMPRESSED CHECKING
66 //A new Altro file is created from the decompressed slides
67 util->RawDataAltroDecode(LDCsNumber,1);
68 //Convertion of the Altro file AltroDDLRecomposedDec.dat in a txt file AltroDDLRecomposedDec.txt
69 //Useful for debugging
70 u->ReadAltroFormat("AltroDDLRecomposedDec.txt","AltroDDLRecomposedDec.dat");
a79660fb 71 */
2e9f335b 72 delete util;
73 delete u;
74 return;
75}