Print

Print


Commit in GeomConverter/src/org/lcsim/detector/tracker/silicon on MAIN
HpsSiSensor.java+3-31.1 -> 1.2
use array of primitive double type instead of Double objects

GeomConverter/src/org/lcsim/detector/tracker/silicon
HpsSiSensor.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- HpsSiSensor.java	10 Oct 2013 01:42:28 -0000	1.1
+++ HpsSiSensor.java	10 Oct 2013 01:46:54 -0000	1.2
@@ -31,7 +31,7 @@
 	Map<Integer,Double> noiseMap = new HashMap<Integer,Double>();
 	Map<Integer,Double> offsetMap = new HashMap<Integer,Double>();
 	Map<Integer,Double> t0Map = new HashMap<Integer,Double>();
-	Map<Integer,Double[]> pulseParameterMap = new HashMap<Integer,Double[]>();
+	Map<Integer,double[]> pulseParameterMap = new HashMap<Integer,double[]>();
 	Set<Integer> badChannels = new HashSet<Integer>();
 	
 	private static final boolean debug = true;
@@ -121,7 +121,7 @@
 	 * @param channel The channel number.
 	 * @return The pulse parameters for the channel.
 	 */
-	public Double[] getPulseParameters(int channel) {
+	public double[] getPulseParameters(int channel) {
 		return pulseParameterMap.get(channel);
 	}
 
@@ -247,7 +247,7 @@
 	 * @param channel The channel number.
 	 * @param pulseParameters The pulse parameters array (should be length 4).
 	 */
-	public void setPulseParameters(int channel, Double[] pulseParameters) {
+	public void setPulseParameters(int channel, double[] pulseParameters) {
 		if (pulseParameters.length != 4)
 			throw new IllegalArgumentException("PulseParameters is wrong length: " + pulseParameters.length);
 		pulseParameterMap.put(channel, pulseParameters);
CVSspam 0.2.12


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