@@ -148,7 +148,7 @@ class MAGICEventSource(EventSource):
forfile_pathinfile_list:
try:
importuproot
importuproot3asuproot
try:
withuproot.open(file_path)asinput_data:
...
...
@@ -333,6 +333,19 @@ class MAGICEventSource(EventSource):
data.mon.tels_with_data={1,2}
data.mon.tel[tel_i+1]=monitoring_camera
else:
assertself.current_run['data'].mcheader_data['M1']==self.current_run['data'].mcheader_data['M2'],"Simulation configurations are different for M1 and M2 !!!"
mcheader_data['sim_conesemiangle']=mc_header_info[b'MMcRunHeader.fRandomPointingConeSemiAngle'][0]*u.deg#std: 2.5 deg, also corsika viewcone is defined by "half of the cone angle".