Geant4
10.01.p03
|
Construct a DICOM Geant4 geometry produced from the intersetion of a DICOM file and a volume. More...
#include <DicomPartialDetectorConstruction.hh>
Public Member Functions | |
DicomPartialDetectorConstruction () | |
~DicomPartialDetectorConstruction () | |
virtual G4VPhysicalVolume * | Construct () |
Public Member Functions inherited from DicomDetectorConstruction | |
DicomDetectorConstruction () | |
~DicomDetectorConstruction () | |
Public Member Functions inherited from G4VUserDetectorConstruction | |
G4VUserDetectorConstruction () | |
virtual | ~G4VUserDetectorConstruction () |
virtual void | CloneSD () |
virtual void | CloneF () |
void | RegisterParallelWorld (G4VUserParallelWorld *) |
G4int | ConstructParallelGeometries () |
void | ConstructParallelSD () |
G4int | GetNumberOfParallelWorld () const |
G4VUserParallelWorld * | GetParallelWorld (G4int i) const |
Private Member Functions | |
virtual void | ReadPhantomData () |
void | ReadPhantomDataFile (const G4String &fname) |
void | ConstructPhantomContainer () |
virtual void | ConstructPhantom () |
void | ReadVoxelDensitiesPartial (std::ifstream &fin, std::map< G4int, std::map< G4int, G4int > > ifxmin, std::map< G4int, std::map< G4int, G4int > > ifxmax) |
std::pair< G4double, G4double > | ReadVoxelDim (G4int nVoxel, std::ifstream &fin) |
void | ReadVoxelDensitiesPartial (std::ifstream &fin) |
void | SetScorer (G4LogicalVolume *voxel_logic) |
G4Material * | BuildMaterialChangingDensity (const G4Material *origMate, float density, G4String mateName) |
Private Attributes | |
G4PartialPhantomParameterisation * | fPartialPhantomParam |
std::multimap< G4int, G4int > | fFilledIDs |
std::map< G4int, std::map < G4int, G4int > > | fFilledMins |
std::map< G4int, std::map < G4int, G4int > > | fFilledMaxs |
G4int | fNVoxels |
G4double | fDimX |
G4double | fDimY |
G4double | fDimZ |
G4double | fOffsetX |
G4double | fOffsetY |
G4double | fOffsetZ |
size_t * | fMateIDs |
std::vector< G4Material * > | fPhantomMaterials |
Construct a DICOM Geant4 geometry produced from the intersetion of a DICOM file and a volume.
Definition at line 54 of file DicomPartialDetectorConstruction.hh.
DicomPartialDetectorConstruction::DicomPartialDetectorConstruction | ( | ) |
Definition at line 59 of file DicomPartialDetectorConstruction.cc.
DicomPartialDetectorConstruction::~DicomPartialDetectorConstruction | ( | ) |
Definition at line 74 of file DicomPartialDetectorConstruction.cc.
|
private |
|
virtual |
Reimplemented from DicomDetectorConstruction.
Definition at line 79 of file DicomPartialDetectorConstruction.cc.
References ConstructPhantom(), ConstructPhantomContainer(), DicomDetectorConstruction::fAir, DicomDetectorConstruction::fWorld_logic, DicomDetectorConstruction::InitialisationOfMaterials(), m, and ReadPhantomData().
|
privatevirtual |
Implements DicomDetectorConstruction.
Definition at line 435 of file DicomPartialDetectorConstruction.cc.
References G4PartialPhantomParameterisation::BuildContainerWalls(), DicomDetectorConstruction::fAir, FALSE, FatalErrorInArgument, DicomDetectorConstruction::fContainer_logic, fDimX, fDimY, fDimZ, fFilledIDs, fFilledMins, fMateIDs, fNVoxels, DicomDetectorConstruction::fNVoxelX, DicomDetectorConstruction::fNVoxelY, DicomDetectorConstruction::fNVoxelZ, fPartialPhantomParam, fPhantomMaterials, G4Exception(), kUndefined, kXAxis, G4PartialPhantomParameterisation::SetFilledIDs(), G4PartialPhantomParameterisation::SetFilledMins(), G4PhantomParameterisation::SetMaterialIndices(), G4PhantomParameterisation::SetMaterials(), G4PhantomParameterisation::SetNoVoxel(), G4PVParameterised::SetRegularStructureId(), G4PhantomParameterisation::SetSkipEqualMaterials(), G4LogicalVolume::SetSmartless(), G4LogicalVolume::SetVisAttributes(), and G4PhantomParameterisation::SetVoxelDimensions().
Referenced by Construct().
|
private |
Definition at line 402 of file DicomPartialDetectorConstruction.cc.
References deg, DicomDetectorConstruction::fAir, DicomDetectorConstruction::fContainer_logic, DicomDetectorConstruction::fContainer_phys, and DicomDetectorConstruction::fWorld_logic.
Referenced by Construct().
|
privatevirtual |
Definition at line 115 of file DicomPartialDetectorConstruction.cc.
References FatalErrorInArgument, G4Exception(), and ReadPhantomDataFile().
Referenced by Construct().
|
private |
Definition at line 150 of file DicomPartialDetectorConstruction.cc.
References G4UIcommand::ConvertToString(), FatalErrorInArgument, FatalException, fDimX, fDimY, fDimZ, fFilledIDs, fFilledMaxs, fFilledMins, fMateIDs, fNVoxels, DicomDetectorConstruction::fNVoxelX, DicomDetectorConstruction::fNVoxelY, DicomDetectorConstruction::fNVoxelZ, fOffsetX, fOffsetY, fOffsetZ, G4cout, G4endl, G4Exception(), iz, and ReadVoxelDensitiesPartial().
Referenced by ReadPhantomData().
|
private |
Definition at line 265 of file DicomPartialDetectorConstruction.cc.
References DicomDetectorConstruction::BuildMaterialWithChangingDensity(), cm3, G4UIcommand::ConvertToDouble(), G4UIcommand::ConvertToString(), DBL_MAX, fFilledMaxs, fFilledMins, fMateIDs, DicomDetectorConstruction::fMaterials, DicomDetectorConstruction::fNVoxelX, DicomDetectorConstruction::fNVoxelY, DicomDetectorConstruction::fNVoxelZ, DicomDetectorConstruction::fOriginalMaterials, fPhantomMaterials, g, G4cout, G4endl, G4Material::GetDensity(), G4Material::GetName(), matInfo::id, iz, matInfo::nvoxels, and matInfo::sumdens.
|
private |
|
private |
|
private |
Definition at line 89 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom(), and ReadPhantomDataFile().
|
private |
Definition at line 89 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom(), and ReadPhantomDataFile().
|
private |
Definition at line 89 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom(), and ReadPhantomDataFile().
Definition at line 85 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom(), and ReadPhantomDataFile().
Definition at line 87 of file DicomPartialDetectorConstruction.hh.
Referenced by ReadPhantomDataFile(), and ReadVoxelDensitiesPartial().
Definition at line 86 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom(), ReadPhantomDataFile(), and ReadVoxelDensitiesPartial().
|
private |
Definition at line 91 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom(), ReadPhantomDataFile(), and ReadVoxelDensitiesPartial().
|
private |
Definition at line 88 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom(), and ReadPhantomDataFile().
|
private |
Definition at line 90 of file DicomPartialDetectorConstruction.hh.
Referenced by ReadPhantomDataFile().
|
private |
Definition at line 90 of file DicomPartialDetectorConstruction.hh.
Referenced by ReadPhantomDataFile().
|
private |
Definition at line 90 of file DicomPartialDetectorConstruction.hh.
Referenced by ReadPhantomDataFile().
|
private |
Definition at line 83 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom().
|
private |
Definition at line 92 of file DicomPartialDetectorConstruction.hh.
Referenced by ConstructPhantom(), and ReadVoxelDensitiesPartial().