SlicDiagnostics/src/org/lcsim/slic/diagnostics
diff -u -r1.6 -r1.7
--- CalorimeterHitPlots.java 17 Aug 2005 03:55:19 -0000 1.6
+++ CalorimeterHitPlots.java 17 Aug 2005 04:14:31 -0000 1.7
@@ -29,6 +29,7 @@
ICloud1D mcpPDG;
ICloud1D mcpSingleContribPDG;
ICloud1D hitCorrectedEnergy;
+ ICloud2D hitRawVsCorrectedEnergy;
List<SimCalorimeterHit> hits;
@@ -50,10 +51,11 @@
{
super.definePlots();
- mcpCountPerHit = aida.cloud1D(makePlotName("MCParticles per Hit"));
+ mcpCountPerHit = aida.cloud1D(makePlotName("Contributing MCParticles per Hit"));
mcpPDG = aida.cloud1D(makePlotName("MCParticle PDGID"));
mcpSingleContribPDG = aida.cloud1D(makePlotName("MCParticle Single Contribution PDGID"));
hitCorrectedEnergy = aida.cloud1D(makePlotName("Hit Corrected Energy"));
+ hitRawVsCorrectedEnergy = aida.cloud2D(makePlotName("Hit Raw vs Corrected Energy"));
}
public void fill()
@@ -73,6 +75,9 @@
{
/* corrected energy */
hitCorrectedEnergy.fill(hit.getCorrectedEnergy());
+
+ /* raw vs corrected */
+ hitRawVsCorrectedEnergy.fill(hit.getRawEnergy(), hit.getCorrectedEnergy());
/* MCP plots */
int nmcp = hit.getMCParticleCount();