View Javadoc

1   package org.lcsim.event.base;
2   
3   import java.util.List;
4   
5   import org.lcsim.event.CalorimeterHit;
6   import org.lcsim.event.Cluster;
7   
8   /**
9    * ClusterPropertyCalculator Interface
10   * 
11   * @author cassell
12   */
13  public interface ClusterPropertyCalculator {
14  
15      /**
16       * Calculate properties from a CalorimeterHit list.
17       */
18      public void calculateProperties(List<CalorimeterHit> hits);
19      
20      /**
21       * Calculate properties from a cluster.
22       */
23      public void calculateProperties(Cluster cluster);
24  
25      /**
26       * Return position
27       */
28      public double[] getPosition();
29  
30      /**
31       * Return position error
32       */
33      public double[] getPositionError();
34  
35      /**
36       * Return phi direction
37       */
38      public double getIPhi();
39  
40      /**
41       * Return theta direction
42       */
43      public double getITheta();
44  
45      /**
46       * Return direction error
47       */
48      public double[] getDirectionError();
49  
50      /**
51       * Return shape parameters
52       */
53      public double[] getShapeParameters();
54  }