Commit in lcsim/src/org/lcsim/event/base on MAIN
BaseMCParticle.java+13-11.6 -> 1.7
Added a setProductionTime method

lcsim/src/org/lcsim/event/base
BaseMCParticle.java 1.6 -> 1.7
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()
CVSspam 0.2.12


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