[807] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // $Id: BrachyDetectorConstruction.hh,v 1.3 2006/06/29 17:30:50 gunter Exp $ |
---|
[1230] | 28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
[807] | 29 | // |
---|
| 30 | // **************************************** |
---|
| 31 | // * * |
---|
| 32 | // * BrachyDetectorConstruction.hh * |
---|
| 33 | // * * |
---|
| 34 | // **************************************** |
---|
| 35 | |
---|
| 36 | #ifndef BrachyDetectorConstruction_H |
---|
| 37 | #define BrachyDetectorConstruction_H 1 |
---|
| 38 | |
---|
| 39 | #include "globals.hh" |
---|
| 40 | #include "G4VUserDetectorConstruction.hh" |
---|
| 41 | #include "G4LogicalVolume.hh" |
---|
| 42 | |
---|
| 43 | class BrachyPhantomSD; |
---|
| 44 | class BrachyDetectorMessenger; |
---|
| 45 | class G4LogicalVolume; |
---|
| 46 | class G4Material; |
---|
| 47 | class G4Tubs; |
---|
| 48 | class G4Box; |
---|
| 49 | class G4Sphere; |
---|
| 50 | class G4Tubs; |
---|
| 51 | class G4Colour; |
---|
| 52 | class G4VPhysicalVolume; |
---|
| 53 | class BrachyPhantomSD; |
---|
| 54 | class BrachyPhantomROGeometry; |
---|
| 55 | class G4VPhysicalVolume; |
---|
| 56 | class BrachyMaterial; |
---|
| 57 | class BrachyFactory; |
---|
| 58 | class BrachyVoxelParameterisation; |
---|
| 59 | |
---|
| 60 | class BrachyDetectorConstruction : public G4VUserDetectorConstruction |
---|
| 61 | { |
---|
| 62 | public: |
---|
| 63 | |
---|
| 64 | BrachyDetectorConstruction(G4String&); |
---|
| 65 | ~BrachyDetectorConstruction(); |
---|
| 66 | |
---|
| 67 | G4VPhysicalVolume* Construct(); |
---|
| 68 | void SwitchBrachytherapicSeed(); |
---|
| 69 | void SelectBrachytherapicSeed(G4String val); |
---|
| 70 | void ConstructPhantom(); |
---|
| 71 | void ConstructSensitiveDetector(); |
---|
| 72 | void PrintDetectorParameters(); |
---|
| 73 | void SetPhantomMaterial(G4String); |
---|
| 74 | |
---|
| 75 | const G4double VoxelWidth_X(){return phantomDimensionX/numberOfVoxelsAlongX;} |
---|
| 76 | const G4double VoxelWidth_Z(){return phantomDimensionZ/numberOfVoxelsAlongZ;} |
---|
| 77 | const G4int GetNumVoxelX() {return numberOfVoxelsAlongX;} |
---|
| 78 | const G4int GetNumVoxelZ() {return numberOfVoxelsAlongZ;} |
---|
| 79 | const G4double GetDimX() {return phantomDimensionX;} |
---|
| 80 | const G4double GetBoxDim_Z() {return phantomDimensionZ;} |
---|
| 81 | |
---|
| 82 | void ComputeDimVoxel() {dimVoxel = phantomDimensionX/numberOfVoxelsAlongX;} |
---|
| 83 | |
---|
| 84 | private: |
---|
| 85 | |
---|
| 86 | G4int detectorChoice; //Select brachytherapic seed |
---|
| 87 | BrachyPhantomSD* phantomSD;//pointer to sensitive detector |
---|
| 88 | BrachyPhantomROGeometry* phantomROGeometry;//pointer to ROGeometry |
---|
| 89 | BrachyFactory* factory; |
---|
| 90 | |
---|
| 91 | // World ... |
---|
| 92 | G4Box* World; //pointer to the solid World |
---|
| 93 | G4LogicalVolume* WorldLog; //pointer to the logical World |
---|
| 94 | G4VPhysicalVolume* WorldPhys; //pointer to the physical World |
---|
| 95 | |
---|
| 96 | // Phantom ... |
---|
| 97 | G4Box* Phantom; //pointer to solid phantom |
---|
| 98 | G4LogicalVolume* PhantomLog; //pointer to logic phantom |
---|
| 99 | G4VPhysicalVolume* PhantomPhys; //pointer to physical phantom |
---|
| 100 | G4Material* phantomAbsorberMaterial; |
---|
| 101 | |
---|
| 102 | G4double phantomDimensionX; //Phantom XDimension |
---|
| 103 | G4double phantomDimensionY; //Phantom YDimension |
---|
| 104 | G4double phantomDimensionZ; //Phantom ZDimension |
---|
| 105 | G4int numberOfVoxelsAlongX; //Number of voxels along x axis |
---|
| 106 | G4int numberOfVoxelsAlongZ; //Number of voxels along z axis |
---|
| 107 | G4double Worldx ; //World XDimension |
---|
| 108 | G4double Worldy ; //World YDimension |
---|
| 109 | G4double Worldz ; //World XDimension |
---|
| 110 | G4String sensitiveDetectorName; |
---|
| 111 | BrachyDetectorMessenger* detectorMessenger; |
---|
| 112 | BrachyMaterial* pMaterial; |
---|
| 113 | |
---|
| 114 | G4double dimVoxel; |
---|
| 115 | }; |
---|
| 116 | |
---|
| 117 | #endif |
---|