Commit in hps-java/src/main/java/org/lcsim/hps/users/omoreno on MAIN | |||
EcalHitPosition.java | +57 | added 1.1 |
GenericObject used to persist Ecal crystal positions
diff -N EcalHitPosition.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ EcalHitPosition.java 2 Jun 2013 18:24:06 -0000 1.1 @@ -0,0 +1,57 @@
+package org.lcsim.hps.users.omoreno; + +//--- lcsim ---// +import org.lcsim.event.GenericObject; + +/** + * + * + * @author Omar Moreno <[log in to unmask]> + * @version $Id: EcalHitPosition.java,v 1.1 2013/06/02 18:24:06 omoreno Exp $ + */ +public class EcalHitPosition implements GenericObject { + + double[] position; + + public EcalHitPosition(double[] position){ + this.position = position; + } + + /** + * + */ + @Override + public double getDoubleVal(int index) { + return position[index]; + } + + @Override + public float getFloatVal(int arg0) { + return 0; + } + + @Override + public int getIntVal(int arg0) { + return 0; + } + + @Override + public int getNDouble() { + return position.length; + } + + @Override + public int getNFloat() { + return 0; + } + + @Override + public int getNInt() { + return 0; + } + + @Override + public boolean isFixedSize() { + return true; + } +}
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