Hi there. I’m trying to calculate the acceptance function for my decay channel, and to do so I need to divide two histograms and perform a fit.
I’m having trouble with error propagation though. The Root TH1F I generate from the division of two other TH1Fs is correctly propagating the errors, like so:
TH1F acceptanceHist = (TH1F)trigTimeHist->Clone();
acceptanceHist->SetName(“acceptanceHist”);
acceptanceHist->SetTitle(“B->PhiKs Acceptance ratio”);
acceptanceHist->Divide(untrigTimeHist);
but when I convert this to a RooDataHist it recalculates the errors, creating nonsense in the process, and causing the fit to make no sense (the ratio is never greater than 1, so when it recalcs the errors they’re huge):
RooDataHist accfnHist(“accfnHist”, “Acceptance Function”, *tau,acceptanceHist);
Am I doing this wrong? I could generate two RooDataHists instead of TH1Fs, but I can’t find a method to divide the two.
Thanks,
Conor