in the attachment below I have a peak.c macro to find peaks in a histogram and the image represents it, I do not care about fitting because I do it with other macro but I would to know how to print on the terminal the selected peak projection on X-axis. to use it in comparison to the refrence line.
yes This is the position on X but what I want to do, is to print it out to know the exact number of each the selected peak on X-axis.
something like this but it does not work with me
std::cout << " X-Position = " << xp << std::endl;
std::cout << " X-Position = " << xpeaks<< std::endl;