Geant4  10.02.p03
DicomNestedParamDetectorConstruction Class Reference

#include <DicomNestedParamDetectorConstruction.hh>

Inheritance diagram for DicomNestedParamDetectorConstruction:
Collaboration diagram for DicomNestedParamDetectorConstruction:

Public Member Functions

 DicomNestedParamDetectorConstruction ()
 
 ~DicomNestedParamDetectorConstruction ()
 
- Public Member Functions inherited from DicomDetectorConstruction
 DicomDetectorConstruction ()
 
 ~DicomDetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
- 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
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Private Member Functions

virtual void ConstructPhantom ()
 

Additional Inherited Members

- Protected Member Functions inherited from DicomDetectorConstruction
void InitialisationOfMaterials ()
 
void ReadPhantomData ()
 
void ReadPhantomDataFile (const G4String &fname)
 
void MergeZSliceHeaders ()
 
G4MaterialBuildMaterialWithChangingDensity (const G4Material *origMate, float density, G4String newMateName)
 
void ConstructPhantomContainer ()
 
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 inherited from DicomDetectorConstruction
G4MaterialfAir
 
G4BoxfWorld_solid
 
G4LogicalVolumefWorld_logic
 
G4VPhysicalVolumefWorld_phys
 
G4BoxfContainer_solid
 
G4LogicalVolumefContainer_logic
 
G4VPhysicalVolumefContainer_phys
 
G4int fNoFiles
 
std::vector< G4Material * > fOriginalMaterials
 
std::vector< G4Material * > fMaterials
 
size_t * fMateIDs
 
std::map< G4int, G4doublefDensityDiffs
 
std::vector< DicomPhantomZSliceHeader * > fZSliceHeaders
 
DicomPhantomZSliceHeaderfZSliceHeaderMerged
 
G4int fNVoxelX
 
G4int fNVoxelY
 
G4int fNVoxelZ
 
G4double fVoxelHalfDimX
 
G4double fVoxelHalfDimY
 
G4double fVoxelHalfDimZ
 
DicomPhantomZSliceMergedfMergedSlices
 
std::set< G4LogicalVolume * > fScorers
 
G4bool fConstructed
 

Detailed Description

Construct the phantom using DicomPhantomParameterisationColour

History: 30.11.07 First version

Author
P. Arce

Definition at line 45 of file DicomNestedParamDetectorConstruction.hh.

Constructor & Destructor Documentation

◆ DicomNestedParamDetectorConstruction()

DicomNestedParamDetectorConstruction::DicomNestedParamDetectorConstruction ( )

◆ ~DicomNestedParamDetectorConstruction()

DicomNestedParamDetectorConstruction::~DicomNestedParamDetectorConstruction ( )

Definition at line 56 of file DicomNestedParamDetectorConstruction.cc.

57 {
58 }

Member Function Documentation

◆ ConstructPhantom()

void DicomNestedParamDetectorConstruction::ConstructPhantom ( )
privatevirtual

Implements DicomDetectorConstruction.

Definition at line 61 of file DicomNestedParamDetectorConstruction.cc.

62 {
63 #ifdef G4VERBOSE
64  G4cout << "DicomNestedParamDetectorConstruction::ConstructPhantom "
65  << G4endl;
66 #endif
67 
68  //----- Replication of Water Phantom Volume.
69  //--- Y Slice
70  G4String yRepName("RepY");
71  G4VSolid* solYRep = new G4Box(yRepName,fNVoxelX*fVoxelHalfDimX,
74  G4LogicalVolume* logYRep = new G4LogicalVolume(solYRep,fAir,yRepName);
75  new G4PVReplica(yRepName,logYRep,fContainer_logic,kYAxis,
77 
79 
80  //--- X Slice
81  G4String xRepName("RepX");
82  G4VSolid* solXRep = new G4Box(xRepName,fVoxelHalfDimX,fVoxelHalfDimY,
84  G4LogicalVolume* logXRep = new G4LogicalVolume(solXRep,fAir,xRepName);
85  new G4PVReplica(xRepName,logXRep,logYRep,kXAxis,fNVoxelX,fVoxelHalfDimX*2.);
86 
88 
89  //----- Voxel solid and logical volumes
90  //--- Z Slice
91  G4VSolid* solVoxel = new G4Box("phantom",fVoxelHalfDimX,
93  G4LogicalVolume* logicVoxel = new G4LogicalVolume(solVoxel,fAir,"phantom");
94 
95  logicVoxel->
96  SetVisAttributes(new G4VisAttributes(G4VisAttributes::Invisible));
97 
98  //
99  // Parameterisation for transformation of voxels.
100  // (voxel size is fixed in this example.
101  // e.g. nested parameterisation handles material
102  // and transfomation of voxels.)
106 
107  new G4PVParameterised("phantom", // their name
108  logicVoxel, // their logical volume
109  logXRep, // Mother logical volume
110  kZAxis, // Are placed along this axis
111  //kUndefined,
112  // Are placed along this axis
113  fNVoxelZ, // Number of cells
114  param); // Parameterisation.
115 
116  param->SetMaterialIndices( fMateIDs );
117  param->SetNoVoxel( fNVoxelX, fNVoxelY, fNVoxelZ );
118 
119  //phantom_phys->SetRegularStructureId(0);
120 
121  // Z logical volume
122  SetScorer(logicVoxel);
123 
124 }
void SetScorer(G4LogicalVolume *voxel_logic)
Definition: G4Box.hh:64
G4GLOB_DLL std::ostream G4cout
static const G4VisAttributes Invisible
void SetNoVoxel(unsigned int nx, unsigned int ny, unsigned int nz)
#define G4endl
Definition: G4ios.hh:61
std::vector< G4Material * > fMaterials
void SetVisAttributes(const G4VisAttributes *pVA)
Implements a G4VNestedParameterisation.
Here is the call graph for this function:

The documentation for this class was generated from the following files: