Move sTGC threshold calibration to dedicated function
Replace 3 repeated pieces of code by one function that returns the charge threshold from a database.
Now the code exists once so that all changes can be easily tracked in the function. The function is also needed for current development in improving the performance of the sTGC digitization.
Tagging !57499 (merged) since the two MRs are related.