1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // File name: RadmonDetectorLayerVolumeItem.icc |
---|
28 | // Creation date: Sep 2005 |
---|
29 | // Main author: Riccardo Capra <capra@ge.infn.it> |
---|
30 | // |
---|
31 | // Id: $Id: RadmonDetectorLayerVolumeItem.icc,v 1.4 2006/06/29 16:10:19 gunter Exp $ |
---|
32 | // Tag: $Name: $ |
---|
33 | // |
---|
34 | |
---|
35 | #ifndef RADMONDETECTORLAYERVOLUMEITEM_HH |
---|
36 | #error "RadmonDetectorLayerVolumeItem.icc cannot be included directly. Please use RadmonDetectorLayerVolumeItem.hh" |
---|
37 | #else /* RADMONDETECTORLAYERVOLUMEITEM_HH */ |
---|
38 | inline RadmonDetectorLayerVolumeItem :: RadmonDetectorLayerVolumeItem() |
---|
39 | : |
---|
40 | volumeSolid(0), |
---|
41 | volumeAttributes(0), |
---|
42 | volumeMaterial(0), |
---|
43 | volumeLogical(0), |
---|
44 | volumePhysical(0), |
---|
45 | volumeSensitiveDetector(0), |
---|
46 | volumeMother(0) |
---|
47 | { |
---|
48 | } |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | inline void RadmonDetectorLayerVolumeItem :: SetSolid(G4VSolid * solid) |
---|
55 | { |
---|
56 | Assertion(); |
---|
57 | volumeSolid=solid; |
---|
58 | } |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | inline void RadmonDetectorLayerVolumeItem :: SetAttributes(G4VisAttributes * attrs) |
---|
63 | { |
---|
64 | Assertion(); |
---|
65 | volumeAttributes=attrs; |
---|
66 | } |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | inline void RadmonDetectorLayerVolumeItem :: SetMaterial(G4Material * material) |
---|
71 | { |
---|
72 | Assertion(); |
---|
73 | volumeMaterial=material; |
---|
74 | } |
---|
75 | |
---|
76 | |
---|
77 | |
---|
78 | inline void RadmonDetectorLayerVolumeItem :: SetName(const G4String & name) |
---|
79 | { |
---|
80 | Assertion(); |
---|
81 | volumeName=name; |
---|
82 | } |
---|
83 | |
---|
84 | |
---|
85 | |
---|
86 | inline void RadmonDetectorLayerVolumeItem :: SetPosition(const G4ThreeVector & position) |
---|
87 | { |
---|
88 | Assertion(); |
---|
89 | volumePosition=position; |
---|
90 | } |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | inline void RadmonDetectorLayerVolumeItem :: SetRotation(const G4RotationMatrix & rotation) |
---|
95 | { |
---|
96 | Assertion(); |
---|
97 | volumeRotation=rotation; |
---|
98 | } |
---|
99 | |
---|
100 | |
---|
101 | |
---|
102 | inline void RadmonDetectorLayerVolumeItem :: SetSensitiveDetector(G4VSensitiveDetector * detector) |
---|
103 | { |
---|
104 | Assertion(); |
---|
105 | volumeSensitiveDetector=detector; |
---|
106 | } |
---|
107 | |
---|
108 | |
---|
109 | |
---|
110 | inline void RadmonDetectorLayerVolumeItem :: SetMotherVolumeItem(RadmonDetectorLayerVolumeItem * item) |
---|
111 | { |
---|
112 | Assertion(); |
---|
113 | volumeMother=item; |
---|
114 | } |
---|
115 | |
---|
116 | |
---|
117 | |
---|
118 | |
---|
119 | |
---|
120 | inline G4VSolid * RadmonDetectorLayerVolumeItem :: GetSolid(void) const |
---|
121 | { |
---|
122 | return volumeSolid; |
---|
123 | } |
---|
124 | |
---|
125 | |
---|
126 | |
---|
127 | inline G4VisAttributes * RadmonDetectorLayerVolumeItem :: GetAttributes(void) const |
---|
128 | { |
---|
129 | return volumeAttributes; |
---|
130 | } |
---|
131 | |
---|
132 | |
---|
133 | |
---|
134 | inline G4Material * RadmonDetectorLayerVolumeItem :: GetMaterial(void) const |
---|
135 | { |
---|
136 | return volumeMaterial; |
---|
137 | } |
---|
138 | |
---|
139 | |
---|
140 | |
---|
141 | inline const G4String & RadmonDetectorLayerVolumeItem :: GetName(void) const |
---|
142 | { |
---|
143 | return volumeName; |
---|
144 | } |
---|
145 | |
---|
146 | |
---|
147 | |
---|
148 | inline const G4ThreeVector & RadmonDetectorLayerVolumeItem :: GetPosition(void) const |
---|
149 | { |
---|
150 | return volumePosition; |
---|
151 | } |
---|
152 | |
---|
153 | |
---|
154 | |
---|
155 | inline const G4RotationMatrix & RadmonDetectorLayerVolumeItem :: GetRotation(void) const |
---|
156 | { |
---|
157 | return volumeRotation; |
---|
158 | } |
---|
159 | |
---|
160 | |
---|
161 | |
---|
162 | inline G4VSensitiveDetector * RadmonDetectorLayerVolumeItem :: GetSensitiveDetector(void) const |
---|
163 | { |
---|
164 | return volumeSensitiveDetector; |
---|
165 | } |
---|
166 | |
---|
167 | |
---|
168 | |
---|
169 | inline RadmonDetectorLayerVolumeItem * RadmonDetectorLayerVolumeItem :: GetMotherVolumeItem(void) const |
---|
170 | { |
---|
171 | return volumeMother; |
---|
172 | } |
---|
173 | #endif /* RADMONDETECTORLAYERVOLUMEITEM_HH */ |
---|