I am trying to apply momentum resolution on particle’s momentum calculated using a C++ code. For that I am using the following code line-
pmu= sqrt(pmuxpmux+pmuypmuy+pmuzpmuz) + rr.Gaus(0.,0.034(sqrt(pmuxpmux+pmuypmuy+pmuz*pmuz)));
here pmu is momentum of muon and I need to apply a momentum resolution of 3.4% for these muons which I have applied using rr.Gaus function. I am not very sure whether I have done it correctly, as I am not getting desired result. If anyone can suggest/comment whether its correct or not, that will be a great help.
_ROOT Version: 5.34/38
Working on Scientific Linux