Efficiency plot


To plot ‘lets say’ reconstruction efficiency of a particular track i use
void Divide(const TH1* h1, const TH1* h2, Double_t c1 = 1, Double_t c2 = 1, Option_t* option = “”)
with Binomial error. Where h1 - Reconstructed tracks, h2 - Truth tracks

But i now wonder is it possible in any way to get such an efficiency plot for a 2D scatter plot.
Lets say i have two 2D scatter plots between X & Y and X & Y’. Is it possible for me to divide one by the other to arrive at an efficiency plot? (I am imagining it might be in 3D)

Please advice.

Lorenzo will process your mail



the TH1::Divide method will work also for two (and also three) dimensional histograms. You will not however be able to display the errors in a multi-dimensional histogram

Best Regards


Thanks a lot Rene and Lorenzo,

I will try it.