Geant4 Cross Reference |
1 // 2 // ******************************************************************** 3 // * License and Disclaimer * 4 // * * 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. * 10 // * * 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitation of liability. * 17 // * * 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************************************** 25 // 26 // 27 /// file:DNAWorld.hh 28 /// brief : 29 /* 30 * This class contains the physical placements of DNA volumes. 31 * In order to keep all the volume placement in the same place, volumes 32 * are defined and placed in DNAGeometry, and their parent volume 33 * is passed to this class via SetDNAVolumePointer() 34 * 35 * This volume is then placed in the world volume. 36 * It is important that a physics process is created to ensure that this 37 * world functions as a layered mass geometry. 38 * 39 * The aim of this function is to allow the chemistry to run without seeing 40 * DNA volumes, in the geometry, but still allowing the chemistry to access 41 * the volume positions through an alternate data structure. 42 */ 43 44 #ifndef MOLECULAR_DNA_WORLD_HH 45 #define MOLECULAR_DNA_WORLD_HH 46 47 #include "G4RotationMatrix.hh" 48 #include "G4ThreeVector.hh" 49 #include "G4VUserParallelWorld.hh" 50 51 class G4LogicalVolume; 52 53 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 54 55 class DNAWorld : public G4VUserParallelWorld 56 { 57 public: 58 DNAWorld(); 59 60 ~DNAWorld() override; 61 62 void Construct() override; 63 64 void SetDNAVolumePointer(G4LogicalVolume* lv) { fpDNAVolumePointer = lv; }; 65 66 void SetDNAVolumeTranslation(G4ThreeVector* t) { fpDNAVolumeTranslation = t; }; 67 68 void SetDNAVolumeRotation(G4RotationMatrix* rot) { fpDNAVolumeRotation = rot; }; 69 70 private: 71 G4LogicalVolume* fpDNAVolumePointer = nullptr; 72 G4ThreeVector* fpDNAVolumeTranslation = nullptr; 73 G4RotationMatrix* fpDNAVolumeRotation = nullptr; 74 }; 75 76 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 77 78 #endif // MOLECULAR_DNA_WORLD_HH 79