lcsim/src/org/lcsim/event/base
diff -u -r1.6 -r1.7
--- BaseMCParticle.java 24 Aug 2011 18:51:17 -0000 1.6
+++ BaseMCParticle.java 10 Jul 2012 07:20:27 -0000 1.7
@@ -3,7 +3,7 @@
*
* Created on March 30, 2006, 8:58 AM
*
- * $Id: BaseMCParticle.java,v 1.6 2011/08/24 18:51:17 jeremy Exp $
+ * $Id: BaseMCParticle.java,v 1.7 2012/07/10 07:20:27 grefe Exp $
*/
package org.lcsim.event.base;
@@ -28,6 +28,7 @@
protected double charge;
protected float[] spin = new float[3];
protected int[] colorFlow = new int[2];
+ protected double time;
/**
* Creates a new instance of BaseMCParticle
@@ -40,6 +41,7 @@
public BaseMCParticle(Hep3Vector origin,HepLorentzVector p,ParticleType ptype,int status, double time)
{
super(origin, p, ptype, status, time);
+ this.time = time;
}
/**
@@ -75,6 +77,16 @@
_status = new Status(value);
}
+ public void setProductionTime(double time)
+ {
+ this.time = time;
+ }
+
+ @Override
+ public double getProductionTime() {
+ return time;
+ }
+
public String toString()
{
// TODO fix this to call super.toString() when BasicParticle implements toString()