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

ImproveRefTimestamp: rename parameters

parent bf96bfe1
......@@ -6,9 +6,9 @@ using namespace std;
ImproveReferenceTimestamp::ImproveReferenceTimestamp(Configuration config, std::vector<std::shared_ptr<Detector>> detectors)
: Module(std::move(config), std::move(detectors)) {
m_method = m_config.get<int>("improvementMethod", 1);
m_source = m_config.get<std::string>("signalSource", "W0013_G02");
m_triggerLatency = m_config.get<double>("triggerLatency", static_cast<double>(Units::convert(0, "ns")));
m_method = m_config.get<int>("improvement_method", 1);
m_source = m_config.get<std::string>("signal_source", "W0013_G02");
m_triggerLatency = m_config.get<double>("trigger_latency", static_cast<double>(Units::convert(0, "ns")));
}
void ImproveReferenceTimestamp::initialise() {
......
......@@ -7,14 +7,14 @@
Replaces the existing reference timestamp (earliest hit on reference plane) by either the trigger timestamp (method 0) or the average track timestamp (method 1). For method 0 to work, a trigger timestamp has to be saved as SPIDR signal during data taking.
### Parameters
* `improvementMethod`: Determines which method to use. Trigger timestamp is 0, average track timestamp is 1. Default value is `1`.
* `signalSource`: Determines which detector plane carries the trigger signals. Only relevant for method 0. Default value is `"W0013_G02"`.
* `triggerLatency`: Adds a latency to the trigger timestamp and shifts time histogrammes back to zero. Default value is `0`.
* `improvement_method`: Determines which method to use. Trigger timestamp is 0, average track timestamp is 1. Default value is `1`.
* `signal_source`: Determines which detector plane carries the trigger signals. Only relevant for method 0. Default value is `"W0013_G02"`.
* `trigger_latency`: Adds a latency to the trigger timestamp and shifts time histogrammes back to zero. Default value is `0`.
### Usage
```toml
[ImproveReferenceTimestamp]
improvementMethod = 0
signalSource = "W0013_G02"
triggerLatency = 20ns
improvement_method = 0
signal_source = "W0013_G02"
trigger_latency = 20ns
```
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