Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:16:51

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 //
0027 // Code developed by:
0028 // S.Guatelli, M. Large and A. Malaroda, University of Wollongong
0029 //
0030 #ifndef ICRP110PhantomConstruction_H
0031 #define ICRP110PhantomConstruction_H 1
0032 
0033 #include "ICRP110PhantomMessenger.hh"
0034 #include "G4PSDoseDeposit3D.hh"
0035 #include "G4MultiFunctionalDetector.hh"
0036 #include "G4SDManager.hh"
0037 #include "G4VPrimitiveScorer.hh"
0038 #include "G4VUserDetectorConstruction.hh"
0039 #include "globals.hh"
0040 #include <map>
0041 
0042 class G4VPhysicalVolume;
0043 class ICRP110PhantomMaterial_Female;
0044 class ICRP110PhantomMaterial_Male;
0045 class G4Material;
0046 
0047 class ICRP110PhantomConstruction : public G4VUserDetectorConstruction
0048 {
0049   public:
0050      explicit ICRP110PhantomConstruction();
0051     ~ICRP110PhantomConstruction();
0052      G4VPhysicalVolume* Construct()override;
0053 
0054      G4VPhysicalVolume* GetMotherVolume() {return fMotherVolume;}
0055      G4VPhysicalVolume* GetPhantumContainer() {return fPhantomContainer;}
0056 
0057      inline G4int GetNumberVoxelX(){return fNVoxelX;};
0058      inline G4int GetNumberVoxelY() {return fNVoxelY;};
0059      inline G4int GetNumberVoxelZ() {return fNVoxelZ;};
0060 
0061      inline G4double GetVoxelHalfDimX(){return fVoxelHalfDimX;};
0062      inline G4double GetVoxelHalfDimY() {return fVoxelHalfDimY;};
0063      inline G4double GetVoxelHalfDimZ() {return fVoxelHalfDimZ;};
0064 
0065      void SetPhantomSex(G4String);
0066      void SetPhantomSection(G4String);
0067 
0068  private:
0069   void ReadPhantomData(const G4String& sex, const G4String& section);
0070   void ReadPhantomDataFile(const G4String& sex, const G4String& fname, G4int);
0071   ICRP110PhantomMaterial_Female* fMaterial_Female;
0072   ICRP110PhantomMaterial_Male* fMaterial_Male;
0073   ICRP110PhantomMessenger* fMessenger;
0074  // std::vector<G4Material*> fMaterials;
0075   G4VPhysicalVolume* fMotherVolume;
0076   G4VPhysicalVolume* fPhantomContainer;
0077   G4int fNVoxelX;
0078   G4int fNVoxelY; 
0079   G4int fNVoxelZ;
0080   G4double fVoxelHalfDimX;
0081   G4double fVoxelHalfDimY;
0082   G4double fVoxelHalfDimZ;
0083   G4double fMinX;
0084   G4double fMaxX;
0085   G4double fMinY;
0086   G4double fMaxY;
0087   G4double fMinZ;
0088   G4double fMaxZ;
0089   G4int fNoFiles;
0090   G4int fNVoxels;
0091   size_t* fMateIDs; // index of material of each voxel
0092   G4String fSex;
0093   G4String fSection;
0094 };
0095 #endif
0096