00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 //-------------------------------------------------------------------- 00030 inline 00031 void G4PhantomParameterisation:: 00032 SetVoxelDimensions( G4double halfx, G4double halfy, G4double halfz ) 00033 { 00034 fVoxelHalfX = halfx; 00035 fVoxelHalfY = halfy; 00036 fVoxelHalfZ = halfz; 00037 } 00038 00039 00040 //-------------------------------------------------------------------- 00041 inline 00042 void G4PhantomParameterisation::SetNoVoxel( size_t nx, size_t ny, size_t nz ) 00043 { 00044 fNoVoxelX = nx; 00045 fNoVoxelY = ny; 00046 fNoVoxelZ = nz; 00047 fNoVoxelXY = nx*ny; 00048 fNoVoxel = nx*ny*nz; 00049 } 00050 00051 //-------------------------------------------------------------------- 00052 inline 00053 void G4PhantomParameterisation::SetMaterials(std::vector<G4Material*>& mates ) 00054 { 00055 fMaterials = mates; 00056 } 00057 00058 //-------------------------------------------------------------------- 00059 inline 00060 void G4PhantomParameterisation::SetMaterialIndices( size_t* matInd ) 00061 { 00062 fMaterialIndices = matInd; 00063 } 00064 00065 //-------------------------------------------------------------------- 00066 inline 00067 G4double G4PhantomParameterisation::GetVoxelHalfX() const 00068 { 00069 return fVoxelHalfX; 00070 } 00071 00072 //-------------------------------------------------------------------- 00073 inline 00074 G4double G4PhantomParameterisation::GetVoxelHalfY() const 00075 { 00076 return fVoxelHalfY; 00077 } 00078 00079 //-------------------------------------------------------------------- 00080 inline 00081 G4double G4PhantomParameterisation::GetVoxelHalfZ() const 00082 { 00083 return fVoxelHalfZ; 00084 } 00085 00086 //-------------------------------------------------------------------- 00087 inline 00088 size_t G4PhantomParameterisation::GetNoVoxelX() const 00089 { 00090 return fNoVoxelX; 00091 } 00092 00093 //-------------------------------------------------------------------- 00094 inline 00095 size_t G4PhantomParameterisation::GetNoVoxelY() const 00096 { 00097 return fNoVoxelY; 00098 } 00099 00100 //-------------------------------------------------------------------- 00101 inline 00102 size_t G4PhantomParameterisation::GetNoVoxelZ() const 00103 { 00104 return fNoVoxelZ; 00105 } 00106 00107 //-------------------------------------------------------------------- 00108 inline 00109 size_t G4PhantomParameterisation::GetNoVoxel() const 00110 { 00111 return fNoVoxel; 00112 } 00113 00114 //-------------------------------------------------------------------- 00115 inline 00116 std::vector<G4Material*> G4PhantomParameterisation::GetMaterials() const 00117 { 00118 return fMaterials; 00119 } 00120 00121 //-------------------------------------------------------------------- 00122 inline 00123 size_t* G4PhantomParameterisation::GetMaterialIndices() const 00124 { 00125 return fMaterialIndices; 00126 } 00127 00128 //-------------------------------------------------------------------- 00129 inline 00130 G4VSolid* G4PhantomParameterisation::GetContainerSolid() const 00131 { 00132 return fContainerSolid; 00133 } 00134 00135 //-------------------------------------------------------------------- 00136 inline 00137 G4bool G4PhantomParameterisation::SkipEqualMaterials() const 00138 { 00139 return bSkipEqualMaterials; 00140 } 00141 00142 //-------------------------------------------------------------------- 00143 inline 00144 void G4PhantomParameterisation::SetSkipEqualMaterials( G4bool skip ) 00145 { 00146 bSkipEqualMaterials = skip; 00147 }