lcsim/src/org/lcsim/digisim
diff -u -r1.4 -r1.5
--- FunctionModifier.java 25 May 2005 17:50:26 -0000 1.4
+++ FunctionModifier.java 27 Jun 2005 21:39:07 -0000 1.5
@@ -10,7 +10,7 @@
* the implementation of real function-based modifiers.
*
* @author Guilherme Lima
- * @version $Id: FunctionModifier.java,v 1.4 2005/05/25 17:50:26 lima Exp $
+ * @version $Id: FunctionModifier.java,v 1.5 2005/06/27 21:39:07 lima Exp $
*/
abstract class FunctionModifier extends AbstractCalHitModifier {
@@ -44,17 +44,12 @@
double tmpEnergy, tmpTime;
// apply gain
- Set<Map.Entry<Long,TempCalHit>> hits = hitmap.entrySet();
- for( Map.Entry<Long,TempCalHit> ientry : hits ) {
- TempCalHit ihit = ientry.getValue();
+ for( Long id : hitmap.keySet() ) {
+ TempCalHit ihit = hitmap.get(id);
// function-based energy transformation
tmpEnergy = transformEnergy( ihit );
ihit.setEnergy( tmpEnergy );
-
- // function-based time smearing
- tmpTime = transformTime( ihit );
- ihit.setTime( tmpTime );
}
}
@@ -78,11 +73,6 @@
*/
abstract protected double transformEnergy(final TempCalHit hit);
- /** A function which transforms the timing in the hit, according
- * to some function, which should be defined in the subclasses
- */
- abstract protected double transformTime(final TempCalHit hit);
-
//=== FIELDS ===
/** function parameters */