reformatted with bcpp.
changed TObjArrays to vectors.