I want to “clone” or “copy” everything from an histogram, except the events is contains. So the clone or copy should should have everything (axis, title, bin etc…) but it should be empty. How Can I do that?
PS: do not want to clone and then set the bin to 0. What I need is really to copy the histogram “structure” only.
TH1D *NewHist = new TH1D(*OldHist);
NewHist->SetName("NewHist"); // change its "name" (its "title" is not changed)
NewHist->Reset("M"); // ("") ... or ... ("M")