|
||||
File indexing completed on 2025-01-18 09:58:22
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 // 0029 // ClassName: G4HadProcesses 0030 // 0031 // Author: 8 July 2020 V.Ivanchenko 0032 // 0033 // Modified: 0034 // 0035 // Description: access to hadronic processes via particle name or pointer 0036 // access or addition of hadronic cross sections 0037 // 0038 //---------------------------------------------------------------------------- 0039 // 0040 #ifndef G4HadProcesses_h 0041 #define G4HadProcesses_h 1 0042 0043 #include "globals.hh" 0044 #include "G4HadronicProcess.hh" 0045 #include "G4ParticleDefinition.hh" 0046 #include "G4CrossSectionInelastic.hh" 0047 #include "G4CrossSectionElastic.hh" 0048 0049 class G4VCrossSectionDataSet; 0050 0051 class G4HadProcesses 0052 { 0053 public: 0054 0055 // convert particle name to a pointer 0056 static const G4ParticleDefinition* FindParticle(const G4String&); 0057 0058 // access to a process created before 0059 static G4HadronicProcess* FindInelasticProcess(const G4ParticleDefinition*); 0060 static G4HadronicProcess* FindInelasticProcess(const G4String&); 0061 0062 static G4HadronicProcess* FindElasticProcess(const G4ParticleDefinition*); 0063 static G4HadronicProcess* FindElasticProcess(const G4String&); 0064 0065 static G4HadronicProcess* FindCaptureProcess(); 0066 0067 static G4HadronicProcess* FindFissionProcess(); 0068 0069 // access to cross section by the component name 0070 static G4CrossSectionInelastic* InelasticXS(const G4String& componentName); 0071 static G4CrossSectionElastic* ElasticXS(const G4String& componentName); 0072 0073 // add extra data set to a particle 0074 static G4bool AddInelasticCrossSection(const G4ParticleDefinition*, G4VCrossSectionDataSet*); 0075 static G4bool AddInelasticCrossSection(const G4String&, G4VCrossSectionDataSet*); 0076 0077 static G4bool AddElasticCrossSection(const G4ParticleDefinition*, G4VCrossSectionDataSet*); 0078 static G4bool AddElasticCrossSection(const G4String&, G4VCrossSectionDataSet*); 0079 0080 static G4bool AddCaptureCrossSection(G4VCrossSectionDataSet*); 0081 0082 static G4bool AddFissionCrossSection(G4VCrossSectionDataSet*); 0083 0084 // build neutron physics, neutron inelastic and elastic processes 0085 // and list of models should be defined before call to this functions 0086 static void BuildNeutronInelasticAndCapture(G4HadronicProcess*); 0087 static void BuildNeutronElastic(G4HadronicProcess*); 0088 0089 }; 0090 0091 #endif 0092
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |