Study of magnetic clouds and associated cosmic ray intensity variations