TH1F variable bins

Hello,

I can’t seem to figure this out TH1F has constructor:
TH1F::TH1F(const char *name,const char *title,Int_t nbins,const Float_t *xbins)

How can I define const Float_t *xbins? I want my plots so they will scale to the maximums of the filled data.

Any help is appreciated.

Thanks!

example

float xbins[11] = {0,1,3,6,26,111,178,456,612,700,750}; int nbins = 10; TH1F *h = new TH1F("h","test",nbins,xbins);
Rene