|
||||
File indexing completed on 2025-01-18 09:58:13
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 // Geant4 header G4EmUtility 0028 // 0029 // Author V.Ivanchenko 14.03.2022 0030 // 0031 // Utilities used at initialisation of EM physics 0032 // 0033 0034 #ifndef G4EmUtility_h 0035 #define G4EmUtility_h 1 0036 0037 #include <vector> 0038 #include "globals.hh" 0039 #include "G4Region.hh" 0040 #include "G4PhysicsTable.hh" 0041 #include "G4EmTableType.hh" 0042 #include "G4ParticleDefinition.hh" 0043 #include "G4VDiscreteProcess.hh" 0044 #include "G4LossTableBuilder.hh" 0045 #include "G4Material.hh" 0046 #include "G4Element.hh" 0047 #include "G4Isotope.hh" 0048 #include "G4DataVector.hh" 0049 #include "G4VEmModel.hh" 0050 0051 class G4EmUtility 0052 { 0053 public: 0054 0055 // find G4Region pointer by name, by default no verbosity 0056 static const G4Region* FindRegion(const G4String& regionName, 0057 const G4int verbose = 0); 0058 0059 // sample random G4Element for the case if cross section is 0060 // proportional to the number of electrons in an atom 0061 static const G4Element* SampleRandomElement(const G4Material*); 0062 0063 // sample random G4Isotope 0064 static const G4Isotope* SampleRandomIsotope(const G4Element*); 0065 0066 // find energy of cross section maximum for all couples 0067 static std::vector<G4double>* FindCrossSectionMax(G4PhysicsTable*); 0068 static std::vector<G4double>* 0069 FindCrossSectionMax(G4VDiscreteProcess*, const G4ParticleDefinition*); 0070 0071 // fill structure describing more than one peak in cross sections 0072 static std::vector<G4TwoPeaksXS*>* 0073 FillPeaksStructure(G4PhysicsTable*, G4LossTableBuilder*); 0074 0075 // model initialisation 0076 static void InitialiseElementSelectors(G4VEmModel*, 0077 const G4ParticleDefinition*, 0078 const G4DataVector& cuts, 0079 const G4double emin, 0080 const G4double emax); 0081 }; 0082 0083 #endif 0084 0085
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |