Software for the CMS Upgraded Calorimeter Trigger System