Commit b919b21c authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'metronome_skip' into 'master'

Metronome: allow to skip ahead at begin of run

See merge request !95
parents 38f40f19 87e157fd
Pipeline #763345 passed with stages
in 22 minutes and 36 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
```toml
......
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