The ATLAS and CMS detectors and triggers for B physics