Division of Histograms

From: Harinder Singh Bawa <hbawa_at_csufresno.edu>
Date: Wed, 13 Oct 2010 06:09:42 -0700


Dear experts,

I may be missing something but I am trying to divide 2 histograms bin by bin as follows

Declaring



TH1F *hist1=new TH1F("hist1","",40,0,2000); TH1F *hist2=new TH1F("hist2","",40,0,2000);

TH1F *histdiv=new TH1F("histdiv","",40,0,2000);

Filling


hist1->Fill(some variable from input rootfile); hist2->Fill(some variable from input rootfile);

histdiv->Divide(hist1,hist2,1.,1.,"b");

Is this correct.?

The problem I am seeing is that though I am getting many points from division in plot but in Stat it is showing only 1 entry. Can anyone say why?

thanks
H. Received on Wed Oct 13 2010 - 15:09:50 CEST

This archive was generated by hypermail 2.2.0 : Wed Oct 13 2010 - 17:50:01 CEST