-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patchs for Cat B calibration tool #1142
Conversation
}, | ||
"LSTCalibrationCalculator": { | ||
"squared_excess_noise_factor": 1.222, | ||
"use_scaled_low_gain": true, | ||
"hg_lg_ratio": 17.4, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you say a few words about the change in this value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the correct ratio high gain/low gain (which is also in the default of the trailet). I honestly do not remember why the value in the json was 1 ...
@@ -123,7 +124,7 @@ def setup(self): | |||
|
|||
group_name = 'tel_' + str(tel_id) | |||
|
|||
self.log.debug(f"Open output file {self.output_file}") | |||
self.log.info(f"Open output file {self.output_file}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a good opportunity to use the lazy formatting in logging instead of fstrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I prefer to keep a correspondence between the two calibration scripts (Cat-A and Cat-B), these messages are mainly one per job, do not imply calculations and they are in the main function, is this lazy stuff so important here ? (Also I find more readable this format ;-) )
@@ -241,6 +241,7 @@ def calculate_calibration_coefficients(self, event): | |||
if self.use_scaled_low_gain: | |||
calib_data.unusable_pixels[constants.LOW_GAIN] = calib_data.unusable_pixels[constants.HIGH_GAIN] | |||
calib_data.dc_to_pe[constants.LOW_GAIN] = calib_data.dc_to_pe[constants.HIGH_GAIN] * self.hg_lg_ratio | |||
calib_data.time_correction[constants.LOW_GAIN] = calib_data.time_correction[constants.HIGH_GAIN] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.