Problem reading tree using Tselector

Dear All,
I am using Tselector to read a tree but I am having error that I don’t understand the reason. The error is like this:

Error in <TTreeReaderValueBase::GetBranchDataType()>: The branch PassDeltaR was created using a leaf list and cannot be represented as a C++ type. Please access one of its siblings using a TTreeReaderArray:
Error in <TTreeReaderValueBase::GetBranchDataType()>:    PassDeltaR.v_PassDeltaR
Error in <TTreeReaderValueBase::CreateProxy()>: The branch PassDeltaR contains data of type {UNDETERMINED TYPE}, which does not have a dictionary

I don’t do anything for now in the code after I generated .C and .h using Tselector so it should be related (I guess) to the way I have to read them.
The root file can me be found here: https://www.dropbox.com/s/9pb3duqyhwgg32i/Output_ana_EgammaStream-MuonStream_1_10_CC2.root?dl=0 (It’s too big to be downloaded here), the name of the tree inside the root file is: NT_4e
Can someone explain what’s the problem please ?

Cheers,

Diallo.


ROOT Version: Not Provided


Hi,
sorry for the late reply. The problem is that you are reading a branch that has been created as a leaflist, e.g. you might have struct S written as var1/I:var2/I, in which case you can’t read S directly but you have to read S.var1 and S.var2 separately.

Hope this helps!
Enrico