Author: [log in to unmask]
Date: Wed Oct 29 23:36:05 2014
New Revision: 1338
Log:
Abstract class providing some of the basic functionality used to relate a t0 shift value with either a FEB ID/FEB hybrid ID or an FPGA ID/hybrid ID.
Added:
java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtT0Shift.java (with props)
Added: java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtT0Shift.java
=============================================================================
--- java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtT0Shift.java (added)
+++ java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtT0Shift.java Wed Oct 29 23:36:05 2014
@@ -0,0 +1,38 @@
+package org.hps.conditions.svt;
+
+import org.hps.conditions.AbstractConditionsObject;
+import org.hps.conditions.ConditionsObjectCollection;
+import org.hps.util.Pair;
+
+/**
+ * Abstract class providing some of the basic functionality used to
+ * relate a t0 shift value with either a FEB ID/FEB hybrid ID or
+ * an FPGA ID/hybrid ID.
+ *
+ * @author Omar Moreno <[log in to unmask]>
+ */
+public class AbstractSvtT0Shift extends AbstractConditionsObject {
+
+ public static abstract class AbstractSvtT0ShiftCollection<T extends AbstractSvtT0Shift>
+ extends ConditionsObjectCollection<T> {
+
+ /**
+ * Get the t0 shift associated with a given DAQ pair
+ *
+ * @param DAQ pair for a given sensor
+ * @return The t0 shift associated with the DAQ pair. If a t0 shift
+ * for a given DAQ pair can't be found, it returns null.
+ */
+ public abstract T getT0Shift(Pair<Integer, Integer> pair);
+
+ }
+
+ /**
+ * Get the t0 shift.
+ *
+ * @return The t0 shift.
+ */
+ double getT0Shift() {
+ return getFieldValue("t0_shift");
+ }
+}
|