I have a plotting script which make and fills TH1’s, and I want to change the TH1’s to Ntuples, so I can analyse the data easily, Is there a straight forward way to link the TH1’s to a TTree?
Or are there any more efficient ways to tackle this problem?
There is no direct “conversion” from a histograms oriented data store to a ntuple one. You need to define the variables you are looking for, create the corresponding ntuple, fill it and then you will be able to create histograms from it.