I have several root files and want to get value from 2D-array to make a histogram.
But I only need [1~6]x[1~3], [1~6]x[1~3], [1~6]x[1~3] data of my 9x5 array.
First I chain all of them first, then do: mychain->SetBranchAddress("dth",&dth); Long64_t nentries = mychain->GetEntries(); for(Int_t i=0;i<nentries;i++){mychain->GetEntry(i);.......
Then I can’t find out anyway to do it…Should I store it into Vector, or is there another faster and better way to do?
What is your favorite way of access the data (i.e. for example when you don’t need the filtering) [Asking so we can tweak that method rather introducing a new one].
It’s really dumb that I didn’t notice it…Thanks!
But after I correct it I got:
Error: Can't call vector<double,allocator<double> >::data() in current scope eldth2.cpp:60:
Possible candidates are...
(in vector<double,allocator<double> >)
*** Interpreter error recovered ***