Commit in hps-java/src/main/java/org/lcsim/hps/conditions/svt on MAIN | |||
SvtCalibrationConstants.java | -62 | 1.1 removed |
remove unused class
diff -N SvtCalibrationConstants.java --- SvtCalibrationConstants.java 18 Sep 2013 02:33:16 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,62 +0,0 @@
-package org.lcsim.hps.conditions.svt; - -import java.util.ArrayList; -import java.util.List; - -/** - * Dummy class for holding SVT calibration data from conditions system. - * - * FIXME: SVT expert must provide actual implementation here. - * - * @author jeremym - * @version $Id: SvtCalibrationConstants.java,v 1.1 2013/09/18 02:33:16 jeremy Exp $ - */ -public class SvtCalibrationConstants { - - List<ChannelData> channelData = new ArrayList<ChannelData>(); - - /** - * Add a row of data. - * @param fpga The FPGA number. - * @param hybrid The hybrid number. - * @param channel The channel number. - * @param pedestal The pedestal value. - * @param noise The noise value. - */ - void addData(int fpga, int hybrid, int channel, double pedestal, double noise) { - System.out.println(fpga + " " + hybrid + " " + channel + " " + pedestal + " " + noise); - ChannelData data = new ChannelData(); - data.fpga = fpga; - data.hybrid = hybrid; - data.channel = channel; - data.pedestal = pedestal; - data.noise = noise; - channelData.add(data); - } - - /** - * Class for holding one record of SVT calibration data. - */ - public class ChannelData { - int fpga; - int hybrid; - int channel; - double pedestal; - double noise; - } - - /** - * Convert data to string format. - * @return The calibration constants converted to human readable string. - */ - public String toString() { - StringBuffer buff = new StringBuffer(); - buff.append("fpga hybrid channel pedestal noise"); - buff.append('\n'); - for (ChannelData data : channelData) { - buff.append(data.fpga + " " + data.hybrid + " " + data.channel + " " + data.pedestal + " " + data.noise); - buff.append('\n'); - } - return buff.toString(); - } -}
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1