Geant4
10.00.p01
|
Dicom detector construction. More...
#include <DicomDetectorConstruction.hh>
Public Member Functions | |
DicomDetectorConstruction () | |
~DicomDetectorConstruction () | |
virtual G4VPhysicalVolume * | Construct () |
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 |
Protected Member Functions | |
void | InitialisationOfMaterials () |
void | ReadPhantomData () |
void | ReadPhantomDataFile (const G4String &fname) |
void | MergeZSliceHeaders () |
G4Material * | BuildMaterialWithChangingDensity (const G4Material *origMate, float density, G4String newMateName) |
void | ConstructPhantomContainer () |
virtual void | ConstructPhantom ()=0 |
void | SetScorer (G4LogicalVolume *voxel_logic) |
virtual void | ConstructSDandField () |
Protected Member Functions inherited from G4VUserDetectorConstruction | |
void | SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false) |
void | SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD) |
Protected Attributes | |
G4Material * | fAir |
G4Box * | fWorld_solid |
G4LogicalVolume * | fWorld_logic |
G4VPhysicalVolume * | fWorld_phys |
G4Box * | fContainer_solid |
G4LogicalVolume * | fContainer_logic |
G4VPhysicalVolume * | fContainer_phys |
G4int | fNoFiles |
std::vector< G4Material * > | fOriginalMaterials |
std::vector< G4Material * > | fMaterials |
size_t * | fMateIDs |
std::map< G4int, G4double > | fDensityDiffs |
std::vector < DicomPhantomZSliceHeader * > | fZSliceHeaders |
DicomPhantomZSliceHeader * | fZSliceHeaderMerged |
G4int | fNVoxelX |
G4int | fNVoxelY |
G4int | fNVoxelZ |
G4double | fVoxelHalfDimX |
G4double | fVoxelHalfDimY |
G4double | fVoxelHalfDimZ |
DicomPhantomZSliceMerged * | mergedSlices |
std::set< G4LogicalVolume * > | scorers |
G4bool | fConstructed |
Dicom detector construction.
History: 30.11.07 First version
Definition at line 58 of file DicomDetectorConstruction.hh.
DicomDetectorConstruction::DicomDetectorConstruction | ( | ) |
Definition at line 53 of file DicomDetectorConstruction.cc.
DicomDetectorConstruction::~DicomDetectorConstruction | ( | ) |
Definition at line 83 of file DicomDetectorConstruction.cc.
|
protected |
Definition at line 465 of file DicomDetectorConstruction.cc.
References G4Material::AddElement(), cm3, g, G4Material::GetElement(), G4Material::GetFractionVector(), G4Material::GetNumberOfElements(), and kStateUndefined.
Referenced by ReadPhantomDataFile(), and DicomPartialDetectorConstruction::ReadVoxelDensitiesPartial().
|
virtual |
Implements G4VUserDetectorConstruction.
Reimplemented in DicomPartialDetectorConstruction.
Definition at line 88 of file DicomDetectorConstruction.cc.
References ConstructPhantom(), ConstructPhantomContainer(), fAir, fConstructed, fWorld_logic, fWorld_phys, fWorld_solid, InitialisationOfMaterials(), m, and ReadPhantomData().
|
protectedpure virtual |
Implemented in DicomPartialDetectorConstruction, DicomRegularDetectorConstruction, and DicomNestedParamDetectorConstruction.
Referenced by Construct().
|
protected |
Definition at line 483 of file DicomDetectorConstruction.cc.
References fContainer_logic, fContainer_phys, fContainer_solid, fMaterials, fNVoxelX, fNVoxelY, fNVoxelZ, fVoxelHalfDimX, fVoxelHalfDimY, fVoxelHalfDimZ, fWorld_logic, fZSliceHeaderMerged, G4cout, G4endl, DicomPhantomZSliceHeader::GetMaxX(), DicomPhantomZSliceHeader::GetMaxY(), DicomPhantomZSliceHeader::GetMaxZ(), DicomPhantomZSliceHeader::GetMinX(), DicomPhantomZSliceHeader::GetMinY(), DicomPhantomZSliceHeader::GetMinZ(), DicomPhantomZSliceHeader::GetNoVoxelX(), DicomPhantomZSliceHeader::GetNoVoxelY(), DicomPhantomZSliceHeader::GetNoVoxelZ(), DicomPhantomZSliceHeader::GetVoxelHalfX(), DicomPhantomZSliceHeader::GetVoxelHalfY(), and DicomPhantomZSliceHeader::GetVoxelHalfZ().
Referenced by Construct().
|
protectedvirtual |
Reimplemented from G4VUserDetectorConstruction.
Definition at line 568 of file DicomDetectorConstruction.cc.
References fNVoxelX, fNVoxelY, fNVoxelZ, G4cout, G4endl, G4MultiFunctionalDetector::RegisterPrimitive(), scorers, and G4VUserDetectorConstruction::SetSensitiveDetector().
|
protected |
Definition at line 127 of file DicomDetectorConstruction.cc.
References a, G4Material::AddElement(), cm3, density, elC, elH, elN, elO, fAir, fOriginalMaterials, g, mg, mole, name, symbol, and z.
Referenced by DicomPartialDetectorConstruction::Construct(), and Construct().
|
protected |
Definition at line 454 of file DicomDetectorConstruction.cc.
References fZSliceHeaderMerged, and fZSliceHeaders.
Referenced by ReadPhantomData().
|
protected |
Definition at line 317 of file DicomDetectorConstruction.cc.
References FatalException, fNoFiles, G4Exception(), MergeZSliceHeaders(), and ReadPhantomDataFile().
Referenced by Construct().
|
protected |
Definition at line 350 of file DicomDetectorConstruction.cc.
References BuildMaterialWithChangingDensity(), G4UIcommand::ConvertToDouble(), G4UIcommand::ConvertToString(), density, FatalErrorInArgument, fDensityDiffs, fMateIDs, fMaterials, fNoFiles, fOriginalMaterials, fZSliceHeaders, G4cerr, G4cout, G4endl, G4Exception(), G4Material::GetName(), and DicomPhantomZSliceHeader::GetNoVoxels().
Referenced by ReadPhantomData().
|
protected |
Definition at line 537 of file DicomDetectorConstruction.cc.
References G4cout, G4endl, G4LogicalVolume::GetName(), and scorers.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), and DicomRegularDetectorConstruction::ConstructPhantom().
|
protected |
Definition at line 96 of file DicomDetectorConstruction.hh.
Referenced by DicomPartialDetectorConstruction::Construct(), Construct(), DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomPartialDetectorConstruction::ConstructPhantom(), DicomPartialDetectorConstruction::ConstructPhantomContainer(), and InitialisationOfMaterials().
|
protected |
Definition at line 130 of file DicomDetectorConstruction.hh.
Referenced by Construct().
|
protected |
Definition at line 104 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), DicomPartialDetectorConstruction::ConstructPhantom(), DicomPartialDetectorConstruction::ConstructPhantomContainer(), and ConstructPhantomContainer().
|
protected |
Definition at line 105 of file DicomDetectorConstruction.hh.
Referenced by DicomRegularDetectorConstruction::ConstructPhantom(), DicomPartialDetectorConstruction::ConstructPhantomContainer(), and ConstructPhantomContainer().
|
protected |
Definition at line 103 of file DicomDetectorConstruction.hh.
Referenced by DicomRegularDetectorConstruction::ConstructPhantom(), and ConstructPhantomContainer().
Definition at line 115 of file DicomDetectorConstruction.hh.
Referenced by ReadPhantomDataFile().
|
protected |
Definition at line 112 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), and ReadPhantomDataFile().
|
protected |
Definition at line 109 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), ConstructPhantomContainer(), ReadPhantomDataFile(), and DicomPartialDetectorConstruction::ReadVoxelDensitiesPartial().
|
protected |
Definition at line 107 of file DicomDetectorConstruction.hh.
Referenced by ReadPhantomData(), and ReadPhantomDataFile().
|
protected |
Definition at line 123 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), DicomPartialDetectorConstruction::ConstructPhantom(), ConstructPhantomContainer(), ConstructSDandField(), DicomPartialDetectorConstruction::ReadPhantomDataFile(), and DicomPartialDetectorConstruction::ReadVoxelDensitiesPartial().
|
protected |
Definition at line 123 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), DicomPartialDetectorConstruction::ConstructPhantom(), ConstructPhantomContainer(), ConstructSDandField(), DicomPartialDetectorConstruction::ReadPhantomDataFile(), and DicomPartialDetectorConstruction::ReadVoxelDensitiesPartial().
|
protected |
Definition at line 123 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), DicomPartialDetectorConstruction::ConstructPhantom(), ConstructPhantomContainer(), ConstructSDandField(), DicomPartialDetectorConstruction::ReadPhantomDataFile(), and DicomPartialDetectorConstruction::ReadVoxelDensitiesPartial().
|
protected |
Definition at line 108 of file DicomDetectorConstruction.hh.
Referenced by InitialisationOfMaterials(), ReadPhantomDataFile(), and DicomPartialDetectorConstruction::ReadVoxelDensitiesPartial().
|
protected |
Definition at line 124 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), and ConstructPhantomContainer().
|
protected |
Definition at line 124 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), and ConstructPhantomContainer().
|
protected |
Definition at line 124 of file DicomDetectorConstruction.hh.
Referenced by DicomNestedParamDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), and ConstructPhantomContainer().
|
protected |
Definition at line 100 of file DicomDetectorConstruction.hh.
Referenced by DicomPartialDetectorConstruction::Construct(), Construct(), DicomPartialDetectorConstruction::ConstructPhantomContainer(), and ConstructPhantomContainer().
|
protected |
Definition at line 101 of file DicomDetectorConstruction.hh.
Referenced by Construct().
|
protected |
Definition at line 99 of file DicomDetectorConstruction.hh.
Referenced by Construct().
|
protected |
Definition at line 120 of file DicomDetectorConstruction.hh.
Referenced by ConstructPhantomContainer(), and MergeZSliceHeaders().
|
protected |
Definition at line 118 of file DicomDetectorConstruction.hh.
Referenced by MergeZSliceHeaders(), and ReadPhantomDataFile().
|
protected |
Definition at line 126 of file DicomDetectorConstruction.hh.
|
protected |
Definition at line 128 of file DicomDetectorConstruction.hh.
Referenced by ConstructSDandField(), and SetScorer().