| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | #ifndef G4PiNuclearCrossSection_h
|
|---|
| 27 | #define G4PiNuclearCrossSection_h
|
|---|
| 28 |
|
|---|
| 29 | #include "G4VCrossSectionDataSet.hh"
|
|---|
| 30 |
|
|---|
| 31 | #include "globals.hh"
|
|---|
| 32 | #include "G4PionMinus.hh"
|
|---|
| 33 | #include "G4PionPlus.hh"
|
|---|
| 34 | #include "G4PiData.hh"
|
|---|
| 35 | #include "G4HadTmpUtil.hh"
|
|---|
| 36 |
|
|---|
| 37 | class G4PiNuclearCrossSection : public G4VCrossSectionDataSet
|
|---|
| 38 | {
|
|---|
| 39 | public:
|
|---|
| 40 |
|
|---|
| 41 | G4PiNuclearCrossSection();
|
|---|
| 42 | virtual ~G4PiNuclearCrossSection();
|
|---|
| 43 |
|
|---|
| 44 | G4bool IsApplicable(const G4DynamicParticle* aParticle,
|
|---|
| 45 | const G4Element* anElement)
|
|---|
| 46 | {
|
|---|
| 47 | G4bool result = false;
|
|---|
| 48 | if(aParticle->GetDefinition() == G4PionMinus::PionMinus()) result=true;
|
|---|
| 49 | if(aParticle->GetDefinition() == G4PionPlus::PionPlus()) result=true;
|
|---|
| 50 | if(G4lrint(anElement->GetZ()) == 1) result = false;
|
|---|
| 51 | if(aParticle->GetKineticEnergy() > 99.9*TeV) result=false;
|
|---|
| 52 | return result;
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 | G4bool
|
|---|
| 56 | IsIsoApplicable(const G4DynamicParticle* particle, G4int ZZ, G4int /*AA*/)
|
|---|
| 57 | {
|
|---|
| 58 | G4bool result = false;
|
|---|
| 59 | if(particle->GetDefinition() == G4PionMinus::PionMinus()) result=true;
|
|---|
| 60 | if(particle->GetDefinition() == G4PionPlus::PionPlus()) result=true;
|
|---|
| 61 | if(ZZ == 1) result = false;
|
|---|
| 62 | if(particle->GetKineticEnergy() > 99.9*TeV) result=false;
|
|---|
| 63 | return result;
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 | G4double GetCrossSection(const G4DynamicParticle* particle,
|
|---|
| 68 | const G4Element* element,
|
|---|
| 69 | G4double temperature)
|
|---|
| 70 | {
|
|---|
| 71 | G4int Z = G4lrint(element->GetZ());
|
|---|
| 72 | G4int A = G4lrint(element->GetN());
|
|---|
| 73 | return GetZandACrossSection(particle, Z, A, temperature);
|
|---|
| 74 | }
|
|---|
| 75 |
|
|---|
| 76 | G4double GetZandACrossSection(const G4DynamicParticle* aParticle,
|
|---|
| 77 | G4int ZZ, G4int AA,
|
|---|
| 78 | G4double /*aTemperature*/);
|
|---|
| 79 |
|
|---|
| 80 | G4double GetTotalXsc() {return fTotalXsc;};
|
|---|
| 81 | G4double GetElasticXsc() {return fElasticXsc;};
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 | void BuildPhysicsTable(const G4ParticleDefinition&) {}
|
|---|
| 85 | void DumpPhysicsTable(const G4ParticleDefinition&) {}
|
|---|
| 86 |
|
|---|
| 87 | private:
|
|---|
| 88 | G4double Interpolate(G4int Z1, G4int Z2, G4int Z, G4double x1, G4double x2);
|
|---|
| 89 |
|
|---|
| 90 | // add Hydrogen from PDG group.
|
|---|
| 91 |
|
|---|
| 92 | static const G4double e1[38];
|
|---|
| 93 | static const G4double he_t[38];
|
|---|
| 94 | static const G4double he_in[38];
|
|---|
| 95 | static const G4double be_m_t[38];
|
|---|
| 96 | static const G4double be_m_in[38];
|
|---|
| 97 | static const G4double be_p_t[24];
|
|---|
| 98 | static const G4double be_p_in[24];
|
|---|
| 99 | static const G4double e2[39];
|
|---|
| 100 | static const G4double c_m_t[39];
|
|---|
| 101 | static const G4double c_m_in[39];
|
|---|
| 102 | static const G4double c_p_t[24];
|
|---|
| 103 | static const G4double c_p_in[24];
|
|---|
| 104 | static const G4double n_m_t[39];
|
|---|
| 105 | static const G4double n_m_in[39];
|
|---|
| 106 | static const G4double n_p_t[27];
|
|---|
| 107 | static const G4double n_p_in[27];
|
|---|
| 108 | static const G4double e3[31];
|
|---|
| 109 | static const G4double o_m_t[31];
|
|---|
| 110 | static const G4double o_m_in[31];
|
|---|
| 111 | static const G4double o_p_t[20];
|
|---|
| 112 | static const G4double o_p_in[20];
|
|---|
| 113 | static const G4double na_m_t[31];
|
|---|
| 114 | static const G4double na_m_in[31];
|
|---|
| 115 | static const G4double na_p_t[22];
|
|---|
| 116 | static const G4double na_p_in[22];
|
|---|
| 117 | static const G4double e3_1[31];
|
|---|
| 118 | static const G4double al_m_t[31];
|
|---|
| 119 | static const G4double al_m_in[31];
|
|---|
| 120 | static const G4double al_p_t[21];
|
|---|
| 121 | static const G4double al_p_in[21];
|
|---|
| 122 | static const G4double ca_m_t[31];
|
|---|
| 123 | static const G4double ca_m_in[31];
|
|---|
| 124 | static const G4double ca_p_t[23];
|
|---|
| 125 | static const G4double ca_p_in[23];
|
|---|
| 126 |
|
|---|
| 127 | static const G4double e4[32];
|
|---|
| 128 | static const G4double fe_m_t[32];
|
|---|
| 129 | static const G4double fe_m_in[32];
|
|---|
| 130 | static const G4double fe_p_t[25];
|
|---|
| 131 | static const G4double fe_p_in[25];
|
|---|
| 132 | static const G4double cu_m_t[32];
|
|---|
| 133 | static const G4double cu_m_in[32];
|
|---|
| 134 | static const G4double cu_p_t[25];
|
|---|
| 135 | static const G4double cu_p_in[25];
|
|---|
| 136 | static const G4double e5[34];
|
|---|
| 137 | static const G4double mo_m_t[34];
|
|---|
| 138 | static const G4double mo_m_in[34];
|
|---|
| 139 | static const G4double mo_p_t[27];
|
|---|
| 140 | static const G4double mo_p_in[27];
|
|---|
| 141 | static const G4double cd_m_t[34];
|
|---|
| 142 | static const G4double cd_m_in[34];
|
|---|
| 143 | static const G4double cd_p_t[28];
|
|---|
| 144 | static const G4double cd_p_in[28];
|
|---|
| 145 | static const G4double e6[35];
|
|---|
| 146 | static const G4double sn_m_t[35];
|
|---|
| 147 | static const G4double sn_m_in[35];
|
|---|
| 148 | static const G4double sn_p_t[29];
|
|---|
| 149 | static const G4double sn_p_in[29];
|
|---|
| 150 | static const G4double w_m_t[35];
|
|---|
| 151 | static const G4double w_m_in[35];
|
|---|
| 152 | static const G4double w_p_t[30];
|
|---|
| 153 | static const G4double w_p_in[30];
|
|---|
| 154 | static const G4double e7[35];
|
|---|
| 155 | static const G4double pb_m_t[35];
|
|---|
| 156 | static const G4double pb_m_in[35];
|
|---|
| 157 | static const G4double pb_p_t[30];
|
|---|
| 158 | static const G4double pb_p_in[30];
|
|---|
| 159 | static const G4double u_m_t[35];
|
|---|
| 160 | static const G4double u_m_in[35];
|
|---|
| 161 | static const G4double u_p_t[30];
|
|---|
| 162 | static const G4double u_p_in[30];
|
|---|
| 163 |
|
|---|
| 164 | std::vector<G4int> theZ;
|
|---|
| 165 | std::vector<G4PiData *> thePipData;
|
|---|
| 166 | std::vector<G4PiData *> thePimData;
|
|---|
| 167 |
|
|---|
| 168 | // cross sections
|
|---|
| 169 |
|
|---|
| 170 | G4double fTotalXsc;
|
|---|
| 171 | G4double fElasticXsc;
|
|---|
| 172 |
|
|---|
| 173 |
|
|---|
| 174 | };
|
|---|
| 175 |
|
|---|
| 176 | #endif
|
|---|