Better: JetPointer jet(new Jet(energy, px, py, pz));
and remove the _else_ loop.