CMS Detection Scripts