View Javadoc

1   package org.lcsim.recon.tracking.trfbase;
2   /** NullSimInteractor does not modify the track when called.
3    *
4    * @author Norman A. Graf
5    * @version 1.0
6    */
7   public class NullSimInteractor extends SimInteractor
8   {
9       
10      // Static methods
11      
12      //
13      
14      /**
15       *Return the type name.
16       *
17       * @return String representation of class type
18       *Included only for completeness with C++ version
19       */
20      public static String typeName()
21      { return "NullSimInteractor"; }
22      
23      //
24      /**
25       *Return the type.
26       *
27       *
28       * @return String representation of class type
29       *Included only for completeness with C++ version
30       */
31      public static String staticType()
32      { return typeName(); }
33      
34      // Non-static methods
35      
36      //
37      
38      
39      /**
40       *Constructor
41       *
42       */
43      public NullSimInteractor()
44      {}
45      
46      //
47      
48      /**
49       *Return the generic type.
50       *This is only needed at this level.
51       *
52       * @return String representation of class type
53       *Included only for completeness with C++ version
54       */
55      public String genericType()
56      { return staticType(); }
57      
58      //
59      
60      /**
61       *Return the type.
62       *
63       * @return String representation of class type
64       *Included only for completeness with C++ version
65       */
66      public String type()
67      { return staticType(); }
68      
69      
70      //
71      
72      /**
73       *Interact: modify the track vector
74       *
75       * @param   vtrk VTrack to interact
76       */
77      public void interact( VTrack vtrk)
78      {
79      }
80      
81      //
82      
83      /**
84       *make a clone
85       *
86       * @return new copy of this Interactor
87       */
88      public SimInteractor newCopy()
89      {
90          return new NullSimInteractor();
91      }
92      
93      //
94      
95      /**
96       *output stream
97       *
98       * @return String representation of this class
99       */
100     public String toString()
101     {
102         String className = getClass().getName();
103         int lastDot = className.lastIndexOf('.');
104         if(lastDot!=-1)className = className.substring(lastDot+1);
105         
106         return className;
107     }
108 }
109 
110 
111 
112 
113 
114 
115