@@ -244,9 +244,7 @@ def r0_to_dl1(
244
244
if not is_simu :
245
245
246
246
# TODO : add DRS4 calibration config in config file, read it and pass it here
247
- r0_r1_calibrator = LSTR0Corrections (
248
- pedestal_path = pedestal_path , tel_id = 1 ,
249
- )
247
+ r0_r1_calibrator = LSTR0Corrections (pedestal_path = pedestal_path , tel_id = 1 )
250
248
251
249
# all this will be cleaned up in a next PR related to the configuration files
252
250
@@ -773,9 +771,17 @@ def rescale_dl1_charge(event, scaling_factor):
773
771
774
772
def r0_dl1_muon_analysis (event , telescope_id , r1_dl1_calibrator_for_muon_rings , subarray , muon_parameters , dragon_time ):
775
773
"""
774
+ Muon analysis in the stage r0 to dl1.
775
+ Fills the `muon_parameters` table.
776
776
777
- Returns
778
- -------
777
+ Parameters
778
+ ----------
779
+ event: `ctapipe.containers.DataContainer`
780
+ telescope_id: int
781
+ r1_dl1_calibrator_for_muon_rings: `LSTCameraCalibrator`
782
+ subarray: `ctapipe.instrument.subarray.SubarrayDescription`
783
+ muon_parameters: dict `lstchain.image.muon.create_muon_table`
784
+ dragon_time: `astropy.Quantity`
779
785
780
786
"""
781
787
# minimum number of pe in a pixel to include it
@@ -788,7 +794,7 @@ def r0_dl1_muon_analysis(event, telescope_id, r1_dl1_calibrator_for_muon_rings,
788
794
789
795
bad_pixels = event .mon .tel [telescope_id ].calibration .unusable_pixels [0 ]
790
796
# Set to 0 unreliable pixels:
791
- image = event .dl1 .tel .image * (~ bad_pixels )
797
+ image = event .dl1 .tel [ telescope_id ] .image * (~ bad_pixels )
792
798
793
799
# process only promising events, in terms of # of pixels with large signals:
794
800
if tag_pix_thr (image ):
0 commit comments