Weighted Histogram not being generated as smooth curve using draw option "c"

Hi there! Hope you’re doing well.
I’ve been trying to obtain a weighted histogram through following code:

TH1F *Hist=new TH1F("Hist","Hist",100,-10,10);
for(unsigned int b=0;b<limit;b++){

I wanted the histogram to be generated as smooth curve by using the draw option “c” but the result that I’m getting is:

I’ve no idea what I did wrong. If the histogram is generated without weight, it does display as a smooth curve but it’s not working for a weighted histogram.

ROOT Version: 6.16/00
Platform: Ubuntu 18.04.4 LTS

Try the “hist” option