This page collects general ROOT hints. For LHCb specific info see LHCbROOT.
If you are looking for an example containing some specific class (TObjArray below). grep for it in the tutorial directory:
grep
cd $ROOTSYS/tutorials/ grep -r TObjArray *