legend-exp / legend-data-monitor

LEGEND data monitoring
https://legend-data-monitor.readthedocs.io
MIT License
0 stars 5 forks source link

fix `analysis_data.channel_mean()` #72

Open sofia-calgaro opened 1 year ago

sofia-calgaro commented 1 year ago

We don't want to calculate the mean when we deal with given parameters that are like Vectors of Vectors (eg waveforms, energy in PE, ...). These parameters can belong to whatever subsystem (geds, pulser, spms), so we have to look at their type. This is not very trivial because self.paramters is itself a list of parameters, so in principle one should need to loop over every single parameter.

A basic workaround is there at the moment, that skips only spms, independently from the inspected parameter. This means that if we are going to load waveforms from raw tiers for geds, the code will potentially crash. However, loading waveform is not our purpose, so we might be already happy with this version