System design for precise digitization and readout of the CSNS-WNS BaF2 spectrometer*Supported by National Research and Development plan (2016YFA0401602) and NSAF (U1530111). (February 2017)