-//$Id$
+// @(#) $Id$
// Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
-//*-- Copyright © ASV
+//*-- Copyright © 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
//
// --------------------
//
// 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,
//
// Everything is written using 8 bit;
// (ROW < 176, PAD < 200, ADC < 255, if(NZEROS > 255) write 2 words;)
+</pre>
+*/
ClassImp(AliL3DataHandler)
-
AliL3DataHandler::AliL3DataHandler()
{
{
if(fBitTransformer)
delete fBitTransformer;
-
}
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);
<<"Error reading from file "<<ENDLOG;
return 0;
}
+
UInt_t size = GetMemorySize(nrow,comp);
AliL3DigitRowData *data = (AliL3DigitRowData*)Allocate(size);
CompMemory2Memory(nrow,data,comp);
if( (time += Read(comp,index)) == 2*255)
time += Read(comp,index);
}
+
while(1)
{
while( (charge = Read(comp,index)) != 0)
ndigit++;
if(Test(comp,index) != 0)
time++;
-
}
if(Test(comp,index) == 0)
{