File indexing completed on 2025-01-18 09:59:19
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
0047
0048
0049
0050
0051
0052
0053
0054
0055 #ifndef G4VCrossSectionDataSet_h
0056 #define G4VCrossSectionDataSet_h 1
0057
0058 #include "globals.hh"
0059 #include "G4ParticleDefinition.hh"
0060 #include "G4DynamicParticle.hh"
0061 #include "G4Element.hh"
0062 #include <iostream>
0063
0064 class G4DynamicParticle;
0065 class G4Isotope;
0066 class G4Material;
0067 class G4CrossSectionDataSetRegistry;
0068
0069 class G4VCrossSectionDataSet
0070 {
0071 public:
0072
0073 G4VCrossSectionDataSet(const G4String& nam = "");
0074
0075 virtual ~G4VCrossSectionDataSet();
0076
0077
0078
0079
0080
0081
0082 virtual
0083 G4bool IsElementApplicable(const G4DynamicParticle*, G4int Z,
0084 const G4Material* mat = nullptr);
0085
0086
0087
0088
0089 virtual
0090 G4bool IsIsoApplicable(const G4DynamicParticle*, G4int Z, G4int A,
0091 const G4Element* elm = nullptr,
0092 const G4Material* mat = nullptr);
0093
0094
0095
0096
0097
0098 inline G4double GetCrossSection(const G4DynamicParticle*, const G4Element*,
0099 const G4Material* mat = nullptr);
0100
0101
0102
0103
0104 G4double ComputeCrossSection(const G4DynamicParticle*,
0105 const G4Element*,
0106 const G4Material* mat = nullptr);
0107
0108
0109
0110 virtual
0111 G4double ComputeCrossSectionPerElement(G4double kinEnergy, G4double loge,
0112 const G4ParticleDefinition*,
0113 const G4Element*,
0114 const G4Material* mat = nullptr);
0115
0116
0117 virtual
0118 G4double GetElementCrossSection(const G4DynamicParticle*, G4int Z,
0119 const G4Material* mat = nullptr);
0120
0121
0122
0123
0124 virtual
0125 G4double GetIsoCrossSection(const G4DynamicParticle*, G4int Z, G4int A,
0126 const G4Isotope* iso = nullptr,
0127 const G4Element* elm = nullptr,
0128 const G4Material* mat = nullptr);
0129
0130 virtual
0131 G4double ComputeIsoCrossSection(G4double kinEnergy, G4double loge,
0132 const G4ParticleDefinition*, G4int Z, G4int A,
0133 const G4Isotope* iso = nullptr,
0134 const G4Element* elm = nullptr,
0135 const G4Material* mat = nullptr);
0136
0137
0138
0139
0140
0141
0142 virtual const G4Isotope* SelectIsotope(const G4Element*, G4double kinEnergy,
0143 G4double logE);
0144
0145
0146 virtual
0147 void BuildPhysicsTable(const G4ParticleDefinition&);
0148
0149
0150
0151
0152 virtual
0153 void DumpPhysicsTable(const G4ParticleDefinition&);
0154
0155 virtual void CrossSectionDescription(std::ostream&) const;
0156
0157 virtual void SetVerboseLevel(G4int value);
0158
0159 inline G4double GetMinKinEnergy() const;
0160
0161 inline void SetMinKinEnergy(G4double value);
0162
0163 inline G4double GetMaxKinEnergy() const;
0164
0165 inline void SetMaxKinEnergy(G4double value);
0166
0167 inline bool ForAllAtomsAndEnergies() const;
0168
0169 inline void SetForAllAtomsAndEnergies(G4bool val);
0170
0171 inline const G4String& GetName() const;
0172
0173 inline void SetName(const G4String& nam);
0174
0175 G4VCrossSectionDataSet & operator=
0176 (const G4VCrossSectionDataSet &right) = delete;
0177 G4VCrossSectionDataSet(const G4VCrossSectionDataSet&) = delete;
0178
0179 protected:
0180
0181 G4int verboseLevel;
0182
0183 G4String name;
0184
0185 private:
0186
0187 G4CrossSectionDataSetRegistry* registry;
0188
0189 G4double minKinEnergy;
0190 G4double maxKinEnergy;
0191
0192 G4bool isForAllAtomsAndEnergies;
0193
0194 };
0195
0196 inline G4double
0197 G4VCrossSectionDataSet::GetCrossSection(const G4DynamicParticle* dp,
0198 const G4Element* elm,
0199 const G4Material* mat)
0200 {
0201 return ComputeCrossSection(dp, elm, mat);
0202 }
0203
0204 inline void G4VCrossSectionDataSet::SetVerboseLevel(G4int value)
0205 {
0206 verboseLevel = value;
0207 }
0208
0209 inline void G4VCrossSectionDataSet::SetMinKinEnergy(G4double value)
0210 {
0211 minKinEnergy = value;
0212 }
0213
0214 inline G4double G4VCrossSectionDataSet::GetMinKinEnergy() const
0215 {
0216 return minKinEnergy;
0217 }
0218
0219 inline void G4VCrossSectionDataSet::SetMaxKinEnergy(G4double value)
0220 {
0221 maxKinEnergy = value;
0222 }
0223
0224 inline G4double G4VCrossSectionDataSet::GetMaxKinEnergy() const
0225 {
0226 return maxKinEnergy;
0227 }
0228
0229 inline const G4String& G4VCrossSectionDataSet::GetName() const
0230 {
0231 return name;
0232 }
0233
0234 inline bool G4VCrossSectionDataSet::ForAllAtomsAndEnergies() const
0235 {
0236 return isForAllAtomsAndEnergies;
0237 }
0238
0239 inline void G4VCrossSectionDataSet::SetForAllAtomsAndEnergies(G4bool val)
0240 {
0241 isForAllAtomsAndEnergies = val;
0242 }
0243
0244 inline void G4VCrossSectionDataSet::SetName(const G4String& nam)
0245 {
0246 name = nam;
0247 }
0248
0249 #endif