GetEntries() for two different leafs in the same branch

Hello all,

I have a TTree branch with two different leafs with different amounts of entries (one has 75, the other has 228). I am looking to loop over both of them and I want to use GetEntries() to get the total number of events. When I apply: tree-> GetEntries(), it returns 75. I would like to know how to retrieve 228. I tried to do tree-> GetEntries(“OtherVariableName”), but it still only returns 75.

Thanks,
David

Never mind I figured it out! The variables were vectors, so they histogram displayed more events than there actually were.
Haha thanks anyways.