1 package org.lcsim.material;
2
3
4
5
6
7
8 public class MaterialElement
9 {
10 private String _name;
11 private double _Z;
12 private double _A;
13 private double _nuclearInteractionLength;
14 private double _radiationLength;
15
16
17
18
19
20
21
22
23
24
25
26 MaterialElement(String name,
27 double Z,
28 double A,
29 double X0,
30 double lambda)
31 {
32
33 _name = name;
34 _Z = Z;
35 _A = A;
36 _radiationLength = X0;
37 _nuclearInteractionLength = lambda;
38
39
40 MaterialManager.instance().addElement(this);
41 }
42
43
44
45
46
47 public double getZ()
48 {
49 return _Z;
50 }
51
52
53
54
55
56 public double getA()
57 {
58 return _A;
59 }
60
61
62
63
64
65 public String getName()
66 {
67 return _name;
68 }
69
70
71
72
73
74 public double getNuclearInteractionLength()
75 {
76 return _nuclearInteractionLength;
77 }
78
79
80
81
82
83 public double getRadiationLength()
84 {
85 return _radiationLength;
86 }
87
88
89
90
91
92 public String toString()
93 {
94 return getName() + "; Z=" + _Z + "; A=" + _A + "; X0=" + _radiationLength + "; lambda=" + _nuclearInteractionLength;
95 }
96 }