Commit 87e157fd authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Metronome: allow to skip ahead at begin of run

parent 38f40f19
Pipeline #760110 passed with stages
in 13 minutes and 12 seconds
......@@ -13,8 +13,8 @@ Metronome::Metronome(Configuration config, std::vector<std::shared_ptr<Detector>
void Metronome::initialise() {
// Set initial values for the start and stop time of the first event:
m_eventStart = 0.0;
m_eventEnd = m_eventLength;
m_eventStart = m_config.get<double>("skip_time", 0.);
m_eventEnd = m_eventStart + m_eventLength;
StatusCode Metronome::run(std::shared_ptr<Clipboard> clipboard) {
......@@ -10,6 +10,7 @@ Subsequent modules should read these values and adhere to them.
### Parameters
* `event_length`: Length of the event to be defined in physical units (not clock cycles of a specific device). Default value is `10us`.
* `skip_time`: Time to skip at the begin of the run before processing the first event. Defaults to `0us`.
### Usage
Supports Markdown
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