Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -40,6 +40,7 @@ class G4PiNuclearCrossSection : public G4VCrossSectionDataSet
|
||||
|
||||
G4PiNuclearCrossSection();
|
||||
virtual ~G4PiNuclearCrossSection();
|
||||
|
||||
G4bool IsApplicable(const G4DynamicParticle* aParticle, const G4Element* anElement)
|
||||
{
|
||||
G4bool result = false;
|
||||
@@ -49,9 +50,34 @@ class G4PiNuclearCrossSection : public G4VCrossSectionDataSet
|
||||
if(aParticle->GetKineticEnergy() > 999.9*GeV) result=false;
|
||||
return result;
|
||||
}
|
||||
G4double GetCrossSection(const G4DynamicParticle* aParticle,
|
||||
const G4Element* anElement,
|
||||
G4double T=0.);
|
||||
|
||||
G4bool IsZAApplicable(const G4DynamicParticle* particle,
|
||||
G4double ZZ, G4double /*AA*/)
|
||||
{
|
||||
G4bool result = false;
|
||||
if(particle->GetDefinition() == G4PionMinus::PionMinus()) result=true;
|
||||
if(particle->GetDefinition() == G4PionPlus::PionPlus()) result=true;
|
||||
if(G4lrint(ZZ) == 1) result = false;
|
||||
if(particle->GetKineticEnergy() > 999.9*GeV) result=false;
|
||||
return result;
|
||||
}
|
||||
|
||||
G4double GetCrossSection(const G4DynamicParticle* particle,
|
||||
const G4Element* element,
|
||||
G4double temperature)
|
||||
{
|
||||
return GetIsoZACrossSection(particle, element->GetZ(),
|
||||
element->GetN(), temperature);
|
||||
}
|
||||
|
||||
G4double GetIsoZACrossSection(const G4DynamicParticle* aParticle,
|
||||
G4double ZZ, G4double AA,
|
||||
G4double /*aTemperature*/);
|
||||
|
||||
G4double GetTotalXsc() { return fTotalXsc; };
|
||||
G4double GetElasticXsc(){ return fElasticXsc; };
|
||||
|
||||
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&) {}
|
||||
void DumpPhysicsTable(const G4ParticleDefinition&) {}
|
||||
|
||||
@@ -136,6 +162,12 @@ std::vector<G4int> theZ;
|
||||
std::vector<G4PiData *> thePipData;
|
||||
std::vector<G4PiData *> thePimData;
|
||||
|
||||
// cross sections
|
||||
|
||||
G4double fTotalXsc;
|
||||
G4double fElasticXsc;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user