... | ... | @@ -91,7 +91,7 @@ There are two methods to read and process a file: |
|
|
* Use a simple reader event by event
|
|
|
* Use a more advanced processor configured with an algorithm
|
|
|
|
|
|
An example of a simple reader application is provided by [SimpleReader.cpp](../../src/lstdpp128/apps/common/SimpleReader.cpp).
|
|
|
An example of a simple reader application is provided by [SimpleReader.cpp](https://code.ill.fr/lst/lst-data-process-128/blob/master/src/lstdpp128/apps/common/SimpleReader.cpp).
|
|
|
|
|
|
A more advanced strategy is to use a concept of algorithms used through arrays of events.
|
|
|
The advantage is that it is possible to read a block of events, sort them in time and process them.
|
... | ... | @@ -99,8 +99,8 @@ It can be very interesting for very large files for which the entire sequence of |
|
|
|
|
|
The programmer defines a processor class and can use it by two read strategies (EventArray or EventBlockArray).
|
|
|
An example of such processor and algorithm is provided by:
|
|
|
* Processor [Insert.h](src/lstdpp128/Insert.h) [Insert.cpp](src/lstdpp128/Insert.cpp)
|
|
|
* Main [IterativeVectorInsert.cpp](src/lstdpp128/apps/common/IterativeVectorInsert.cpp)
|
|
|
* Processor [Insert.h](https://code.ill.fr/lst/lst-data-process-128/blob/master/src/lstdpp128/Insert.h) [Insert.cpp](https://code.ill.fr/lst/lst-data-process-128/blob/master/src/lstdpp128/Insert.cpp)
|
|
|
* Main [IterativeVectorInsert.cpp](https://code.ill.fr/lst/lst-data-process-128/blob/master/src/lstdpp128/apps/common/IterativeVectorInsert.cpp)
|
|
|
|
|
|
Fortran Code as Callback to the Reading of an Event
|
|
|
----------------------------------------
|
... | ... | |