![]() |
|
|||
File indexing completed on 2025-08-02 08:29:08
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 // Geant4 header file 0030 // 0031 // File name: G4ParticleHPProbabilityTablesStore.hh 0032 // 0033 // Authors: Marek Zmeskal (CTU, Czech Technical University in Prague, Czech Republic) 0034 // Loic Thulliez (CEA France) 0035 // 0036 // Creation date: 4 June 2024 0037 // 0038 // Description: Class to store all probability tables for different isotopes 0039 // and in future also for different temperatures. 0040 // 0041 // Modifications: 0042 // 0043 // ------------------------------------------------------------------- 0044 // 0045 // 0046 #ifndef G4ParticleHPProbabilityTablesStore_h 0047 #define G4ParticleHPProbabilityTablesStore_h 1 0048 0049 #include "globals.hh" 0050 #include <map> 0051 #include <vector> 0052 #include <thread> 0053 0054 class G4Material; 0055 class G4Element; 0056 class G4Isotope; 0057 class G4DynamicParticle; 0058 class G4ParticleHPIsoProbabilityTable; 0059 0060 0061 class G4ParticleHPProbabilityTablesStore { 0062 public: 0063 static G4ParticleHPProbabilityTablesStore * GetInstance(); 0064 0065 void Init(); 0066 void InitURRlimits(); 0067 0068 std::vector< std::map< G4int, G4ParticleHPIsoProbabilityTable* > >* GetProbabilityTables() { return ProbabilityTables; }; 0069 std::vector< std::pair< G4double, G4double > >* GetURRlimits(){ return URRlimits; }; 0070 G4double GetIsoCrossSectionPT( const G4DynamicParticle*, G4int, const G4Isotope*, const G4Element*, const G4Material* ); 0071 0072 std::vector< std::map< std::thread::id, G4double > > random_number_cache; 0073 0074 private: 0075 static G4ParticleHPProbabilityTablesStore* instance; 0076 0077 G4ParticleHPProbabilityTablesStore(); 0078 G4ParticleHPProbabilityTablesStore( const G4ParticleHPProbabilityTablesStore& ){}; 0079 ~G4ParticleHPProbabilityTablesStore(); 0080 0081 std::vector< std::vector< G4int > >* Temperatures; 0082 std::vector< std::map< G4int, G4ParticleHPIsoProbabilityTable* > >* ProbabilityTables; 0083 std::vector< std::pair< G4double, G4double > >* URRlimits; 0084 std::vector< std::map< std::thread::id, G4double > > energy_cache; 0085 G4String dirName; 0086 G4String filename; 0087 G4int numIso; 0088 G4bool usedNjoy; 0089 G4bool usedCalendf; 0090 }; 0091 0092 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |