File indexing completed on 2025-01-18 09:58:51
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 #ifndef G4ParticleHPElementData_h
0037 #define G4ParticleHPElementData_h 1
0038
0039 #include "G4Material.hh"
0040 #include "G4Neutron.hh"
0041 #include "G4Nucleus.hh"
0042 #include "G4NeutronHPCaptureData.hh"
0043 #include "G4ParticleHPElasticData.hh"
0044 #include "G4ParticleHPFissionData.hh"
0045 #include "G4ParticleHPInelasticData.hh"
0046 #include "G4ParticleHPIsoData.hh"
0047 #include "G4ParticleHPVector.hh"
0048 #include "G4ReactionProduct.hh"
0049 #include "globals.hh"
0050
0051 class G4ParticleHPElementData
0052 {
0053 public:
0054 G4ParticleHPElementData();
0055
0056 ~G4ParticleHPElementData();
0057
0058 void Init(G4Element* theElement, G4ParticleDefinition* projectile,
0059 const char* dataDirVariable);
0060
0061 void UpdateData(G4int A, G4int Z, G4int index, G4double abundance,
0062 G4ParticleDefinition* projectile,
0063 const char* dataDirVariable)
0064 {
0065 UpdateData(A, Z, 0, index, abundance, projectile, dataDirVariable);
0066 };
0067
0068 void UpdateData(G4int A, G4int Z, G4int M, G4int index, G4double abundance,
0069 G4ParticleDefinition* projectile,
0070 const char* dataDirVariable);
0071
0072 void Harmonise(G4ParticleHPVector*& theStore, G4ParticleHPVector* theNew);
0073
0074 inline G4ParticleHPVector* GetData(G4ParticleHPFissionData*) { return theFissionData; }
0075 inline G4ParticleHPVector* GetData(G4NeutronHPCaptureData*) { return theCaptureData; }
0076 inline G4ParticleHPVector* GetData(G4ParticleHPElasticData*) { return theElasticData; }
0077 inline G4ParticleHPVector* GetData(G4ParticleHPInelasticData*) { return theInelasticData; }
0078
0079 G4ParticleHPVector* MakePhysicsVector(G4Element* theElement,
0080 G4ParticleDefinition* projectile,
0081 G4ParticleHPFissionData* theSet,
0082 char* dataDirVariable);
0083
0084 G4ParticleHPVector* MakePhysicsVector(G4Element* theElement,
0085 G4ParticleDefinition* projectile,
0086 G4NeutronHPCaptureData* theSet,
0087 char* dataDirVariable);
0088
0089 G4ParticleHPVector* MakePhysicsVector(G4Element* theElement,
0090 G4ParticleDefinition* projectile,
0091 G4ParticleHPElasticData* theSet,
0092 char* dataDirVariable);
0093
0094 G4ParticleHPVector* MakePhysicsVector(G4Element* theElement,
0095 G4ParticleDefinition* projectile,
0096 G4ParticleHPInelasticData* theSet,
0097 char* dataDirVariable);
0098
0099 private:
0100 G4ParticleHPVector* theFissionData;
0101 G4ParticleHPVector* theCaptureData;
0102 G4ParticleHPVector* theElasticData;
0103 G4ParticleHPVector* theInelasticData;
0104 G4double precision;
0105
0106 G4ParticleHPVector* theBuffer;
0107 G4ParticleHPIsoData* theIsotopeWiseData;
0108
0109 G4String filename;
0110 };
0111
0112 #endif