Commit 30dc2249 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

CLICpix2EventLoader: move to Metronome scheme

parent b2bcd410
......@@ -267,7 +267,8 @@ StatusCode Clicpix2EventLoader::run(Clipboard* clipboard) {
// Store current frame time and the length of the event:
LOG(DEBUG) << "Event time: " << Units::display(shutterStartTime, {"ns", "us", "s"})
<< ", length: " << Units::display((shutterStopTime - shutterStartTime), {"ns", "us", "s"});
clipboard->put_persistent("currentTime", shutterStartTime);
clipboard->put_persistent("eventStart", shutterStartTime);
clipboard->put_persistent("eventEnd", shutterStopTime);
clipboard->put_persistent("eventLength", (shutterStopTime - shutterStartTime));
// Put the data on the clipboard
......
......@@ -3,7 +3,8 @@
**Status**: Functional
#### Description
This module reads in data for a CLICpix2 device from an input file. It defines the reconstruction time structure as being the CLICpix2 frame by setting the `currentTime` to the begin of the frame and the `eventLength` to the length of the readout frame. These times are stored on the persistent clipboard storage and can be picked up by other modules to allow synchronization.
This module reads in data for a CLICpix2 device from an input file. It defines the reconstruction time structure as being the CLICpix2 frame by setting the `eventStart` to the begin of the frame, the `eventEnd` to the end of the shutter and the `eventLength` to the length of the readout frame. These times are stored on the persistent clipboard storage and can be picked up by other modules to allow synchronization.
Thus, this module should not be used in conjunction with the Metronome but should be placed at the very beginning of the module chain.
The module opens and reads one data file in the specified input directory.
The input directory is searched for a data file with the file extension `.raw` and a pixel matrix configuration file required for decoding with the file extension `.cfg` and a name starting with `matrix`.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment