Getting value from TBranch is extremely slow

I ran the code. It is getting executed, but can’t find histograms in it!
For example, one of the histograms in the Tree has name: "CL_04_E01"

I have a question : How do I get the number of entries in the Tree?

Yes, I would like to put all the values in an array, say data (or a vector); which I can then access in another loop.

May be a code from my earlier post may help in explaining what I am trying to achieve.

All I want to do is the following:

Regards,

Ajay