Tuning magnetostructural transition and the associated giant magnetocaloric effect via thermal treatment in MnCoGe-based alloys