Ploting Y-axis in semi log

To plot the y-axis in log scale and the x-axis in linear scale, you can uncomment the

// gPad->SetLogy()

line in my code. You will get an error running this, as you will be asking ROOT to plot the log of a negative number, which is incalculable with real numbers only. (TMath::Log(-1) = nan)