fixed bug in PoissonNoise due to wrong ROOT method
This commit is contained in:
parent
89ea4cb63f
commit
960d15da08
@ -119,7 +119,7 @@ void PAddPoissonNoise::AddNoise(TH1F *histo)
|
||||
return;
|
||||
|
||||
Double_t dval;
|
||||
for (UInt_t i=1; i<histo->GetEntries(); i++) {
|
||||
for (UInt_t i=1; i<(UInt_t)histo->GetNbinsX(); i++) {
|
||||
dval = histo->GetBinContent(i);
|
||||
histo->SetBinContent(i, PoiDev(dval));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user