It’s my first couple of days using ROOT.
I’ve been instructed to make a histogram (I think it’s a histogram), make a gaussian fit to a peak, and then integrate it to get a value.
Here’s what I’ve tried:
TFile* f = new TFile(“file_name”)
TTree* tree = (TTree*)f->Get(“r”)
Doing that gives me this histogram:
However, what I’m looking for is something more like this:
https://imgur.com/JfL1eYw, which I can see in the browser but not reach programatically. The second picture looks more like something I can curve fit and integrate over. How can I get there?
ROOT Version: 6.18/04