Print

Print


Author: [log in to unmask]
Date: Thu Jul 30 22:19:09 2015
New Revision: 3315

Log:
The ECal MC recon output changed and so must the test.

Modified:
    java/trunk/integration-tests/src/test/java/org/hps/test/it/EcalSimReconTest.java

Modified: java/trunk/integration-tests/src/test/java/org/hps/test/it/EcalSimReconTest.java
 =============================================================================
--- java/trunk/integration-tests/src/test/java/org/hps/test/it/EcalSimReconTest.java	(original)
+++ java/trunk/integration-tests/src/test/java/org/hps/test/it/EcalSimReconTest.java	Thu Jul 30 22:19:09 2015
@@ -53,27 +53,28 @@
     /**
      * Acceptable delta of high cluster mean energy in GeV.
      */
-    private static final double HIGH_CLUS_DELTA_E = 0.02;
+    private static final double HIGH_CLUS_DELTA_E = 0.05;
     
     /**
      * Expected mean time of primary cluster in nanoseconds.
      */
-    private static final double CLUS_MEAN_T = 150;   
+    private static final double CLUS_MEAN_T = 58.6;   
     
     /**
      * Acceptable delta of cluster time in nanoseconds.
      */    
-    private static final double CLUS_DELTA_T = 10;
+    private static final double CLUS_DELTA_T = 5;
     
     /**
      * Expected number of triggers.
      */
-    private static final int TRIGGERS = 650;
+    private static final int TRIGGERS = 880;
     
     /**
      * Acceptable delta of trigger count.
      */
-    private static final int TRIGGER_DELTA = 3;
+    private static final int TRIGGER_DELTA = 5;
+
     
     /**
      * Run the test.
@@ -157,7 +158,7 @@
          * Process events and fill histograms from cluster collection.
          */
         public void process(EventHeader event) {
-            List<Cluster> clusters = event.get(Cluster.class, "EcalClusters");
+            List<Cluster> clusters = event.get(Cluster.class, "EcalClustersCorr");
             clusCountH1D.fill(clusters.size());
             for (Cluster cluster : clusters) {
                 clusEnergyH1D.fill(cluster.getEnergy());
@@ -193,4 +194,4 @@
             TestCase.assertEquals("High cluster mean time was not within range.", CLUS_MEAN_T, clusTimeH1D.mean(), CLUS_DELTA_T);            
         }
     }    
-}
+}