View Javadoc

1   /*
2    * MaterialCylinder.java
3    *
4    * Created on November 8, 2007, 2:10 PM
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.detector.IPhysicalVolume;
13  
14  /**
15   *
16   * @author partridge
17   */
18  public class MaterialCylinder {
19      private IPhysicalVolume _pv;
20      private double _radius;
21      private double _zmin;
22      private double _zmax;
23      private double _t_RL;
24      
25      /** Creates a new instance of MaterialCylinder */
26      public MaterialCylinder(IPhysicalVolume pv, double radius, double zmin, double zmax, double t_RL) {
27          _pv = pv;
28          _radius = radius;
29          _zmin = zmin;
30          _zmax = zmax;
31          _t_RL = t_RL;
32     }
33      
34      public double radius() {
35          return _radius;
36      }
37      
38      public double zmin() {
39          return _zmin;
40      }
41      
42      public double zmax() {
43          return _zmax;
44      }
45      
46      public double ThicknessInRL() {
47          return _t_RL;
48      }
49  
50      public String toString()
51      {
52          StringBuffer sb = new StringBuffer("Tracker MaterialCylinder for "+_pv.getName()+"\n");
53          sb.append("radius =  "+_radius+"\n");
54          sb.append("Z min = "+_zmin+"\n");
55          sb.append("Z max = "+_zmax+"\n");
56          sb.append("Thickness (in RL) = "+_t_RL+"\n");
57          return sb.toString();
58      }    
59  }