CME geometry in relation to cosmic ray anisotropy