Passing "calibration_file" to EventLoaderEUDAQ2 stopped working
Today I have pulled the latest master
and I found out that apparently passing calibration_file
from the geometry file to EventLoaderEUDAQ2
has stopped working. Passing it through the config file seems to still be working. Until today I was working on 2502f15b and I experienced no issues.
I have looked through the git diff
and cannot figure out which change could be causing this.
On macOS 12.4
using clang version 13.1.6 (clang-1316.0.21.2.5)
.
Steps to reproduce
Geometry file
[DPTS_7]
calibration_file = "/path/to/calibration/2022-05_PS_B7_B6_1.2V.calib"
mask_file = "/path/to/masks/dut-plane7.txt"
material_budget = 0.0005
number_of_pixels = 32, 32
orientation = 0deg,0deg,90deg
orientation_mode = "xyz"
pixel_pitch = 15um,15um
position = -678.509um,556.205um,270mm
role = "dut"
spatial_resolution = 4.5um,4.5um
time_resolution = 10ns
type = "dpts"
[ALPIDE_5]
mask_file = "/path/to/masks/ref-plane5.txt"
material_budget = 0.0005
number_of_pixels = 1024, 512
orientation = 0deg,0deg,0deg
orientation_mode = "xyz"
pixel_pitch = 29.24um,26.88um
position = -1.18954mm,-160.232um,388mm
spatial_resolution = 5um,5um
time_resolution = 2us
type = "alpide"
role = "reference"
Config file
[Corryvreckan]
log_level = "INFO"
log_format = "DEFAULT"
detectors_file = "../../geometry/2022-05_PS_3REF-2DPTS-3REF_prealigned.conf"
detectors_file_updated = "../../geometry/2022-05_PS_3REF-2DPTS-3REF_aligned.conf"
histogram_file = "alignment_run_test.root"
number_of_events = -1
[Metronome]
triggers=1
[EventLoaderEUDAQ2]
train_time_cut_low_ch0=500
train_time_cut_high_ch0=2000
train_time_cut_low_ch1=500
train_time_cut_high_ch1=2000
eudaq_loglevel="DEBUG"
Command to run corry
$CORRY -c issue.conf -o EventLoaderEUDAQ2.file_name=/path/to/file.raw
2502f15b)
Expected output (as obtained with[2022-06-27 19:07:53.718] (INFO) [unknown sender]Load configuration for DPTS
<Configuration>
<Section title="">
<buffer_depth>0</buffer_depth>
<calibration_file>/path/to/calibration/2022-05_PS_B7_B6_1.2V.calib</calibration_file>
<eudaq_loglevel>"DEBUG"</eudaq_loglevel>
<file_name>../../data/2022-05_PS/DPTSOW22B7/ireset/run185194354_220507003411.raw</file_name>
<get_tag_histograms>0</get_tag_histograms>
<get_tag_profiles>0</get_tag_profiles>
<get_time_residuals>0</get_time_residuals>
<identifier>"DPTS_7"</identifier>
<ignore_bore>1</ignore_bore>
<inclusive>1</inclusive>
<shift_triggers>0</shift_triggers>
<skip_time>0</skip_time>
<train_time_cut_high_ch0>2000</train_time_cut_high_ch0>
<train_time_cut_high_ch1>2000</train_time_cut_high_ch1>
<train_time_cut_low_ch0>500</train_time_cut_low_ch0>
<train_time_cut_low_ch1>500</train_time_cut_low_ch1>
<veto_triggers>0</veto_triggers>
</Section>
</Configuration>
[2022-06-27 19:07:53.719] (INFO) [unknown sender]Load configuration for DPTS
[2022-06-27 19:07:53.719] (INFO) [unknown sender]Set section `"DPTS_7"` from Corryvreckan
[2022-06-27 19:07:53.719] (DEBUG) [unknown sender]train_time_cut_low_ch0 set to 500.000000
[2022-06-27 19:07:53.719] (DEBUG) [unknown sender]train_time_cut_high_ch0 set to 2000.000000
[2022-06-27 19:07:53.719] (DEBUG) [unknown sender]train_time_cut_low_ch1 set to 500.000000
[2022-06-27 19:07:53.719] (DEBUG) [unknown sender]train_time_cut_high_ch1 set to 2000.000000
[2022-06-27 19:07:53.720] (DEBUG) [unknown sender]Found calibration file path: /path/to/calibration/2022-05_PS_B7_B6_1.2V.calib
master
Output when using <Configuration>
<Section title="">
<buffer_depth>0</buffer_depth>
<calibration_file>U��X����mn��?�p@�</calibration_file>
<eudaq_loglevel>"DEBUG"</eudaq_loglevel>
<file_name>../../data/2022-05_PS/DPTSOW22B7/ireset/run185194354_220507003411.raw</file_name>
<get_tag_histograms>0</get_tag_histograms>
<get_tag_profiles>0</get_tag_profiles>
<get_time_residuals>0</get_time_residuals>
<identifier>"DPTS_7"</identifier>
<ignore_bore>1</ignore_bore>
<inclusive>1</inclusive>
<shift_triggers>0</shift_triggers>
<skip_time>0</skip_time>
<train_time_cut_high_ch0>2000</train_time_cut_high_ch0>
<train_time_cut_high_ch1>2000</train_time_cut_high_ch1>
<train_time_cut_low_ch0>500</train_time_cut_low_ch0>
<train_time_cut_low_ch1>500</train_time_cut_low_ch1>
<veto_triggers>0</veto_triggers>
</Section>
</Configuration>
[2022-06-27 19:16:28.704] (INFO) [unknown sender]Load configuration for DPTS
[2022-06-27 19:16:28.704] (INFO) [unknown sender]Set section `"DPTS_7"` from Corryvreckan
[2022-06-27 19:16:28.704] (DEBUG) [unknown sender]train_time_cut_low_ch0 set to 500.000000
[2022-06-27 19:16:28.704] (DEBUG) [unknown sender]train_time_cut_high_ch0 set to 2000.000000
[2022-06-27 19:16:28.704] (DEBUG) [unknown sender]train_time_cut_low_ch1 set to 500.000000
[2022-06-27 19:16:28.704] (DEBUG) [unknown sender]train_time_cut_high_ch1 set to 2000.000000
[2022-06-27 19:16:28.704] (DEBUG) [unknown sender]Found calibration file path: U��X����mn��?�p@rY��2000.000
*** Break *** segmentation violation
Additional info:
Running corry at DEBUG level I see:
|19:28:12.165| (DEBUG) [C:EventLoaderEUDAQ2:DPTS_7] Forwarding detector calibration file: "U��X����mn��?�p@��[��"