Helllo,
I’m trying to fill an histogram with BinContents and BinErrors from other histograms. What I do not understand is why the errors once the “new” histo is filled are bigger than those of departure.
As an example, I type:
[i] for(Int_t i=1; i < 10; i++){
AllMuonGenpT->SetBinContent(i,AllMuonGeneratedpT->GetBinContent(i));
AllMuonGenpT->SetBinError(i,AllMuonGeneratedpT->GetBinError(i));
AllMuonDetpT->SetBinContent(i,AllMuonDetectedpT->GetBinContent(i));
AllMuonDetpT->SetBinError(i,AllMuonGeneratedpT->GetBinError(i));
....
....
}[/i]
And taking a closer look to the process I see, as an example, for i = 2:
AllMuonDetectedpT->GetBinContent(i) = 4.774875e+06, AllMuonDetpT->GetBinContent(i) = 4.774875e+06,
AllMuonDetectedpT->GetBinError(i) = 2.000000e+00,
AllMuonDetpT->GetBinError(i) = 5.104556e+04
So errors change, and I do not understand why…
Could you help me, please?
Thanks in advance,
Regards,
Zaida