]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCDDLRawData.C
VZERO DAs + Object target dependencies
[u/mrichter/AliRoot.git] / TPC / AliTPCDDLRawData.C
index 4410644caa9af091bcd7c3e8a50b7287d1bb56a6..b5794d8fb05329460b2595ceec396e912616c062 100644 (file)
@@ -1,65 +1,72 @@
-#if !defined(__CINT__) || defined(__MAKECINT__)
+#if !defined(__CINT__) 
 
 #include "AliTPCDDLRawData.h"
 #include "AliTPCCompression.h"
-#include <alles.h>
 #endif
 
 
-void AliTPCDDLRawData(Int_t LDCsNumber=12){
+void AliTPCDDLRawData(Int_t eventNumber=0, Int_t LDCsNumber=12){
   AliTPCDDLRawData *util=new AliTPCDDLRawData();
   AliTPCCompression *u=new AliTPCCompression();
   TStopwatch timer;
-
   static const Int_t NumTable=5;
+
+  util->SetVerbose(1);
+  u->SetVerbose(1);  
   
-  //TABLES CREATION
   //The Altro File "AltroFormatDDL.dat" is built from "AliTPCDDL.dat"
-  util->RawDataAltro();
-  //u->SetVerbose(1);
+  //util->RawDataAltro();
+  
+  /*
   //The file "AltroFormatDDL.dat" is converted in a txt file "AltroFormatDDL.txt"
   //that is used for debugging
-  /*
-  cout<<"Creating a txt file from an Altro format file"<<endl;
   u->ReadAltroFormat("AltroFormatDDL.txt","AltroFormatDDL.dat");
   */
+
+  /*
+  //TABLES CREATION 
   //Tables are created and stored in as sequence of binary files
   u->CreateTables("AltroFormatDDL.dat",NumTable);
-  
+  */
+
+
+  while (eventNumber<=0){
+    cout<<"Insert the event number:";
+    cin>>eventNumber;
+    cout<<endl;
+  }
 
-  
   //SLICE CREATION
   //Slices are built here
   timer.Start();
-  util->RawData(LDCsNumber);
+  util->RawData(LDCsNumber,eventNumber);
   timer.Stop();
   timer.Print();
-  
+
   /*
   //SLICE CHECKING
   //An Altro File is created from the slides
   cout<<"slice control"<<endl;
-  util->RawDataAltroDecode(LDCsNumber,0);
+  util->RawDataAltroDecode(LDCsNumber,eventNumber,0);
   ///The Altro file AltroDDLRecomposed.dat is converted in a txt file AltroDDLRecomposed.txt
   //This file must be equal to the ones created above.
-  cout<<"Creating a txt file from an Altro format file"<<endl;
   u->ReadAltroFormat("AltroDDLRecomposed.txt","AltroDDLRecomposed.dat");
   */
   
-  
+
   //SLICE COMPRESSION
   cout<<"Slice Compression"<<endl;
   //Slices are compressed here using the tables created above or an optimized set of tables 
   //(Tables file for Huffman coding are required)
   timer.Start();
-  util->RawDataCompDecompress(LDCsNumber,0);
+  util->RawDataCompDecompress(LDCsNumber,eventNumber,0);
   timer.Stop();
   timer.Print();
-  
-  /*
+
+  /*  
   //SLICE DECOMPRESSION
   timer.Start();
-  util->RawDataCompDecompress(LDCsNumber,1);
+  util->RawDataCompDecompress(LDCsNumber,eventNumber,1);
   timer.Stop();
   timer.Print();
   */
@@ -67,10 +74,9 @@ void AliTPCDDLRawData(Int_t LDCsNumber=12){
   /*
   //SLICE DECOMPRESSED CHECKING  
   //A new Altro file is created from the decompressed slides
-  util->RawDataAltroDecode(LDCsNumber,1);
+  util->RawDataAltroDecode(LDCsNumber,eventNumber,1);
   //Convertion of the Altro file AltroDDLRecomposedDec.dat in a txt file AltroDDLRecomposedDec.txt
   //Useful for debugging
-  cout<<"Creating a txt file from an Altro format file"<<endl;
   u->ReadAltroFormat("AltroDDLRecomposedDec.txt","AltroDDLRecomposedDec.dat");
   */
   delete util;