lcsim/src/org/lcsim/mc/fast/tracking
diff -u -r1.13 -r1.14
--- MCFastTracking.java 27 Apr 2007 20:09:46 -0000 1.13
+++ MCFastTracking.java 27 Apr 2007 21:14:03 -0000 1.14
@@ -1,7 +1,7 @@
package org.lcsim.mc.fast.tracking;
/**
- * $Id: MCFastTracking.java,v 1.13 2007/04/27 20:09:46 mcharles Exp $
+ * $Id: MCFastTracking.java,v 1.14 2007/04/27 21:14:03 mcharles Exp $
*/
import hep.physics.particle.Particle;
import java.io.IOException;
@@ -30,6 +30,7 @@
private final static double[] IP = { 0, 0, 0 };
private boolean defaultMC = true;
private String fsname;
+ private String outputListName = null;
public MCFastTracking()
{
@@ -146,9 +147,15 @@
trackList.add(new ReconTrack(bField, parm, SmTbl, getRandom(), p, hist, simple));
}
- event.put(EventHeader.TRACKS, trackList, Track.class, 0);
+ if (outputListName == null) {
+ outputListName = EventHeader.TRACKS;
+ }
+ event.put(outputListName, trackList, Track.class, 0);
}
-
+
+ /** Specify the name under which to write out the list of tracks to the event. Default is EventHeader.TRACKS ("Tracks") */
+ public void setOutputList(String name) { outputListName = name; }
+
public void conditionsChanged(ConditionsEvent event)
{
ConditionsSet conditions = getConditionsManager().getConditions("TrackParameters");