Direct and indirect production of photon, lepton and hadron pairs in hadron-hadron collisions