The theta characteristic of a branched covering