Hi Christian, TGraphAsymmErrors::BayesDivide has a 3rd argument (Option_t* option). In the CVS version, this argument is now optional. In your case, you should specify a 3rd argument="" Use the CVS version that contains also a fix for a wrong test on histograms filled with weights. Rene Brun Christian Hansen wrote: > > Dear Rooters, > > I'm trying to check the difference between the efficiency > errors using binominal equation and the results given from > BayesDivide, but I get problems using BayesDivide... > > In the attached file I'm defining one-dimensional histograms > and then trying to put them in a TGraphAsymmErrors with > BayesDivide in the following way: > > signalEfficiencyGraph->BayesDivide(signalPassedHist, signalTotHist); > > But when running this in root 4.00/06 I get > > Error: Can't call TGraphAsymmErrors::BayesDivide(signalPassedHist,signalTotHist) > > If anyone knows what I'm doing wrong here I would be > very greatful to get some help!!! > > Thanks > -- > / Christian Hansen > > =============================================== > Box 535 Office: +46-(0)18-471 32 57 > S-751 21 Uppsala Office: 82104 > Sweden > ----------------------------------------------- > Mobile : +46-(0)708-887617 > Home Page : http://welcome.to/Christian_Hansen > http://www.cern.ch/Christian.Hansen > > -------------------------------------------------------------------------------- > Name: bayesTest.C > bayesTest.C Type: Plain Text (TEXT/PLAIN) > Encoding: BASE64
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET