I’ve a pretty simple code, not sure why it gives me a segmentation error.
[code][color=#BF0000]#include <TH1D.h>
void temp(){
TH1D *h1 = new TH1D("h1", "", 1000, -10, 10);
TH1D *h2 = new TH1D("h2", "", 1000, -10, 10);
h1->FillRandom("gaus", 100000);
h2->FillRandom("landau", 100000);
h1->Draw();
TH1D *h3 = 0;
h3 = (TH1D*)h2->Divide(h1);
h3->Draw("same");
}[/color]
[/code]
Help appreciated