A Pre-Analysis and Data-Storage Unit for the CHIMERA DAQ