Jet and photon physics in pp collisions at the LHC