@@ -14,8 +14,8 @@ First of all, you have to open a file.
// The classes are defined in the namespace lstdpp128.
using namespace lstdpp128;
// Initialize a reader with a buffer of size 4096.
Reader reader(4096);
// Initialize a reader with a buffer of size 1024.
Reader reader(1024);
// Open the file.
bool success = reader.open(fileName);
...
...
@@ -81,8 +81,14 @@ crateBoard | CrateBoard
The _version_ member represents the version of the format of the file. The _timeBase_ is the unit of time of the events. The value 9 means that the time base is 10^-9.
Read and Process the File
-------------------------
There are two methods to read and process a file:
* Use a simple reader event by event
* Use a more advanced algorithm configured with a method of reading the events.
An example of a simple reader is provided [here] ../src/lstdpp128/apps/common/SimpleReader.cpp .