Print

Print


Commit in GeomConverter/src/org/lcsim/detector/tracker/silicon on MAIN
HpsSiSensor.java+18-11.5 -> 1.6
add sensor time shift

GeomConverter/src/org/lcsim/detector/tracker/silicon
HpsSiSensor.java 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- HpsSiSensor.java	11 Oct 2013 01:26:07 -0000	1.5
+++ HpsSiSensor.java	15 Oct 2013 22:48:27 -0000	1.6
@@ -31,6 +31,7 @@
 	Map<Integer,Double> gainMap = new HashMap<Integer,Double>();
 	Map<Integer,double[]> pulseParameterMap = new HashMap<Integer,double[]>();
 	Set<Integer> badChannels = new HashSet<Integer>();
+	double timeShift = Double.NaN;
 		
 	/**
 	 * This class constructor matches the signature of <code>SiSensor</code>.
@@ -150,7 +151,7 @@
 	 */
 	public boolean isBadChannel(int channel) {
 		return badChannels.contains(channel);
-	}
+	}	
 	
 	/**
 	 * Get the total number of channels in the sensor.
@@ -192,6 +193,14 @@
 	public int getLayerNumber() {
 		return getIdentifierHelper().getValue(getIdentifier(), "layer");
 	}
+	
+	/**
+	 * Get the time shift for this sensor.
+	 * @param ts The time shift for this sensor.	
+	 */
+	public double getTimeShift() {
+		return timeShift;
+	}
 
 	/**
 	 * Create an identifier for a channel.
@@ -287,6 +296,14 @@
 	}
 	
 	/**
+	 * Get the time shift for this sensor.
+	 * @param ts The time shift for this sensor.	
+	 */
+	public void setTimeShift(double timeShift) {
+		this.timeShift = timeShift;
+	}
+	
+	/**
 	 * Reset the time dependent conditions data of this sensor.
 	 * This does NOT reset the sensor setup information, which is
 	 * assumed to be fixed once it is setup for a given session.
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