hps-java/src/main/java/org/lcsim/hps/recon/tracking
diff -u -r1.4 -r1.5
--- TrackerReconDriver.java 19 Jan 2012 22:48:34 -0000 1.4
+++ TrackerReconDriver.java 19 Jan 2012 23:56:54 -0000 1.5
@@ -21,7 +21,7 @@
* It is intended to work with the {@link TrackerDigiDriver} digitization Driver.
*
* @author jeremym
- * @version $Id: TrackerReconDriver.java,v 1.4 2012/01/19 22:48:34 jeremy Exp $
+ * @version $Id: TrackerReconDriver.java,v 1.5 2012/01/19 23:56:54 jeremy Exp $
*/
public final class TrackerReconDriver extends Driver
{
@@ -67,14 +67,29 @@
// Track to MC relations output collection.
private String helicalTrackMCRelationsCollectionName = "HelicalTrackMCRelations";
+ // Max strip separation when making HelicalTrackHits.
+ private double stripMaxSeparation = 10.01;
+
+ // Tolerance factor when making HelicalTrackHits.
+ private double stripTolerance = 0.01;
+
public TrackerReconDriver()
{}
-
+
public void setSubdetectorName(String subdetectorName)
{
this.subdetectorName = subdetectorName;
}
+ /**
+ * Set the tracking strategy resource.
+ * @param strategyResource The absolute path to the strategy resource in the hps-java jar.
+ */
+ public void setStrategyResource(String strategyResource)
+ {
+ this.strategyResource = strategyResource;
+ }
+
public void setHelicalTrackHitRelationsCollectionName(String helicalTrackHitRelationsCollectionName)
{
this.helicalTrackHitRelationsCollectionName = helicalTrackHitRelationsCollectionName;
@@ -110,16 +125,17 @@
{
this.trackCollectionName = trackCollectionName;
}
-
- /**
- * Set the tracking strategy resource.
- * @param strategyResource The absolute path to the strategy resource.
- */
- public void setStrategyResource(String strategyResource)
+
+ public void setStripMaxSeparation(double stripMaxSeparation)
{
- this.strategyResource = strategyResource;
+ this.stripMaxSeparation = stripMaxSeparation;
}
+ public void setStripTolerance(double stripTolerance)
+ {
+ this.stripTolerance = stripTolerance;
+ }
+
/**
* Set the SimTrackerHit collection to be used for tracking.
* @param simTrackerHitCollectionName The name of the SimTrackerHit collection in the event.
@@ -175,8 +191,8 @@
{
hthdriver.setStereoPair(subdetectorName, pair[0], pair[1]);
}
- hthdriver.setMaxSeperation(10.01); // user parameter?
- hthdriver.setTolerance(0.01); // user parameter?
+ hthdriver.setMaxSeperation(stripMaxSeparation);
+ hthdriver.setTolerance(stripTolerance); // user parameter?
hthdriver.setTransformToTracking(true);
add(hthdriver);
@@ -249,6 +265,6 @@
public void endOfData()
{
System.out.println("-------------------------------------------");
- System.out.println(this.getName() + " found " + ntracks + " tracks in " + nevents + " events which is " + ((double)ntracks/(double)nevents) + " efficiency.");
+ System.out.println(this.getName() + " found " + ntracks + " tracks in " + nevents + " events which is " + ((double)ntracks/(double)nevents) + " tracks per event.");
}
}
\ No newline at end of file