-/**
- This class does all the memory I/O handling on raw binary files.
- For the moment the compressed binary files are run-length encoded, using
- 10 bit digits.
-
- Examples:
-
- 1) Reading a binary file:
-
- AliL3MemHandler file;
- file.SetBinaryInput(filename);
-
- UInt_t ndigits;
- AliL3DigitRowData *data = file.CompBinary2Memory(ndigits);
-
- for(int i=0; i<NumberOfRowsInPatch; i++)
- {
-
- AliL3DigitData *dataPt = (AliL3DigitData*)data->fDigitData;
- for(int j=0; j<data->fNDigit; j++)
- {
- pad = dataPt[j].fPad;
- time = dataPt[j].fTime;
- charge = dataPt[j].fCharge;
- }
-
- file.UpdateRowPointer(data);
-
- }
- file.CloseBinaryInput();
- ________________________
-
- 2) Writing a binary file:
-
- //First of all you need to store the data in memory,
- //and have a pointer to it of type AliL3DigitRowData.
- //E.g. if you just want to write the data you read in example 1)
- //into a new file, you can do the following:
-
- AliL3MemHandler newfile;
- newfile.SetBinaryOutput(newfilename);
- newfile.Memory2CompBinary((UInt_t)NumberOfRowsInPatch,(AliL3DigitRowData*)data);
- newfile.CloseBinaryOutput();
+//
+// This class does all the memory I/O handling on raw binary files.
+// For the moment the compressed binary files are run-length encoded, using
+// 10 bit digits.
+//
+// Examples:
+//
+// 1) Reading a binary file:
+//
+// AliL3MemHandler file;
+// file.SetBinaryInput(filename);
+//
+// UInt_t ndigits;
+// AliL3DigitRowData *data = file.CompBinary2Memory(ndigits);
+//
+// for(int i=0; i<NumberOfRowsInPatch; i++)
+// {
+//
+// AliL3DigitData *dataPt = (AliL3DigitData*)data->fDigitData;
+// for(int j=0; j<data->fNDigit; j++)
+// {
+// pad = dataPt[j].fPad;
+// time = dataPt[j].fTime;
+// charge = dataPt[j].fCharge;
+// }
+//
+// file.UpdateRowPointer(data);
+//
+// }
+// file.CloseBinaryInput();
+// ________________________
+//
+// 2) Writing a binary file:
+//
+// //First of all you need to store the data in memory,
+// //and have a pointer to it of type AliL3DigitRowData.
+// //E.g. if you just want to write the data you read in example 1)
+// //into a new file, you can do the following:
+//
+// AliL3MemHandler newfile;
+// newfile.SetBinaryOutput(newfilename);
+// newfile.Memory2CompBinary((UInt_t)NumberOfRowsInPatch,(AliL3DigitRowData*)data);
+// newfile.CloseBinaryOutput();