Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:22:28

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 // This is the *BASIC* version of IORT, a Geant4-based application
0027 //
0028 // Main Authors: G.Russo(a,b), C.Casarino*(c), G.C. Candiano(c), G.A.P. Cirrone(d), F.Romano(d)
0029 // Contributor Authors: S.Guatelli(e)
0030 // Past Authors: G.Arnetta(c), S.E.Mazzaglia(d)
0031 //    
0032 //   (a) Fondazione Istituto San Raffaele G.Giglio, Cefalù, Italy
0033 //   (b) IBFM-CNR , Segrate (Milano), Italy
0034 //   (c) LATO (Laboratorio di Tecnologie Oncologiche), Cefalù, Italy
0035 //   (d) Laboratori Nazionali del Sud of the INFN, Catania, Italy
0036 //   (e) University of Wollongong, Australia
0037 //
0038 //   *Corresponding author, email to carlo.casarino@polooncologicocefalu.it
0039 //////////////////////////////////////////////////////////////////////////////////////////////
0040 
0041 #ifndef Collimator40BeamLine_H
0042 #define Collimator40BeamLine_H 1
0043 
0044 #include "globals.hh"
0045 #include "G4VUserDetectorConstruction.hh"
0046 #include "G4Box.hh"
0047 #include "G4Tubs.hh"
0048 #include "G4VisAttributes.hh"
0049 #include "G4LogicalVolume.hh"
0050 
0051 #include "G4Cons.hh"  
0052 #include "G4SubtractionSolid.hh"  
0053 
0054 class G4VPhysicalVolume;
0055 class IORTDetectorConstruction;
0056 class Collimator40BeamLineMessenger;
0057 
0058 class Collimator40BeamLine : public G4VUserDetectorConstruction
0059 {
0060 public:
0061 
0062  
0063    Collimator40BeamLine();
0064   ~Collimator40BeamLine();
0065 
0066   G4VPhysicalVolume* Construct();  
0067 
0068 
0069   void IortBeamLineVacuumSource();
0070   void IortBeamLineTitaniumWindows();
0071   void IortBeamLineMonitorChambers();
0072   void IortBeamLineBlocks() ;
0073   void IortBeamLineJunctions(); 
0074   void IortBeamLineFinalCollimator();
0075  
0076   
0077   void SetInnerRadiusFinalCollimatorIORT(G4double);
0078   // This method allows to change the size of the inner radius of the 
0079   // final collimator
0080 
0081   void SetOuterRadiusFinalCollimatorIORT(G4double);
0082   // This method allows to change the size of the outer radius of the 
0083   // final collimator
0084   
0085   //  void SetFinalCollimatorIORTMaterial(G4String);
0086   // This method allows to change the material 
0087   // of the final collimator
0088 
0089   
0090  
0091 private:
0092 //Collimator40 line dimensions
0093   void SetDefaultDimensions(); 
0094   void ConstructCollimator40BeamLine();
0095 
0096  
0097   Collimator40BeamLineMessenger* collimatorMessenger;  
0098   G4VPhysicalVolume* physicalTreatmentRoom;
0099   IORTDetectorConstruction* iortDetectorConstruction; 
0100 
0101   G4VisAttributes* blue;
0102   G4VisAttributes* gray;
0103   G4VisAttributes* white;
0104   G4VisAttributes* red;
0105   G4VisAttributes* yellow;
0106   G4VisAttributes* green;
0107   G4VisAttributes* darkGreen;
0108   G4VisAttributes* darkOrange3;
0109   G4VisAttributes* skyBlue;
0110 
0111   // Final Collimator IORT
0112   G4double innerRadiusFinalCollimatorIORT;
0113   G4double OuterRadiusFinalCollimatorIORT;
0114   G4Tubs* solidFinalCollimatorIORT; 
0115   G4VPhysicalVolume* physiFinalCollimatorIORT;
0116   G4Material* finalCollimatorMaterialIORT;
0117 
0118   // Junction 1 FINAL COLLIMATOR IORT
0119   G4Material* Giunz1FinalCollMaterialIORT;
0120 
0121   // Junction 2 FINAL COLLIMATOR IORT
0122   G4Material* Giunz2FinalCollMaterialIORT;
0123 
0124   // Junction 3 FINAL COLLIMATOR IORT
0125   G4Tubs* solidGiunz3FinalCollIORT; 
0126   G4VPhysicalVolume* physiGiunz3FinalCollIORT;
0127   G4Material* Giunz3FinalCollMaterialIORT;   
0128 
0129   // Junction 3 FINAL COLLIMATOR intIORT
0130   G4Cons* solidGiunz3FinalCollIntIORT; 
0131   G4Material* Giunz3FinalCollMaterialIntIORT;
0132   G4VPhysicalVolume* physiGiunz3FinalCollIntIORT;
0133 
0134   // Junction 4 FINAL COLLIMATOR IORT
0135   G4Tubs* solidGiunz4FinalCollIORT; 
0136   G4VPhysicalVolume* physiGiunz4FinalCollIORT;
0137   G4Material* Giunz4FinalCollMaterialIORT;
0138 
0139   // Junction 5 FINAL COLLIMATOR IORT
0140   G4Tubs* solidGiunz5FinalCollIORT; 
0141   G4VPhysicalVolume* physiGiunz5FinalCollIORT;
0142   G4Material* Giunz5FinalCollMaterialIORT;
0143 
0144   // Block 1 Diameter 30 mm 
0145   G4Tubs* solidBlocco1IORT; 
0146   G4VPhysicalVolume* physiBlocco1IORT;
0147   G4Material* Blocco1IORTMaterialIORT;
0148 
0149   // Block 2 Diameter 30 mm 
0150   G4Tubs* solidBlocco2IORT; 
0151   G4VPhysicalVolume* physiBlocco2IORT;
0152   G4Material* Blocco2IORTMaterialIORT;
0153 
0154   // Block 3 Diameter 30 mm 
0155   G4Tubs* solidBlocco3IORT; 
0156   G4VPhysicalVolume* physiBlocco3IORT;
0157   G4Material* Blocco3IORTMaterialIORT;
0158 
0159   // Block 4 Internal Diameter 20 mm 
0160   G4Tubs* solidBlocco20mmIORT; 
0161   G4VPhysicalVolume* physiBlocco20mmIORT;
0162   G4Material* Blocco20mmIORTMaterialIORT;
0163 
0164   // First Chamber Monitor  1 of 2 
0165   G4Tubs* solidCM1_1_2IORT; 
0166   G4VPhysicalVolume* physiCM1_1_2IORT;
0167   G4Material* CM1_1_2IORTMaterialIORT;
0168 
0169   // First Chamber Monitor  2 of 2 
0170   G4Tubs* solidCM1_2_2IORT; 
0171   G4VPhysicalVolume* physiCM1_2_2IORT;
0172   G4Material* CM1_2_2IORTMaterialIORT;
0173 
0174   // Second Chamber Monitor  1 of 2 
0175   G4Tubs* solidCM2_1_2IORT; 
0176   G4VPhysicalVolume* physiCM2_1_2IORT;
0177   G4Material* CM2_1_2IORTMaterialIORT;
0178 
0179   // Second Chamber Monitor  2 of 2 
0180   G4Tubs* solidCM2_2_2IORT; 
0181   G4VPhysicalVolume* physiCM2_2_2IORT;
0182   G4Material* CM2_2_2IORTMaterialIORT;
0183 
0184   // Monitor Chambers Cylinder 
0185   G4Tubs* solidCCMIORT; 
0186   G4VPhysicalVolume* physiCCMIORT;
0187   G4Material* CCMIORTMaterialIORT;
0188 
0189   //  Superior Final Monitor Chamber Part 1
0190   G4Tubs* solidPFS1IORT; 
0191   G4VPhysicalVolume* physiPFS1IORT;
0192   G4Material* PFS1IORTMaterialIORT;
0193   
0194   //  Superior Final Monitor Chamber Part 2
0195   G4Tubs* solidPFS2IORT; 
0196   G4VPhysicalVolume* physiPFS2IORT;
0197   G4Material* PFS2IORTMaterialIORT;
0198 
0199   //  Superior Final Monitor Chamber Part 3
0200   G4Tubs* solidPFS3IORT; 
0201   G4VPhysicalVolume* physiPFS3IORT;
0202   G4Material* PFS3IORTMaterialIORT;
0203   
0204   //  Titanium Window
0205   G4Tubs* solidFTIORT; 
0206   G4VPhysicalVolume* physiFTIORT;
0207   G4Material* FTIORTMaterialIORT;
0208   
0209   //  Vacuum Source
0210   G4Tubs* solidVSIORT; 
0211   G4VPhysicalVolume* physiVSIORT;
0212   G4Material* VSIORTMaterialIORT;
0213 
0214  
0215 };
0216 #endif
0217 
0218 
0219