lcsim/src/org/lcsim/recon/cluster/density
diff -u -r1.1 -r1.2
--- MyCalorimeterHit.java 12 Aug 2005 19:59:49 -0000 1.1
+++ MyCalorimeterHit.java 27 Sep 2005 20:46:27 -0000 1.2
@@ -1,10 +1,13 @@
package org.lcsim.recon.cluster.density;
import org.lcsim.event.SimCalorimeterHit;
+import org.lcsim.event.CalorimeterHit;
+import org.lcsim.geometry.IDDecoder;
+import org.lcsim.geometry.Subdetector;
-public class MyCalorimeterHit {
+public class MyCalorimeterHit implements CalorimeterHit {
- public MyCalorimeterHit(SimCalorimeterHit myHit){
+ public MyCalorimeterHit(SimCalorimeterHit myHit) {
_myHit = myHit;
initDensity();
}
@@ -16,8 +19,8 @@
}
public void setDensity(int index, double density){
- if(index>=_dens.length) throw new IllegalArgumentException();
- _dens[index] = density;
+ if(index>=_dens.length) throw new IllegalArgumentException();
+ _dens[index] = density;
}
public double getDensity(int index){
@@ -25,10 +28,15 @@
return this._dens[index];
}
- public SimCalorimeterHit getHit(){
- return this._myHit;
- }
+ public double getRawEnergy() { return _myHit.getRawEnergy(); }
+ public double getCorrectedEnergy() { return _myHit.getCorrectedEnergy(); }
+ public long getCellID() { return _myHit.getCellID(); }
+ public IDDecoder getIDDecoder() { return _myHit.getIDDecoder(); }
+ public Subdetector getSubdetector() { return _myHit.getSubdetector(); }
+ public double getTime() { return _myHit.getTime(); }
+ public double[] getPosition() { return _myHit.getPosition(); }
- private SimCalorimeterHit _myHit;
+ //*** FIELDS
+ SimCalorimeterHit _myHit;
private double [] _dens;
}