Made independent of Event, Particle and ParticleTree classes