Author: [log in to unmask]
Date: Thu Aug 27 14:00:54 2015
New Revision: 3417
Log:
Add an enum constant 'MatchedTracks' which represents the default type assigned to a Track. Document what strategy was used by default for each of the passes.
Modified:
java/trunk/tracking/src/main/java/org/hps/recon/tracking/TrackType.java
Modified: java/trunk/tracking/src/main/java/org/hps/recon/tracking/TrackType.java
=============================================================================
--- java/trunk/tracking/src/main/java/org/hps/recon/tracking/TrackType.java (original)
+++ java/trunk/tracking/src/main/java/org/hps/recon/tracking/TrackType.java Thu Aug 27 14:00:54 2015
@@ -2,7 +2,8 @@
/**
* Enum constants for different {@link Track}s based on what tracking
- * strategy was used.
+ * strategy was used. The type is defined by comparing the tracking strategy
+ * name to the name of all the enum constants.
*
* @author Omar Moreno <[log in to unmask]>
*/
@@ -12,14 +13,26 @@
// enum constants should be simply added to the end of the list.
/** Enum values corresponding to different tracking strategies */
+ /**
+ * This is the default TrackType value set by the reconstruction. It
+ * represents the following track finding algorithms for the first
+ * two passes:
+ *
+ * pass 1 - Seed 123, confirm 4, extend 56
+ * pass 2 - Seed 345, confirm 2, extend 16
+ *
+ * For pass 3? and beyond, this should no longer be needed since multiple
+ * versions of the same track will no longer exist.
+ */
+ MATCHED_TRACKS(1),
+ /** Seed 345, confirm 2, extend 16 */
+ S345_C2_E16(2),
+ /** Seed 456, confirm 3, extend 21 */
+ S456_C3_E21(3),
/** Seed 123, confirm 4, extend 56 */
- S123_C4_E56(1000),
+ S123_C4_E56(4),
/** Seed 123, confirm 5, extend 46 */
- S123_C5_E46(1001),
- /** Seed 345, confirm 2, extend 16 */
- S345_C2_E16(1003),
- /** Seed 456, confirm 3, extend 21 */
- S456_C3_E21(1004);
+ S123_C5_E46(5);
private int type;
|