View Javadoc

1   /*
2    * SeedTrack.java
3    *
4    * Created on June 17, 2008, 11:34 AM
5    *
6    * To change this template, choose Tools | Template Manager
7    * and open the template in the editor.
8    */
9   
10  package org.lcsim.recon.tracking.seedtracker;
11  
12  import org.lcsim.event.base.BaseTrack;
13  
14  /**
15   * SeedTrack extends the BaseTrack class to methods to access the strategy
16   * used for finding the track.
17   * @author Richard Partridge
18   * @version 1.0
19   */
20  public class SeedTrack extends BaseTrack {
21      private SeedStrategy _strategy;
22      private SeedCandidate _seed;
23      
24      /**
25       * Creates a new instance of SeedTrack.
26       */
27      public SeedTrack() {
28          super();
29      }
30      
31      /**
32       * Set the strategy used for finding this track.
33       * @param strategy strategy used to find this track
34       */
35      public void setStratetgy(SeedStrategy strategy) {
36          _strategy = strategy;
37          return;
38      }
39      
40      /**
41       * Return the strategy used to find this track.
42       * @return strategy used to find the track
43       */
44      public SeedStrategy getStrategy() {
45          return _strategy;
46      }
47      
48      /**
49       * Store the SeedCandidate that this track was constructed from.
50       * @param seed seed candidate
51       */
52      public void setSeedCandidate(SeedCandidate seed) {
53          _seed = seed;
54          return;
55      }
56      
57      /**
58       * Return the SeedCandidate that this track was constructed from.
59       * @return seed candidate
60       */
61      public SeedCandidate getSeedCandidate() {
62          return _seed;
63      }
64  }