VERITAS-Observatory / V2DL3

VERITAS (VEGAS and Eventdisplay) to DL3 Converter
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

VEGAS Energy Correction not Applied #178

Open matthew-w-lundy opened 1 year ago

matthew-w-lundy commented 1 year ago

The energy correction applied at Stage6 is not brought over in V2DL3 so the evt_dict["ENERGY"] doesn't match the effective area.

matthew-w-lundy commented 1 year ago

Prototype in c051851 but it's unclear to me if this is needed at all, because the energy dispersion matrix is passed this bias is already included implicitly in the IRF. I don't think it's necessary to apply this correction at this stage, it can likely occur much later during spectral reconstruction. If we are going to apply the change as outlined in the attached commit, it would make sense to me then that the dispersion matrix passed should also be adjusted so the the mean value is centred around zero.