Skip to content
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

Merged
merged 3 commits into from
Jul 24, 2023
Merged

Conversation

FrancaCassol
Copy link
Collaborator

No description provided.

@FrancaCassol FrancaCassol requested a review from maxnoe July 19, 2023 09:16
},
"LSTCalibrationCalculator": {
"squared_excess_noise_factor": 1.222,
"use_scaled_low_gain": true,
"hg_lg_ratio": 17.4,
Copy link
Member

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?

Copy link
Collaborator Author

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}")
Copy link
Member

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

Copy link
Collaborator Author

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]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed offline: I asked whether we can use HG for the time correction of LG given that the two use slightly different signal paths and different readout chips, answer is yes:
comparison_timecorr

@rlopezcoto rlopezcoto merged commit e131065 into main Jul 24, 2023
@rlopezcoto rlopezcoto deleted the patch_for_catB_calibration_tool branch July 24, 2023 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants