Commit in lcsim/src/org/lcsim/contrib/uiowa/devel on MAIN
CheatLikelihoodLinkDriver.java+60added 1.1
Work in progress [contrib]

lcsim/src/org/lcsim/contrib/uiowa/devel
CheatLikelihoodLinkDriver.java added at 1.1
diff -N CheatLikelihoodLinkDriver.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ CheatLikelihoodLinkDriver.java	19 Jul 2006 16:58:03 -0000	1.1
@@ -0,0 +1,60 @@
+package org.lcsim.recon.cluster.structural;
+
+import java.util.List;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.Vector;
+import java.util.Map;
+import java.util.HashMap;
+
+import org.lcsim.event.Cluster;
+import org.lcsim.recon.cluster.util.BasicCluster;
+import org.lcsim.event.EventHeader;
+import org.lcsim.event.CalorimeterHit;
+import org.lcsim.recon.cluster.structural.likelihood.*;
+import org.lcsim.util.hitmap.HitMap;
+
+/**
+ * Examine the components of large-scale clusters and
+ * determine whether they are actually linked using
+ * truth information.
+ *
+ * @author Mat Charles <[log in to unmask]>
+ * @version $Id: CheatLikelihoodLinkDriver.java,v 1.1 2006/07/19 16:58:03 mcharles Exp $
+ */
+
+public class CheatLikelihoodLinkDriver extends LikelihoodLinkDriver
+{
+    /**
+     * Constructor.
+     *
+     * @param eval                   The LikelihoodEvaluator which contains the likelihood PDFs
+     * @param cutTrackToTrack        To make a track-track link, the likelihood must be greater than this (e.g. 0.5)
+     * @param cutTrackToClump        To make a track-clump link, the likelihood must be greater than this (e.g. 0.5)
+     * @param cutClumpToClump        To make a clump-clump link, the likelihood must be greater than this (e.g. 0.5)
+     * @param listOfBigClustersThe   The List<Cluster> of large-scale clusters to grab from each event
+     * @param listOfTrackSegments    The List<Cluster> of track segments to grab from each event
+     * @param listOfClumps           The List<Cluster> of clumps to grab from each event
+     * @param outputListOfSkeletons  The List<Cluster> of linked clusters to write to the event when finished
+     * @param outputHitMap           The HitMap of unused hits to write to the event when finished
+     */
+    public CheatLikelihoodLinkDriver(String listOfBigClusters, String listOfTrackSegments, String listOfClumps, String outputListOfSkeletons, String outputHitMap) {
+	super(null, 0.0, 0.0, 0.0, listOfBigClusters, listOfTrackSegments, listOfClumps, outputListOfSkeletons, outputHitMap);
+    }
+
+    protected void compareTrackSegmentToTrackSegment(Cluster clus1, Cluster clus2)  {
+	if (checkAssociationComponentToComponent(clus1, clus2)) {
+	    m_vlinksTrackToTrack.add(new Link(clus1, clus2));
+	}
+    }
+    protected void compareTrackSegmentToClump(Cluster clus1, Cluster clus2)  {
+	if (checkAssociationComponentToComponent(clus1, clus2)) {
+	    m_vlinksTrackToClump.add(new Link(clus1, clus2));
+	}
+    }
+    protected void compareClumpToClump(Cluster clus1, Cluster clus2)  {
+	if (checkAssociationComponentToComponent(clus1, clus2)) {
+	    m_vlinksClumpToClump.add(new Link(clus1, clus2));
+	}
+    }
+}
CVSspam 0.2.8