Author: [log in to unmask]
Date: Tue Feb 10 17:44:18 2015
New Revision: 2100
Log:
Checkin change from ClusterDriver updates.
Modified:
java/trunk/ecal-recon/src/test/java/org/hps/recon/ecal/cluster/ClustererTest.java
Modified: java/trunk/ecal-recon/src/test/java/org/hps/recon/ecal/cluster/ClustererTest.java
=============================================================================
--- java/trunk/ecal-recon/src/test/java/org/hps/recon/ecal/cluster/ClustererTest.java (original)
+++ java/trunk/ecal-recon/src/test/java/org/hps/recon/ecal/cluster/ClustererTest.java Tue Feb 10 17:44:18 2015
@@ -31,7 +31,7 @@
import org.lcsim.util.test.TestUtil.TestOutputFile;
/**
- * This test does basic sanity checks on the output from the Clusterer algorithms,
+ * This test does basic sanity checks on the output from the {@link Clusterer} algorithms,
* and it creates an AIDA file with some useful plots, as well as optionally writes
* an LCIO file with the event data plus the clusters.
*
@@ -39,7 +39,7 @@
*/
public class ClustererTest extends TestCase {
- static int nEvents = 100;
+ static int nEvents = 50;
static final String fileLocation = "http://www.lcsim.org/test/hps-java/MockDataReconTest.slcio";
File inputFile;
File testOutputDir;
@@ -73,17 +73,7 @@
checkSeedHit = true;
return this;
}
-
- ClustererTestSetup applyCorrections() {
- applyCorrections = true;
- return this;
- }
-
- ClustererTestSetup calculateProperties() {
- calculateProperties = true;
- return this;
- }
-
+
ClustererTestSetup sortHits() {
sortHits = true;
return this;
@@ -244,13 +234,13 @@
clusterDriver.setCuts(setup.cuts);
}
clusterDriver.getLogger().setLevel(Level.ALL);
+ System.out.println("ClusterDriver log level " + clusterDriver.getLogger().getLevel());
+ System.out.println("info is loggable " + clusterDriver.getLogger().isLoggable(Level.INFO));
+ System.out.println("finest is loggable " + clusterDriver.getLogger().isLoggable(Level.FINEST));
clusterDriver.setInputHitCollectionName("EcalHits");
clusterDriver.setOutputClusterCollectionName(clusterCollectionName);
clusterDriver.setRaiseErrorNoHitCollection(true);
- clusterDriver.setCalculateProperties(setup.calculateProperties);
clusterDriver.setSortHits(setup.sortHits);
- clusterDriver.setApplyCorrections(setup.applyCorrections);
- clusterDriver.getLogger().setLevel(Level.CONFIG);
loop.add(clusterDriver);
// This Driver generates plots and the output LCIO file.
|