Commit 16e5522b authored by Simon Spannagel's avatar Simon Spannagel
Browse files

EvLoEUDAQ2: allow switching off creation of tag histograms

parent fa507042
......@@ -17,6 +17,7 @@ EventLoaderEUDAQ2::EventLoaderEUDAQ2(Configuration config, std::shared_ptr<Detec
m_filename = m_config.getPath("file_name", true);
get_time_residuals = m_config.get<bool>("get_time_residuals", false);
get_tag_vectors = m_config.get<bool>("get_tag_vectors", false);
m_skip_time = m_config.get("skip_time", 0.);
adjust_event_times = m_config.getMatrix<std::string>("adjust_event_times", {});
......@@ -161,7 +162,9 @@ std::shared_ptr<eudaq::StandardEvent> EventLoaderEUDAQ2::get_next_event() {
// Read and store tag information:
if(get_tag_vectors) {
decoding_failed = !eudaq::StdEventConverter::Convert(event, stdevt, eudaq_config_);
LOG(DEBUG) << event->GetDescription() << ": EventConverter returned " << (decoding_failed ? "false" : "true");
......@@ -90,7 +90,8 @@ namespace corryvreckan {
std::shared_ptr<Detector> m_detector;
std::string m_filename{};
bool get_time_residuals;
bool get_time_residuals{};
bool get_tag_vectors{};
double m_skip_time{};
Matrix<std::string> adjust_event_times;
......@@ -70,7 +70,8 @@ Also, more complex constructs such as arrays or matrices read by the Corryvrecka
### Parameters
* `file_name`: File name of the EUDAQ2 raw data file. This parameter is mandatory.
* `skip_time`: Time that can be skipped at the start of a run. Default is `0ms`.
* `get_time_residuals`: Boolean to change if time residual plots should be outputted. Default value is `false`.
* `get_time_residuals`: Boolean to change if time residual plots should be created. Default value is `false`.
* `get_tag_vectors`: Boolean to enable creation of EUDAQ2 event tag histograms. Default value is `false`.
* `adjust_event_times`: Matrix that allows the user to shift the event start/end of all different types of EUDAQ events. The first entry of each row specifies the data type, the second is the offset which is added to the event start and the third entry is the offset added to the event end. A usage example is shown below. Default is `0ms, 0ms`, `"other"` is just a placeholder.
### Plots produced
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