Study of the CMS preshower system