151 lines
4.7 KiB
Plaintext
151 lines
4.7 KiB
Plaintext
//
|
|
// ********************************************************************
|
|
// * License and Disclaimer *
|
|
// * *
|
|
// * The Geant4 software is copyright of the Copyright Holders of *
|
|
// * the Geant4 Collaboration. It is provided under the terms and *
|
|
// * conditions of the Geant4 Software License, included in the file *
|
|
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
|
// * include a list of copyright holders. *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. Please see the license in the file LICENSE and URL above *
|
|
// * for the full disclaimer and the limitation of liability. *
|
|
// * *
|
|
// * This code implementation is the result of the scientific and *
|
|
// * technical work of the GEANT4 collaboration. *
|
|
// * By using, copying, modifying or distributing the software (or *
|
|
// * any work based on the software) you agree to acknowledge its *
|
|
// * use in resulting scientific publications, and indicate your *
|
|
// * acceptance of all terms of the Geant4 Software license. *
|
|
// ********************************************************************
|
|
//
|
|
// class G4PhantomParameterisation Inline implementation
|
|
//
|
|
// Author: Pedro Arce (CIEMAT), May 2007
|
|
//---------------------------------------------------------------------
|
|
|
|
inline
|
|
void G4PhantomParameterisation::
|
|
SetVoxelDimensions( G4double halfx, G4double halfy, G4double halfz )
|
|
{
|
|
fVoxelHalfX = halfx;
|
|
fVoxelHalfY = halfy;
|
|
fVoxelHalfZ = halfz;
|
|
}
|
|
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
void G4PhantomParameterisation::SetNoVoxels( std::size_t nx,
|
|
std::size_t ny,
|
|
std::size_t nz )
|
|
{
|
|
fNoVoxelsX = nx;
|
|
fNoVoxelsY = ny;
|
|
fNoVoxelsZ = nz;
|
|
fNoVoxelsXY = nx*ny;
|
|
fNoVoxels = nx*ny*nz;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
void G4PhantomParameterisation::SetMaterials( std::vector<G4Material*>& mates )
|
|
{
|
|
fMaterials = mates;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
void G4PhantomParameterisation::SetMaterialIndices( std::size_t* matInd )
|
|
{
|
|
fMaterialIndices = matInd;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
G4double G4PhantomParameterisation::GetVoxelHalfX() const
|
|
{
|
|
return fVoxelHalfX;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
G4double G4PhantomParameterisation::GetVoxelHalfY() const
|
|
{
|
|
return fVoxelHalfY;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
G4double G4PhantomParameterisation::GetVoxelHalfZ() const
|
|
{
|
|
return fVoxelHalfZ;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
std::size_t G4PhantomParameterisation::GetNoVoxelsX() const
|
|
{
|
|
return fNoVoxelsX;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
std::size_t G4PhantomParameterisation::GetNoVoxelsY() const
|
|
{
|
|
return fNoVoxelsY;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
std::size_t G4PhantomParameterisation::GetNoVoxelsZ() const
|
|
{
|
|
return fNoVoxelsZ;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
std::size_t G4PhantomParameterisation::GetNoVoxels() const
|
|
{
|
|
return fNoVoxels;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
std::vector<G4Material*> G4PhantomParameterisation::GetMaterials() const
|
|
{
|
|
return fMaterials;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
std::size_t* G4PhantomParameterisation::GetMaterialIndices() const
|
|
{
|
|
return fMaterialIndices;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
G4VSolid* G4PhantomParameterisation::GetContainerSolid() const
|
|
{
|
|
return fContainerSolid;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
G4bool G4PhantomParameterisation::SkipEqualMaterials() const
|
|
{
|
|
return bSkipEqualMaterials;
|
|
}
|
|
|
|
//---------------------------------------------------------------------
|
|
inline
|
|
void G4PhantomParameterisation::SetSkipEqualMaterials( G4bool skip )
|
|
{
|
|
bSkipEqualMaterials = skip;
|
|
}
|