The level-1 calorimeter trigger for the CMS detector at LHC