I have written as array of vectors of type UShort_t in a root tree output file. I declared it as, vector<UShort_t> test (it has to be type UShort_t). While trying to make the selector files from the root Tree, I have received an error which says:
Error in <AnalyzeBranch>: Unsupported type for test.
I tried to write the TTreeReader explicitly but failed to read the array. I am not sure how to handle this error. Does anyone have any suggestions? Thank you so much in advance.
Thanks for your responses. I am providing more concrete information with examples. I am attaching my root file where pulse was declared as a vector of vectors (or an array of vectors which I had mentioned initially, neither worked for me. If I make an array of vector, I cannot even create a selector file, so I have moved to a vectors of vector). After creating my root file (and the tree), I have generated the Selector file where I see pulse as,
Where detector is an object in my detector class. I have written a simple macro to create histograms for ‘pulse’. Before making any histograms, I just tried to get the size of ‘pulse’ and my code crushed.
A few things, does TTreeResder not support a vector of vector, why I am seeing it as an Array of Vectors in the TTReeReader?
How I get the size of my ‘pulse’ vector, is it just detector_pulse->size()? test-run.root (1.2 MB)