The anatomy of the Orion B giant molecular cloud: A local template for studies of nearby galaxies