Print

Print


Commit in SlicDiagnostics/src/org/lcsim/slic/diagnostics on MAIN
GenericHitPlots.java+15-71.21 -> 1.22
JM: Add a few more layer plots

SlicDiagnostics/src/org/lcsim/slic/diagnostics
GenericHitPlots.java 1.21 -> 1.22
diff -u -r1.21 -r1.22
--- GenericHitPlots.java	9 Feb 2006 01:13:19 -0000	1.21
+++ GenericHitPlots.java	9 Feb 2006 20:26:07 -0000	1.22
@@ -18,11 +18,13 @@
 import org.lcsim.geometry.segmentation.SegmentationBase;
 
 /**
- * A large set of diagnostic plots on GenericHits, which can be created
- * from SimCalorimeterHit or SimTrackerHit collections.
+ * A set of diagnostic plots on GenericHits, which can be created
+ * from SimCalorimeterHit or SimTrackerHit collections.  These plots
+ * include directories with plots of # hits and energies in individual 
+ * layers.
  * 
  * @author jeremym
- * @version $Id: GenericHitPlots.java,v 1.21 2006/02/09 01:13:19 jeremy Exp $
+ * @version $Id: GenericHitPlots.java,v 1.22 2006/02/09 20:26:07 jeremy Exp $
  */
 class GenericHitPlots extends AbstractPlots
 {
@@ -322,7 +324,10 @@
 			_aida.cloud1D("Layer " + layern + ": Hit Edep").fill(energy);
             
             // layer: hit XY
-            _aida.cloud2D("Layer " + layern + ": Hit XY").fill(x,y);   
+            _aida.cloud2D("Layer " + layern + ": Hit XY").fill(x,y);
+            
+            // layer: time
+            _aida.cloud1D("Layer " + layern + ": Hit Time").fill(time);
             cd();
 
 			// hit weighted layer energy
@@ -450,10 +455,13 @@
             
             // indiv layer plots
             cd();
+            String layerName = layerInfo.getTitleName(); 
             _aida.tree().cd(layerInfo.getDirName());              
-            _aida.cloud1D(layerInfo.getTitleName() + ": Total Energy").fill(layerInfo.getEdep());
-            _aida.cloud1D(layerInfo.getTitleName() + ": Average Hit Energy").fill(layerInfo.getAverageHitEdep());
-            _aida.cloud1D(layerInfo.getTitleName() + ": Total N Hits").fill(layerInfo.getNHits());
+            _aida.cloud1D(layerName + ": Total Energy").fill(layerInfo.getEdep());
+            _aida.cloud1D(layerName + ": Average Hit Energy").fill(layerInfo.getAverageHitEdep());
+            _aida.cloud1D(layerName + ": Total N Hits").fill(layerInfo.getNHits());
+            _aida.cloud1D(layerName + ": Percentage of N Hits").fill(layerInfo.getPercentNHits());
+            _aida.cloud1D(layerName + ": Percentage of Total Energy").fill(layerInfo.getPercentTotalEnergy());            
             cd();
 		}
 
CVSspam 0.2.8