Warning, file /include/Geant4/G4ParticleHPProbabilityTablesStore.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
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