Pointer to histograms

Hello Again!

If I create a pointer to histogram, i.e.,

TH1F *h=new TH1F(…);

What I’m really creating?

A pointer to a histogram?

or A pointer to a histogram and the histogram itself?

Thank you!


This has nothing to do with ROOT, but basic C++.

You define/create a C++ pointer to an histogram and create a histogram object. You can view this histogram by calling h->Draw();


Thank you by replying!

Yeah, it’s in the user guide. I read this once I’ve posted this reply.