Import Geant4 9.5.0 source tree
This commit is contained in:
@@ -38,138 +38,110 @@ class G4PiNuclearCrossSection : public G4VCrossSectionDataSet
|
||||
{
|
||||
public:
|
||||
|
||||
G4PiNuclearCrossSection();
|
||||
virtual ~G4PiNuclearCrossSection();
|
||||
G4PiNuclearCrossSection();
|
||||
virtual ~G4PiNuclearCrossSection();
|
||||
|
||||
G4bool IsApplicable(const G4DynamicParticle* aParticle,
|
||||
const G4Element* anElement)
|
||||
{
|
||||
G4bool result = false;
|
||||
if(aParticle->GetDefinition() == G4PionMinus::PionMinus()) result=true;
|
||||
if(aParticle->GetDefinition() == G4PionPlus::PionPlus()) result=true;
|
||||
if(G4lrint(anElement->GetZ()) == 1) result = false;
|
||||
if(aParticle->GetKineticEnergy() > 99.9*TeV) result=false;
|
||||
return result;
|
||||
}
|
||||
virtual
|
||||
G4bool IsElementApplicable(const G4DynamicParticle* aParticle,
|
||||
G4int Z, const G4Material*);
|
||||
|
||||
G4bool
|
||||
IsIsoApplicable(const G4DynamicParticle* particle, G4int ZZ, G4int /*AA*/)
|
||||
{
|
||||
G4bool result = false;
|
||||
if(particle->GetDefinition() == G4PionMinus::PionMinus()) result=true;
|
||||
if(particle->GetDefinition() == G4PionPlus::PionPlus()) result=true;
|
||||
if(ZZ == 1) result = false;
|
||||
if(particle->GetKineticEnergy() > 99.9*TeV) result=false;
|
||||
return result;
|
||||
}
|
||||
virtual
|
||||
G4double GetElementCrossSection(const G4DynamicParticle* particle,
|
||||
G4int Z, const G4Material*);
|
||||
|
||||
virtual
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&);
|
||||
|
||||
G4double GetCrossSection(const G4DynamicParticle* particle,
|
||||
const G4Element* element,
|
||||
G4double temperature)
|
||||
{
|
||||
G4int Z = G4lrint(element->GetZ());
|
||||
G4int A = G4lrint(element->GetN());
|
||||
return GetZandACrossSection(particle, Z, A, temperature);
|
||||
}
|
||||
virtual void CrossSectionDescription(std::ostream&) const;
|
||||
|
||||
G4double GetZandACrossSection(const G4DynamicParticle* aParticle,
|
||||
G4int ZZ, G4int AA,
|
||||
G4double /*aTemperature*/);
|
||||
|
||||
G4double GetTotalXsc() {return fTotalXsc;};
|
||||
G4double GetElasticXsc() {return fElasticXsc;};
|
||||
|
||||
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&) {}
|
||||
void DumpPhysicsTable(const G4ParticleDefinition&) {}
|
||||
inline G4double GetTotalXsc() {return fTotalXsc;};
|
||||
inline G4double GetElasticXsc() {return fElasticXsc;};
|
||||
|
||||
private:
|
||||
G4double Interpolate(G4int Z1, G4int Z2, G4int Z, G4double x1, G4double x2);
|
||||
G4double Interpolate(G4int Z1, G4int Z2, G4int Z, G4double x1, G4double x2);
|
||||
|
||||
// add Hydrogen from PDG group.
|
||||
// add Hydrogen from PDG group.
|
||||
|
||||
static const G4double e1[38];
|
||||
static const G4double he_t[38];
|
||||
static const G4double he_in[38];
|
||||
static const G4double be_m_t[38];
|
||||
static const G4double be_m_in[38];
|
||||
static const G4double be_p_t[24];
|
||||
static const G4double be_p_in[24];
|
||||
static const G4double e2[39];
|
||||
static const G4double c_m_t[39];
|
||||
static const G4double c_m_in[39];
|
||||
static const G4double c_p_t[24];
|
||||
static const G4double c_p_in[24];
|
||||
static const G4double n_m_t[39];
|
||||
static const G4double n_m_in[39];
|
||||
static const G4double n_p_t[27];
|
||||
static const G4double n_p_in[27];
|
||||
static const G4double e3[31];
|
||||
static const G4double o_m_t[31];
|
||||
static const G4double o_m_in[31];
|
||||
static const G4double o_p_t[20];
|
||||
static const G4double o_p_in[20];
|
||||
static const G4double na_m_t[31];
|
||||
static const G4double na_m_in[31];
|
||||
static const G4double na_p_t[22];
|
||||
static const G4double na_p_in[22];
|
||||
static const G4double e3_1[31];
|
||||
static const G4double al_m_t[31];
|
||||
static const G4double al_m_in[31];
|
||||
static const G4double al_p_t[21];
|
||||
static const G4double al_p_in[21];
|
||||
static const G4double ca_m_t[31];
|
||||
static const G4double ca_m_in[31];
|
||||
static const G4double ca_p_t[23];
|
||||
static const G4double ca_p_in[23];
|
||||
static const G4double e1[38];
|
||||
static const G4double he_t[38];
|
||||
static const G4double he_in[38];
|
||||
static const G4double be_m_t[38];
|
||||
static const G4double be_m_in[38];
|
||||
static const G4double be_p_t[24];
|
||||
static const G4double be_p_in[24];
|
||||
static const G4double e2[39];
|
||||
static const G4double c_m_t[39];
|
||||
static const G4double c_m_in[39];
|
||||
static const G4double c_p_t[24];
|
||||
static const G4double c_p_in[24];
|
||||
static const G4double n_m_t[39];
|
||||
static const G4double n_m_in[39];
|
||||
static const G4double n_p_t[27];
|
||||
static const G4double n_p_in[27];
|
||||
static const G4double e3[31];
|
||||
static const G4double o_m_t[31];
|
||||
static const G4double o_m_in[31];
|
||||
static const G4double o_p_t[20];
|
||||
static const G4double o_p_in[20];
|
||||
static const G4double na_m_t[31];
|
||||
static const G4double na_m_in[31];
|
||||
static const G4double na_p_t[22];
|
||||
static const G4double na_p_in[22];
|
||||
static const G4double e3_1[31];
|
||||
static const G4double al_m_t[31];
|
||||
static const G4double al_m_in[31];
|
||||
static const G4double al_p_t[21];
|
||||
static const G4double al_p_in[21];
|
||||
static const G4double ca_m_t[31];
|
||||
static const G4double ca_m_in[31];
|
||||
static const G4double ca_p_t[23];
|
||||
static const G4double ca_p_in[23];
|
||||
|
||||
static const G4double e4[32];
|
||||
static const G4double fe_m_t[32];
|
||||
static const G4double fe_m_in[32];
|
||||
static const G4double fe_p_t[25];
|
||||
static const G4double fe_p_in[25];
|
||||
static const G4double cu_m_t[32];
|
||||
static const G4double cu_m_in[32];
|
||||
static const G4double cu_p_t[25];
|
||||
static const G4double cu_p_in[25];
|
||||
static const G4double e5[34];
|
||||
static const G4double mo_m_t[34];
|
||||
static const G4double mo_m_in[34];
|
||||
static const G4double mo_p_t[27];
|
||||
static const G4double mo_p_in[27];
|
||||
static const G4double cd_m_t[34];
|
||||
static const G4double cd_m_in[34];
|
||||
static const G4double cd_p_t[28];
|
||||
static const G4double cd_p_in[28];
|
||||
static const G4double e6[35];
|
||||
static const G4double sn_m_t[35];
|
||||
static const G4double sn_m_in[35];
|
||||
static const G4double sn_p_t[29];
|
||||
static const G4double sn_p_in[29];
|
||||
static const G4double w_m_t[35];
|
||||
static const G4double w_m_in[35];
|
||||
static const G4double w_p_t[30];
|
||||
static const G4double w_p_in[30];
|
||||
static const G4double e7[35];
|
||||
static const G4double pb_m_t[35];
|
||||
static const G4double pb_m_in[35];
|
||||
static const G4double pb_p_t[30];
|
||||
static const G4double pb_p_in[30];
|
||||
static const G4double u_m_t[35];
|
||||
static const G4double u_m_in[35];
|
||||
static const G4double u_p_t[30];
|
||||
static const G4double u_p_in[30];
|
||||
static const G4double e4[32];
|
||||
static const G4double fe_m_t[32];
|
||||
static const G4double fe_m_in[32];
|
||||
static const G4double fe_p_t[25];
|
||||
static const G4double fe_p_in[25];
|
||||
static const G4double cu_m_t[32];
|
||||
static const G4double cu_m_in[32];
|
||||
static const G4double cu_p_t[25];
|
||||
static const G4double cu_p_in[25];
|
||||
static const G4double e5[34];
|
||||
static const G4double mo_m_t[34];
|
||||
static const G4double mo_m_in[34];
|
||||
static const G4double mo_p_t[27];
|
||||
static const G4double mo_p_in[27];
|
||||
static const G4double cd_m_t[34];
|
||||
static const G4double cd_m_in[34];
|
||||
static const G4double cd_p_t[28];
|
||||
static const G4double cd_p_in[28];
|
||||
static const G4double e6[35];
|
||||
static const G4double sn_m_t[35];
|
||||
static const G4double sn_m_in[35];
|
||||
static const G4double sn_p_t[29];
|
||||
static const G4double sn_p_in[29];
|
||||
static const G4double w_m_t[35];
|
||||
static const G4double w_m_in[35];
|
||||
static const G4double w_p_t[30];
|
||||
static const G4double w_p_in[30];
|
||||
static const G4double e7[35];
|
||||
static const G4double pb_m_t[35];
|
||||
static const G4double pb_m_in[35];
|
||||
static const G4double pb_p_t[30];
|
||||
static const G4double pb_p_in[30];
|
||||
static const G4double u_m_t[35];
|
||||
static const G4double u_m_in[35];
|
||||
static const G4double u_p_t[30];
|
||||
static const G4double u_p_in[30];
|
||||
|
||||
std::vector<G4int> theZ;
|
||||
std::vector<G4PiData *> thePipData;
|
||||
std::vector<G4PiData *> thePimData;
|
||||
std::vector<G4int> theZ;
|
||||
std::vector<G4PiData *> thePipData;
|
||||
std::vector<G4PiData *> thePimData;
|
||||
|
||||
// cross sections
|
||||
|
||||
G4double fTotalXsc;
|
||||
G4double fElasticXsc;
|
||||
// cross sections
|
||||
|
||||
G4double fTotalXsc;
|
||||
G4double fElasticXsc;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user