|
||||
File indexing completed on 2025-01-18 09:58:10
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 0028 #ifndef G4DNAVacuumModel_h 0029 #define G4DNAVacuumModel_h 1 0030 0031 #include "G4DNACrossSectionDataSet.hh" 0032 #include "G4Electron.hh" 0033 #include "G4LogLogInterpolation.hh" 0034 #include "G4NistManager.hh" 0035 #include "G4ParticleChangeForGamma.hh" 0036 #include "G4ProductionCutsTable.hh" 0037 #include "G4Proton.hh" 0038 #include "G4VDNAModel.hh" 0039 0040 /*! 0041 * \brief The G4DNAVacuumModel class 0042 * Implementation of the vacuum model allowing the user to use G4_Galactic as void in a 0043 * Geant4-DNA simulation. 0044 */ 0045 class G4DNAVacuumModel : public G4VDNAModel 0046 { 0047 public: 0048 /*! 0049 * \brief G4DNAVacuumModel 0050 * Constructor 0051 * \param applyToMaterial 0052 * \param p 0053 * \param nam 0054 */ 0055 G4DNAVacuumModel(const G4String& applyToMaterial = "all", const G4ParticleDefinition* p = nullptr, 0056 const G4String& nam = "DNAPTBVacuumModel"); 0057 0058 /*! 0059 * \brief ~G4DNAVacuumModel 0060 * Destructor 0061 */ 0062 ~G4DNAVacuumModel() override; 0063 0064 G4DNAVacuumModel(const G4DNAVacuumModel&) = delete; // prevent copy-construction 0065 G4DNAVacuumModel& operator=(const G4DNAVacuumModel& right) = delete; // prevent assignement 0066 0067 /*! 0068 * \brief Initialise 0069 * Registers the G4_Galactic material as "void material" for every particle 0070 */ 0071 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override; 0072 0073 /*! 0074 * \brief CrossSectionPerVolume 0075 * \param material 0076 * \param materialName 0077 * \param p 0078 * \param ekin 0079 * \param emin 0080 * \param emax 0081 * \return cross section value 0082 */ 0083 G4double CrossSectionPerVolume(const G4Material* material, 0084 const G4ParticleDefinition* p, G4double ekin, G4double emin, G4double emax) override; 0085 0086 /*! 0087 * \brief SampleSecondaries 0088 * \param materialName 0089 * \param particleChangeForGamma 0090 * \param tmin 0091 * \param tmax 0092 */ 0093 void SampleSecondaries(std::vector<G4DynamicParticle*>*, const G4MaterialCutsCouple*, const G4DynamicParticle*, G4double tmin, G4double tmax) override; 0094 0095 private: 0096 G4int verboseLevel = 0; ///< verbose level 0097 0098 }; 0099 0100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 0101 0102 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |