Code for tuning the HCAL pedestals