SW code for the RA4Analysis