TH1D histogram half width at half maximum


I’m new to root and have a question about TH1D histograms, and I was hoping you could help me. How do we get the half-width at half maximum for one or effectively for multiple histograms in a loop? Thank you. I appreciate the help.