Customize the histogram title

Dear all,
say i read a root file and apploed some cut, and drew it. Now I know, that this can be achieved by either a macro or in root terminal. Now, in root terminal when I do, I get something like this (PFA). But even , in root macro , i am getting the same thing. I want to remove the Tcut from the above title, set my own x and yaxis title .and also remove entries box!

Any help would be greatly appreciated!
dstar_dm.C (1.3 KB)

To hide the title and stats box, add at the beginning:

  gStyle->SetOptTitle(0);
  gStyle->SetOptStat(0);

To set/change axes titles: after chain->Draw(...); do

  auto htemp = (TH1F*)gPad->GetPrimitive("htemp");
  htemp->GetXaxis()->SetTitle("your x title");
  htemp->GetYaxis()->SetTitle("your y title");

Can I change the title too?

You can make your own with TLatex.

Thank you!!