... | ... | @@ -140,7 +140,7 @@ 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
|
|
|
Read and rocess the file
|
|
|
-------------------------
|
|
|
|
|
|
There are two methods to read and process a file:
|
... | ... | @@ -151,7 +151,7 @@ An example of a simple reader application is provided by [SimpleReader.cpp](http |
|
|
A more complex example is given in [Plot.cpp]
|
|
|
(https://code.ill.fr/lst/lst-data-process-128/blob/master/src/lstdpp128/apps/gnuplot/Plot.cpp).
|
|
|
|
|
|
A more advanced strategy is to use a concept of algorithms used through arrays of events.
|
|
|
A more advanced strategy is to use a concept of algorithms working on arrays of events.
|
|
|
The advantage is that it is possible to read a block of events, sort them in time and process them.
|
|
|
It can be very interesting for very large files for which the entire sequence of events cannot reside in RAM.
|
|
|
|
... | ... | @@ -160,7 +160,7 @@ An example of such processor and algorithm is provided by: |
|
|
* 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
|
|
|
Fortran code as callback to the reading of an event
|
|
|
----------------------------------------
|
|
|
|
|
|
It is possible to write Fortran code and access to the library lst-data-process-128 as it is shown in this example:
|
... | ... | |