Geant4-11
G4PhantomParameterisation.icc
Go to the documentation of this file.
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// class G4PhantomParameterisation Inline implementation
27//
28//--------------------------------------------------------------------
29inline
30void G4PhantomParameterisation::
31SetVoxelDimensions( G4double halfx, G4double halfy, G4double halfz )
32{
33 fVoxelHalfX = halfx;
34 fVoxelHalfY = halfy;
35 fVoxelHalfZ = halfz;
36}
37
38
39//--------------------------------------------------------------------
40inline
41void G4PhantomParameterisation::SetNoVoxels( size_t nx, size_t ny, size_t nz )
42{
43 fNoVoxelsX = nx;
44 fNoVoxelsY = ny;
45 fNoVoxelsZ = nz;
46 fNoVoxelsXY = nx*ny;
47 fNoVoxels = nx*ny*nz;
48}
49
50//--------------------------------------------------------------------
51inline
52void G4PhantomParameterisation::SetMaterials( std::vector<G4Material*>& mates )
53{
54 fMaterials = mates;
55}
56
57//--------------------------------------------------------------------
58inline
59void G4PhantomParameterisation::SetMaterialIndices( size_t* matInd )
60{
61 fMaterialIndices = matInd;
62}
63
64//--------------------------------------------------------------------
65inline
66G4double G4PhantomParameterisation::GetVoxelHalfX() const
67{
68 return fVoxelHalfX;
69}
70
71//--------------------------------------------------------------------
72inline
73G4double G4PhantomParameterisation::GetVoxelHalfY() const
74{
75 return fVoxelHalfY;
76}
77
78//--------------------------------------------------------------------
79inline
80G4double G4PhantomParameterisation::GetVoxelHalfZ() const
81{
82 return fVoxelHalfZ;
83}
84
85//--------------------------------------------------------------------
86inline
87size_t G4PhantomParameterisation::GetNoVoxelsX() const
88{
89 return fNoVoxelsX;
90}
91
92//--------------------------------------------------------------------
93inline
94size_t G4PhantomParameterisation::GetNoVoxelsY() const
95{
96 return fNoVoxelsY;
97}
98
99//--------------------------------------------------------------------
100inline
101size_t G4PhantomParameterisation::GetNoVoxelsZ() const
102{
103 return fNoVoxelsZ;
104}
105
106//--------------------------------------------------------------------
107inline
108size_t G4PhantomParameterisation::GetNoVoxels() const
109{
110 return fNoVoxels;
111}
112
113//--------------------------------------------------------------------
114inline
115std::vector<G4Material*> G4PhantomParameterisation::GetMaterials() const
116{
117 return fMaterials;
118}
119
120//--------------------------------------------------------------------
121inline
122size_t* G4PhantomParameterisation::GetMaterialIndices() const
123{
124 return fMaterialIndices;
125}
126
127//--------------------------------------------------------------------
128inline
129G4VSolid* G4PhantomParameterisation::GetContainerSolid() const
130{
131 return fContainerSolid;
132}
133
134//--------------------------------------------------------------------
135inline
136G4bool G4PhantomParameterisation::SkipEqualMaterials() const
137{
138 return bSkipEqualMaterials;
139}
140
141//--------------------------------------------------------------------
142inline
143void G4PhantomParameterisation::SetSkipEqualMaterials( G4bool skip )
144{
145 bSkipEqualMaterials = skip;
146}