00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 #ifndef G4NeutronCaptureXS_h
00046 #define G4NeutronCaptureXS_h 1
00047
00048 #include "G4VCrossSectionDataSet.hh"
00049 #include "globals.hh"
00050 #include "G4ElementData.hh"
00051 #include <vector>
00052 #include <iostream>
00053
00054 class G4DynamicParticle;
00055 class G4ParticleDefinition;
00056 class G4Element;
00057 class G4PhysicsVector;
00058
00059 class G4NeutronCaptureXS : public G4VCrossSectionDataSet
00060 {
00061 public:
00062
00063 G4NeutronCaptureXS();
00064
00065 virtual ~G4NeutronCaptureXS();
00066
00067 virtual
00068 G4bool IsElementApplicable(const G4DynamicParticle*, G4int Z,
00069 const G4Material*);
00070
00071 virtual
00072 G4bool IsIsoApplicable(const G4DynamicParticle*, G4int Z, G4int A,
00073 const G4Element*, const G4Material*);
00074
00075 virtual
00076 G4double GetElementCrossSection(const G4DynamicParticle*,
00077 G4int Z, const G4Material* mat=0);
00078
00079 virtual
00080 G4double GetIsoCrossSection(const G4DynamicParticle*, G4int Z, G4int A,
00081 const G4Isotope* iso,
00082 const G4Element* elm,
00083 const G4Material* mat);
00084
00085 virtual G4Isotope* SelectIsotope(const G4Element*, G4double kinEnergy);
00086
00087 virtual
00088 void BuildPhysicsTable(const G4ParticleDefinition&);
00089
00090 virtual void CrossSectionDescription(std::ostream&) const;
00091
00092 private:
00093
00094 void Initialise(G4int Z, const char* = 0);
00095
00096 G4PhysicsVector* RetrieveVector(std::ostringstream& in, G4bool warn);
00097
00098 G4NeutronCaptureXS & operator=(const G4NeutronCaptureXS &right);
00099 G4NeutronCaptureXS(const G4NeutronCaptureXS&);
00100
00101 G4double emax;
00102 G4int maxZ;
00103 G4bool isInitialized;
00104
00105 G4ElementData data;
00106 std::vector<G4PhysicsVector*> work;
00107 std::vector<G4double> temp;
00108
00109 static const G4int amin[93];
00110 static const G4int amax[93];
00111
00112 };
00113
00114 #endif