]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/misc/AliL3DataHandler.cxx
Corrected initialization of static variables, removed warnings (Sun, HP)
[u/mrichter/AliRoot.git] / HLT / misc / AliL3DataHandler.cxx
index 9062726c11a9b1991736ea59b5b1395e386aea33..3f46b6ddca75d84c73eb70352aa87e20e2002384 100644 (file)
@@ -1,19 +1,24 @@
-//$Id$
+// @(#) $Id$
 
 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
-//*-- Copyright &copy ASV
+//*-- Copyright &copy ALICE HLT Group
 
 #include "AliL3StandardIncludes.h"
 
-#include "AliL3DataHandler.h"
+#include "AliL3RootTypes.h"
+#include "AliL3Logging.h"
+#include "AliL3MemHandler.h"
 #include "AliL3Logging.h"
-#include "AliTransBit.h"
+#include "AliL3TransBit.h"
 #include "AliL3Transform.h"
+#include "AliL3DataHandler.h"
 
 #if GCCVERSION == 3
 using namespace std;
 #endif
 
+/** \class AliL3DataHandler
+<pre>
 //_____________________________________________________________
 // AliL3DataHandler
 //
@@ -38,7 +43,7 @@ using namespace std;
 // --------------------
 //
 // The data is RLE encoded, using _8_bit representation of the ADC-values.
-// Conversion is done in the class AliTransBit.
+// Conversion is done in the class AliL3TransBit.
 //
 // In the beginning of every row, the row number if written and the number of pads
 // containing data on that row. For every pad with data the pad number is written,
@@ -51,9 +56,10 @@ using namespace std;
 //
 // Everything is written using 8 bit;
 // (ROW < 176, PAD < 200, ADC < 255, if(NZEROS > 255) write 2 words;)
+</pre>
+*/
 
 ClassImp(AliL3DataHandler)
-
   
 AliL3DataHandler::AliL3DataHandler()
 {
@@ -66,7 +72,6 @@ AliL3DataHandler::~AliL3DataHandler()
 {
   if(fBitTransformer)
     delete fBitTransformer;
-  
 }
 
 void AliL3DataHandler::Convert10to8Bit()
@@ -88,7 +93,7 @@ void AliL3DataHandler::Convert10to8Bit()
   
   
   //Initialize the bit transformation class:
-  fBitTransformer = new AliTransBit_v1();
+  fBitTransformer = new AliL3TransBit_v1();
   Int_t b0=10;  // original number of bits
   Int_t b1=8;   // compressed
   fBitTransformer->SetBits(b0,b1);
@@ -137,6 +142,7 @@ AliL3DigitRowData *AliL3DataHandler::CompBinary2Memory(UInt_t &nrow)
        <<"Error reading from file "<<ENDLOG;
       return 0;
     }
+
   UInt_t size = GetMemorySize(nrow,comp);
   AliL3DigitRowData *data = (AliL3DigitRowData*)Allocate(size);
   CompMemory2Memory(nrow,data,comp);
@@ -481,6 +487,7 @@ UInt_t AliL3DataHandler::CompMemory2Memory(UInt_t nrow,AliL3DigitRowData *data,B
                if( (time += Read(comp,index)) == 2*255)
                  time += Read(comp,index);
            }
+
          while(1)
            {
              while( (charge = Read(comp,index)) != 0)
@@ -493,7 +500,6 @@ UInt_t AliL3DataHandler::CompMemory2Memory(UInt_t nrow,AliL3DigitRowData *data,B
                  ndigit++;
                  if(Test(comp,index) != 0)
                    time++;
-                 
                }
              if(Test(comp,index) == 0)
                {