Skip to content

Add PMT files support

Tamas Gal requested to merge add-pmt-files-support into main

This MR implements the support for reading PMT files, the output of the K40 calibrationi procedure in Jpp.

@lfusco let me know if this interface is OK!

Usage example:

julia> using KM3io, KM3NeTTestData

julia> pmtfile = read(datapath("pmt", "calibration_00000117_H_1.0.0_00013757_00013826_1.txt"), KM3io.PMTFile)
PMTFile containing parameters of 7254 PMTs

julia> pmtdata = pmtfile[806451572, 4]
KM3io.PMTData(0.808, 0.95, 0.521, 7.24, -1.0, 0.24)

julia> pmtdata.QE
0.808

julia> pmtdata.gain
0.95

julia> fieldnames(typeof(pmtdata))
(:QE, :gain, :gainSpread, :riseTime_ns, :TTS_ns, :threshold)

julia> pmtfile.<TAB>
QE
comments
mu
parameters
pmt_data

Merge request reports

Loading