adding a fit for the simulated histo with threshold variations to extract the equivalent CM fraction