Commit in lcsim/src/org/lcsim/event/base on MAIN | |||
BaseRawCalorimeterHit.java | +34 | added 1.1 |
add missing base implementation of RawCalorimeterHit
diff -N BaseRawCalorimeterHit.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ BaseRawCalorimeterHit.java 21 Mar 2012 01:25:57 -0000 1.1 @@ -0,0 +1,34 @@
+package org.lcsim.event.base; + +import org.lcsim.event.RawCalorimeterHit; + +/** + * This is a basic implementation of {@link org.lcsim.event.RawCalorimeterHit}. + * @author Jeremy McCormick <[log in to unmask]> + */ +public class BaseRawCalorimeterHit implements RawCalorimeterHit { + + long id; + int amplitude; + int timestamp; + + protected BaseRawCalorimeterHit() {} + + public BaseRawCalorimeterHit(long id, int amplitude, int timestamp) { + this.id = id; + this.amplitude = amplitude; + this.timestamp = timestamp; + } + + public long getCellID() { + return id; + } + + public int getAmplitude() { + return amplitude; + } + + public int getTimeStamp() { + return timestamp; + } +}
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1