166 TGraphAsymmErrors*
BayesInternal( TH1* hn, TH1* hd,
double scale=100)
const {
177 for (
int i=1 ; i<=hd->GetNbinsX() ; i++ ) {
178 double y = hd->GetBinContent(i);
179 if (
y==0 ) hd->SetBinContent(i, 1e-20);
182 TGraphAsymmErrors* tg =
new TGraphAsymmErrors( hn, hd,
"cl=0.683 b(1,1) mode" );
185 double*
x = tg->GetX();
186 double*
y = tg->GetY();
190 for (
int i=0 ; i<n ; i++ ) {
194 double yeup = tg->GetErrorYhigh(i);
195 double yedown = tg->GetErrorYlow(i);
207 tg->SetPoint( i,
x[i],
y[i] );
209 tg->SetPointEYhigh( i, yeup );
210 tg->SetPointEYlow( i, yedown );
212 tg->SetPointEXhigh( i, 0 );
213 tg->SetPointEXlow( i, 0 );