|
||||
File indexing completed on 2025-01-18 09:58:55
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // class G4PhantomParameterisation Inline implementation 0027 // 0028 //-------------------------------------------------------------------- 0029 inline 0030 void G4PhantomParameterisation:: 0031 SetVoxelDimensions( G4double halfx, G4double halfy, G4double halfz ) 0032 { 0033 fVoxelHalfX = halfx; 0034 fVoxelHalfY = halfy; 0035 fVoxelHalfZ = halfz; 0036 } 0037 0038 0039 //-------------------------------------------------------------------- 0040 inline 0041 void G4PhantomParameterisation::SetNoVoxels( std::size_t nx, 0042 std::size_t ny, 0043 std::size_t nz ) 0044 { 0045 fNoVoxelsX = nx; 0046 fNoVoxelsY = ny; 0047 fNoVoxelsZ = nz; 0048 fNoVoxelsXY = nx*ny; 0049 fNoVoxels = nx*ny*nz; 0050 } 0051 0052 //-------------------------------------------------------------------- 0053 inline 0054 void G4PhantomParameterisation::SetMaterials( std::vector<G4Material*>& mates ) 0055 { 0056 fMaterials = mates; 0057 } 0058 0059 //-------------------------------------------------------------------- 0060 inline 0061 void G4PhantomParameterisation::SetMaterialIndices( std::size_t* matInd ) 0062 { 0063 fMaterialIndices = matInd; 0064 } 0065 0066 //-------------------------------------------------------------------- 0067 inline 0068 G4double G4PhantomParameterisation::GetVoxelHalfX() const 0069 { 0070 return fVoxelHalfX; 0071 } 0072 0073 //-------------------------------------------------------------------- 0074 inline 0075 G4double G4PhantomParameterisation::GetVoxelHalfY() const 0076 { 0077 return fVoxelHalfY; 0078 } 0079 0080 //-------------------------------------------------------------------- 0081 inline 0082 G4double G4PhantomParameterisation::GetVoxelHalfZ() const 0083 { 0084 return fVoxelHalfZ; 0085 } 0086 0087 //-------------------------------------------------------------------- 0088 inline 0089 std::size_t G4PhantomParameterisation::GetNoVoxelsX() const 0090 { 0091 return fNoVoxelsX; 0092 } 0093 0094 //-------------------------------------------------------------------- 0095 inline 0096 std::size_t G4PhantomParameterisation::GetNoVoxelsY() const 0097 { 0098 return fNoVoxelsY; 0099 } 0100 0101 //-------------------------------------------------------------------- 0102 inline 0103 std::size_t G4PhantomParameterisation::GetNoVoxelsZ() const 0104 { 0105 return fNoVoxelsZ; 0106 } 0107 0108 //-------------------------------------------------------------------- 0109 inline 0110 std::size_t G4PhantomParameterisation::GetNoVoxels() const 0111 { 0112 return fNoVoxels; 0113 } 0114 0115 //-------------------------------------------------------------------- 0116 inline 0117 std::vector<G4Material*> G4PhantomParameterisation::GetMaterials() const 0118 { 0119 return fMaterials; 0120 } 0121 0122 //-------------------------------------------------------------------- 0123 inline 0124 std::size_t* G4PhantomParameterisation::GetMaterialIndices() const 0125 { 0126 return fMaterialIndices; 0127 } 0128 0129 //-------------------------------------------------------------------- 0130 inline 0131 G4VSolid* G4PhantomParameterisation::GetContainerSolid() const 0132 { 0133 return fContainerSolid; 0134 } 0135 0136 //-------------------------------------------------------------------- 0137 inline 0138 G4bool G4PhantomParameterisation::SkipEqualMaterials() const 0139 { 0140 return bSkipEqualMaterials; 0141 } 0142 0143 //-------------------------------------------------------------------- 0144 inline 0145 void G4PhantomParameterisation::SetSkipEqualMaterials( G4bool skip ) 0146 { 0147 bSkipEqualMaterials = skip; 0148 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |