]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bugfix; Need Init(slice,patch)
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 May 2002 08:04:43 +0000 (08:04 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 May 2002 08:04:43 +0000 (08:04 +0000)
HLT/misc/AliL3DataHandler.cxx

index e6d5667a9e43348f079e58baf772d47fd2cee7f8..4e87f20bb691f0e3470f841c65cbe72fce7c2c2e 100644 (file)
@@ -21,6 +21,7 @@
 // For converting 10 bit data files to 8 bit data files, do:
 //
 // AliL3MemHandler *file = new AliL3DataHandler();
 // For converting 10 bit data files to 8 bit data files, do:
 //
 // AliL3MemHandler *file = new AliL3DataHandler();
+// file->Init(slice,patch);
 // file->SetBinaryInput(inputfile);    //10 bit data file
 // file->SetBinaryOutput(outputfile);  //8 bit data file
 // file->Convert10to8Bit();
 // file->SetBinaryInput(inputfile);    //10 bit data file
 // file->SetBinaryOutput(outputfile);  //8 bit data file
 // file->Convert10to8Bit();
@@ -88,6 +89,7 @@ void AliL3DataHandler::Convert10to8Bit()
   fBitTransformer->Update();
   
   AliL3MemHandler *memory = new AliL3MemHandler();
   fBitTransformer->Update();
   
   AliL3MemHandler *memory = new AliL3MemHandler();
+  memory->Init(fSlice,fPatch);
   memory->SetBinaryInput(fInBinary);
   UInt_t nrow;
   AliL3DigitRowData *data = (AliL3DigitRowData*)memory->CompBinary2Memory(nrow);
   memory->SetBinaryInput(fInBinary);
   UInt_t nrow;
   AliL3DigitRowData *data = (AliL3DigitRowData*)memory->CompBinary2Memory(nrow);
@@ -578,7 +580,7 @@ Bool_t AliL3DataHandler::CompBinary2CompMemory(UInt_t &nrow,Byte_t *comp)
 Bool_t AliL3DataHandler::CompMemory2CompBinary(UInt_t nrow,Byte_t *comp,UInt_t size)
 {
   //Write RLE data in comp to binary file.
 Bool_t AliL3DataHandler::CompMemory2CompBinary(UInt_t nrow,Byte_t *comp,UInt_t size)
 {
   //Write RLE data in comp to binary file.
-  //In order to extinguish these files from 10 bit data, 
+  //In order to distinguish these files from 10 bit data, 
   //a zero is written to the beginning of the file.
 
   Byte_t length = (Byte_t)nrow;
   //a zero is written to the beginning of the file.
 
   Byte_t length = (Byte_t)nrow;