example of python and root code to constrain the fit from the MC