|
||||
File indexing completed on 2025-01-31 09:22:27
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // TETDetectorConstruction.hh 0027 // 0028 // Author: Haegin Han 0029 // Reference: ICRP Publication 145. Ann. ICRP 49(3), 2020. 0030 // Geant4 Contributors: J. Allison and S. Guatelli 0031 // 0032 0033 #ifndef TETDetectorConstruction_h 0034 #define TETDetectorConstruction_h 1 0035 0036 #include "G4VUserDetectorConstruction.hh" 0037 0038 #include <cmath> 0039 0040 #include "globals.hh" 0041 0042 #include "G4Material.hh" 0043 #include "G4NistManager.hh" 0044 0045 #include "G4Box.hh" 0046 #include "G4Tet.hh" 0047 #include "G4LogicalVolume.hh" 0048 #include "G4PVPlacement.hh" 0049 #include "G4PVParameterised.hh" 0050 0051 #include "G4SDManager.hh" 0052 #include "G4MultiFunctionalDetector.hh" 0053 #include "TETPSEnergyDeposit.hh" 0054 0055 #include "G4SystemOfUnits.hh" 0056 0057 #include "TETModelImport.hh" 0058 #include "TETParameterisation.hh" 0059 0060 // ********************************************************************* 0061 // This is UserDetectorConstruction class that defines the geometry 0062 // -- Construct: construct Geometry by three methods listed below. 0063 // └-- SetupWorldGeometry: Defines the world box (10*10*10 m3) and, 0064 // phantom container which has 10 cm-margins from 0065 // the bounding box of phantom 0066 // └-- ConstructPhantom: Define the phantom geometry by using 0067 // G4PVParameterised class 0068 // └-- PrintPhantomInformation: Print overall phantom information 0069 // 0070 // -- ConstructSDandField: Setup the MultiFunctionalDetector with energy 0071 // deposition scorer, and attach it to phantom 0072 // geometry 0073 // ********************************************************************* 0074 0075 class TETDetectorConstruction : public G4VUserDetectorConstruction 0076 { 0077 public: 0078 TETDetectorConstruction(TETModelImport* tetData); 0079 virtual ~TETDetectorConstruction(); 0080 0081 virtual G4VPhysicalVolume* Construct() override; 0082 virtual void ConstructSDandField() override; 0083 0084 private: 0085 void SetupWorldGeometry(); 0086 void ConstructPhantom(); 0087 void PrintPhantomInformation(); 0088 0089 G4VPhysicalVolume* fWorldPhysical; 0090 G4LogicalVolume* fContainer_logic; 0091 0092 TETModelImport* fTetData; 0093 G4ThreeVector fPhantomSize; 0094 G4ThreeVector fPhantomBoxMin, fPhantomBoxMax; 0095 G4int fNOfTetrahedrons; 0096 0097 G4LogicalVolume* fTetLogic; 0098 }; 0099 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |