I am working on a research project in which I am receiving many p-values and I am expected to convert these to a significance level measured as a z-score. I plan to use the RooStats::PValueToSignificance function within ROOT and I have already tested it to be sure that it returns the right kind of values and I am fully able to utilize the function. Instead my problem lies in understanding how the function works and what mathematical processes are done to the p-value to arrive at the z-score.
I could not find any documentation on this in the reference guide however it is possible I missed it. Any help would be much appreciated!
TLDR; How does the RooStats::PValueToSignificance work mathematically?