Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 /// \file persistency/gdml/G03/include/G03Dete 26 /// \file persistency/gdml/G03/include/G03DetectorConstruction.hh 27 /// \brief Definition of the G03DetectorConstr 27 /// \brief Definition of the G03DetectorConstruction class 28 // 28 // 29 // 29 // >> 30 // $Id: G03DetectorConstruction.hh 69987 2013-05-21 12:33:52Z gcosmo $ 30 // 31 // 31 // Class G03DetectorConstruction 32 // Class G03DetectorConstruction 32 // 33 // 33 // A detector construction class loading the g 34 // A detector construction class loading the geometry from GDML files. 34 // 35 // 35 // ------------------------------------------- 36 // ---------------------------------------------------------------------------- 36 37 37 #ifndef G03DetectorConstruction_H 38 #ifndef G03DetectorConstruction_H 38 #define G03DetectorConstruction_H 1 39 #define G03DetectorConstruction_H 1 39 40 40 #include "G4GDMLParser.hh" << 41 #include "G4VUserDetectorConstruction.hh" << 42 #include "globals.hh" 41 #include "globals.hh" >> 42 #include "G4VUserDetectorConstruction.hh" >> 43 #include "G4GDMLParser.hh" 43 44 44 class G4Material; 45 class G4Material; 45 class G03DetectorMessenger; 46 class G03DetectorMessenger; 46 47 47 /// Detector construction for the GDML extensi 48 /// Detector construction for the GDML extensions example 48 49 49 class G03DetectorConstruction : public G4VUser 50 class G03DetectorConstruction : public G4VUserDetectorConstruction 50 { 51 { 51 public: 52 public: >> 53 52 // Constructor and destructor 54 // Constructor and destructor 53 // 55 // 54 G03DetectorConstruction(); 56 G03DetectorConstruction(); 55 ~G03DetectorConstruction(); << 57 ~G03DetectorConstruction(); 56 58 57 // Construction of Detector 59 // Construction of Detector 58 // 60 // 59 virtual G4VPhysicalVolume* Construct(); 61 virtual G4VPhysicalVolume* Construct(); 60 62 61 // Make List of materials 63 // Make List of materials 62 // 64 // 63 void ListOfMaterials(); 65 void ListOfMaterials(); 64 66 65 // Reading/writing GDML 67 // Reading/writing GDML 66 // 68 // 67 void SetReadFile(const G4String& fname); << 69 void SetReadFile( const G4String& fname ); 68 void SetWriteFile(const G4String& fname); << 70 void SetWriteFile( const G4String& fname ); 69 71 70 private: 72 private: 71 G4Material* fAir; << 73 72 G4Material* fAluminum; << 74 G4Material* fAir ; >> 75 G4Material* fAluminum ; 73 G4Material* fPb; 76 G4Material* fPb; 74 G4Material* fXenon; 77 G4Material* fXenon; 75 78 76 // Extended reader 79 // Extended reader 77 // 80 // 78 G4GDMLReadStructure* fReader; 81 G4GDMLReadStructure* fReader; 79 82 80 // Extended writer 83 // Extended writer 81 // 84 // 82 G4GDMLWriteStructure* fWriter; 85 G4GDMLWriteStructure* fWriter; 83 86 84 // GDMLparser 87 // GDMLparser 85 // 88 // 86 G4GDMLParser* fParser; 89 G4GDMLParser* fParser; 87 << 90 88 // Read/write Settings 91 // Read/write Settings 89 // 92 // 90 G4String fReadFile, fWriteFile; 93 G4String fReadFile, fWriteFile; 91 G4bool fWritingChoice; 94 G4bool fWritingChoice; 92 << 95 93 // Detector Messenger 96 // Detector Messenger 94 // 97 // 95 G03DetectorMessenger* fDetectorMessenger; 98 G03DetectorMessenger* fDetectorMessenger; 96 }; 99 }; 97 100 98 // ------------------------------------------- 101 // ---------------------------------------------------------------------------- 99 102 100 #endif 103 #endif 101 104