Software to extract the event display format from the CMS primary dataset for 2011 data taking