|
|
|||
File indexing completed on 2026-10-04 09:07:41
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 // Author: Pedro Arce (CIEMAT), May 2007 0029 //--------------------------------------------------------------------- 0030 0031 inline 0032 void G4PhantomParameterisation:: 0033 SetVoxelDimensions( G4double halfx, G4double halfy, G4double halfz ) 0034 { 0035 fVoxelHalfX = halfx; 0036 fVoxelHalfY = halfy; 0037 fVoxelHalfZ = halfz; 0038 } 0039 0040 0041 //--------------------------------------------------------------------- 0042 inline 0043 void G4PhantomParameterisation::SetNoVoxels( std::size_t nx, 0044 std::size_t ny, 0045 std::size_t nz ) 0046 { 0047 fNoVoxelsX = nx; 0048 fNoVoxelsY = ny; 0049 fNoVoxelsZ = nz; 0050 fNoVoxelsXY = nx*ny; 0051 fNoVoxels = nx*ny*nz; 0052 } 0053 0054 //--------------------------------------------------------------------- 0055 inline 0056 void G4PhantomParameterisation::SetMaterials( std::vector<G4Material*>& mates ) 0057 { 0058 fMaterials = mates; 0059 } 0060 0061 //--------------------------------------------------------------------- 0062 inline 0063 void G4PhantomParameterisation::SetMaterialIndices( std::size_t* matInd ) 0064 { 0065 fMaterialIndices = matInd; 0066 } 0067 0068 //--------------------------------------------------------------------- 0069 inline 0070 G4double G4PhantomParameterisation::GetVoxelHalfX() const 0071 { 0072 return fVoxelHalfX; 0073 } 0074 0075 //--------------------------------------------------------------------- 0076 inline 0077 G4double G4PhantomParameterisation::GetVoxelHalfY() const 0078 { 0079 return fVoxelHalfY; 0080 } 0081 0082 //--------------------------------------------------------------------- 0083 inline 0084 G4double G4PhantomParameterisation::GetVoxelHalfZ() const 0085 { 0086 return fVoxelHalfZ; 0087 } 0088 0089 //--------------------------------------------------------------------- 0090 inline 0091 std::size_t G4PhantomParameterisation::GetNoVoxelsX() const 0092 { 0093 return fNoVoxelsX; 0094 } 0095 0096 //--------------------------------------------------------------------- 0097 inline 0098 std::size_t G4PhantomParameterisation::GetNoVoxelsY() const 0099 { 0100 return fNoVoxelsY; 0101 } 0102 0103 //--------------------------------------------------------------------- 0104 inline 0105 std::size_t G4PhantomParameterisation::GetNoVoxelsZ() const 0106 { 0107 return fNoVoxelsZ; 0108 } 0109 0110 //--------------------------------------------------------------------- 0111 inline 0112 std::size_t G4PhantomParameterisation::GetNoVoxels() const 0113 { 0114 return fNoVoxels; 0115 } 0116 0117 //--------------------------------------------------------------------- 0118 inline 0119 std::vector<G4Material*> G4PhantomParameterisation::GetMaterials() const 0120 { 0121 return fMaterials; 0122 } 0123 0124 //--------------------------------------------------------------------- 0125 inline 0126 std::size_t* G4PhantomParameterisation::GetMaterialIndices() const 0127 { 0128 return fMaterialIndices; 0129 } 0130 0131 //--------------------------------------------------------------------- 0132 inline 0133 G4VSolid* G4PhantomParameterisation::GetContainerSolid() const 0134 { 0135 return fContainerSolid; 0136 } 0137 0138 //--------------------------------------------------------------------- 0139 inline 0140 G4bool G4PhantomParameterisation::SkipEqualMaterials() const 0141 { 0142 return bSkipEqualMaterials; 0143 } 0144 0145 //--------------------------------------------------------------------- 0146 inline 0147 void G4PhantomParameterisation::SetSkipEqualMaterials( G4bool skip ) 0148 { 0149 bSkipEqualMaterials = skip; 0150 }
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|