I want to read TH1I’s from a TFile and copy them into a TClonesArray, but i can’t figure out how to do it.
arr = (TH1I*) HistFromFile->Clone();
arr = HistFromFile;
doesn’t do it. I could just fill each bin individually, but that’s obviously a horrible hack.
thanks for helping my noob self. couldn’t find an example for this anywhere, though it’s surely a common task.