Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /geant4/examples/advanced/dna/cellularPhantom/include/DetectorConstruction.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 //       MONTE CARLO SIMULATION OF REALISTIC GEOMETRY FROM MICROSCOPES IMAGES
0028 //
0029 // Authors and contributors:
0030 // P. Barberet (a), S. Incerti (a), N. H. Tran (a), L. Morelli (a,b)
0031 //
0032 // a) University of Bordeaux, CNRS, LP2i, UMR5797, Gradignan, France
0033 // b) Politecnico di Milano, Italy
0034 //
0035 // If you use this code, please cite the following publication:
0036 // P. Barberet et al.,
0037 // "Monte-Carlo dosimetry on a realistic cell monolayer
0038 // geometry exposed to alpha particles."
0039 // Ph. Barberet et al 2012 Phys. Med. Biol. 57 2189
0040 // doi: 110.1088/0031-9155/57/8/2189
0041 // -----------------------------------------------------------------------------
0042 
0043 #ifndef DetectorConstruction_h
0044 #define DetectorConstruction_h 1
0045 
0046 #include "CellParameterisation.hh"
0047 
0048 #include "G4VUserDetectorConstruction.hh"
0049 #include "G4Box.hh"
0050 #include "G4Region.hh"
0051 #include "G4PVPlacement.hh"
0052 #include "G4PVParameterised.hh"
0053 
0054 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0055 
0056 class DetectorMessenger;
0057 
0058 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0059 
0060 class DetectorConstruction : public G4VUserDetectorConstruction {
0061   public:
0062 
0063     DetectorConstruction();
0064     ~DetectorConstruction() override = default;
0065 
0066     G4VPhysicalVolume *Construct() override;
0067 
0068     inline auto *GetLogicalMedium() const { return fLogicMedium; };
0069 
0070     void SetTargetMaterial(const G4String&);
0071 
0072     void SetRedDensity(const G4double&);
0073     void SetGreenDensity(const G4double&);
0074     void SetBlueDensity(const G4double&);
0075 
0076     void SetShiftX(const G4double&);
0077     void SetShiftY(const G4double&);
0078     void SetShiftZ(const G4double&);
0079 
0080     void SetMediumSizeXY(const G4double&);
0081     void SetMediumSizeZ(const G4double&);
0082 
0083     void SetWorldSizeXY(const G4double&);
0084     void SetWorldSizeZ(const G4double&);
0085 
0086     void SetPhantomFileName(const G4String&);
0087 
0088   private:
0089 
0090     void DefineMaterials();
0091 
0092     G4VPhysicalVolume *ConstructLine();
0093 
0094     G4double fDensityRed = 1.0;
0095     G4double fDensityGreen = 1.0;
0096     G4double fDensityBlue = 1.0;
0097 
0098     G4double fShiftX = 0.*um;
0099     G4double fShiftY = 0.*um;
0100     G4double fShiftZ = 0.*um;
0101 
0102     G4double fWorldSizeXY = 0.;
0103     G4double fWorldSizeZ = 0.;
0104 
0105     G4double fMediumSizeXY = 0.;
0106     G4double fMediumSizeZ = 0.;
0107 
0108     G4Material *fDefaultMaterial = nullptr;
0109     G4Material *fMediumMaterial = nullptr;
0110     G4Material *fRedMaterial = nullptr;
0111     G4Material *fGreenMaterial = nullptr;
0112     G4Material *fBlueMaterial = nullptr;
0113     G4Material *fPhantomMaterial = nullptr;
0114 
0115     G4VPhysicalVolume *fPhysiWorld = nullptr;
0116     G4LogicalVolume *fLogicWorld = nullptr;
0117     G4Box *fSolidWorld = nullptr;
0118 
0119     G4VPhysicalVolume *fPhysiMedium = nullptr;
0120     G4LogicalVolume *fLogicMedium = nullptr;
0121     G4Box *fSolidMedium = nullptr;
0122 
0123     G4VPhysicalVolume *fPhysiPhantom = nullptr;
0124     G4LogicalVolume *fLogicPhantom = nullptr;
0125     G4Box *fSolidPhantom = nullptr;
0126     CellParameterisation *fPhantomParam = nullptr;
0127 
0128     DetectorMessenger* fDetectorMessenger = nullptr;
0129 
0130     G4String fPhantomFileName = "";
0131     G4Region* fPhantomRegion = nullptr;
0132 };
0133 
0134 #endif