lcsim-cal-calib/src/org/lcsim/cal/calib
diff -u -r1.5 -r1.6
--- SamplingFractionAnalysisDriver.java 27 May 2008 21:38:29 -0000 1.5
+++ SamplingFractionAnalysisDriver.java 6 Jun 2008 15:17:22 -0000 1.6
@@ -3,7 +3,7 @@
*
* Created on May 19, 2008, 11:54 AM
*
- * $Id: SamplingFractionAnalysisDriver.java,v 1.5 2008/05/27 21:38:29 ngraf Exp $
+ * $Id: SamplingFractionAnalysisDriver.java,v 1.6 2008/06/06 15:17:22 ngraf Exp $
*/
package org.lcsim.cal.calib;
@@ -54,6 +54,8 @@
private ITree _tree;
private boolean _initialized;
+ private boolean _debug = false;
+
// TODO fix this dependence on EM calorimeter geometry
boolean skipFirstLayer = false;
@@ -197,16 +199,17 @@
// System.out.println("ready to cluster "+hitsToCluster.size()+ " hits");
String processedHitsName = _cond.getString("ProcessedHitsCollectionName");
List<CalorimeterHit> hitsToCluster = _collectionmanager.getList(processedHitsName);//event.get(CalorimeterHit.class, processedHitsName);
-
+
+ if(_debug) System.out.println("clustering "+hitsToCluster.size()+" hits");
// quick check
- for(CalorimeterHit hit : hitsToCluster)
- {
- System.out.println("hit ");
- System.out.println(hit.getLCMetaData().getName());
- }
+// for(CalorimeterHit hit : hitsToCluster)
+// {
+// System.out.println("hit ");
+// System.out.println(hit.getLCMetaData().getName());
+// }
// cluster the hits
List<Cluster> clusters = _fcc.createClusters(hitsToCluster);
-// System.out.println("found "+clusters.size()+" clusters");
+ if(_debug) System.out.println("found "+clusters.size()+" clusters");
aida.histogram1D("number of found clusters", 10, -0.5, 9.5).fill(clusters.size());
for(Cluster c : clusters)
{