Commit in hps-java/src/main/java/org/lcsim/hps/monitoring on MAIN
HPSCalibrationDriver.java+23-11.3 -> 1.4
Loads SVT calibration constants

hps-java/src/main/java/org/lcsim/hps/monitoring
HPSCalibrationDriver.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- HPSCalibrationDriver.java	31 May 2012 00:28:19 -0000	1.3
+++ HPSCalibrationDriver.java	13 Aug 2012 23:45:41 -0000	1.4
@@ -1,17 +1,39 @@
 package org.lcsim.hps.monitoring;
 
+import java.util.Date;
+
+import org.lcsim.geometry.Detector;
 import org.lcsim.hps.recon.ecal.HPSEcalConditions;
+import org.lcsim.hps.recon.tracking.HPSSVTCalibrationConstants;
 import org.lcsim.hps.recon.tracking.HPSSVTSensorSetup;
 import org.lcsim.util.Driver;
 
 /**
  *
  * @author Sho Uemura <[log in to unmask]>
- * @version $Id: HPSCalibrationDriver.java,v 1.3 2012/05/31 00:28:19 meeg Exp $
+ * @version $Id: HPSCalibrationDriver.java,v 1.4 2012/08/13 23:45:41 omoreno Exp $
  */
 public class HPSCalibrationDriver extends Driver {
+  
+    // The test run number of interest.  If it equals to -1, the defaults calibrations
+    // are loaded
+    int runNumber = -1; 
+    
+    /**
+     * 
+     */
+    public void setRunNumber(int runNumber){
+        this.runNumber = runNumber;
+    }
+    
+    @Override
+    public void detectorChanged(Detector detector){
+        HPSSVTCalibrationConstants.loadCalibrationConstants(new Date(System.currentTimeMillis()), runNumber);
+    }
+    
     public HPSCalibrationDriver() {
         add(new HPSEcalConditions());
         add(new HPSSVTSensorSetup());
+    
     }
 }
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