98 if (factors)
delete factors;
106 theParticle = &aParticleType;
112 if(theParticle == thePiPlus || theParticle == thePiMinus ||
113 theParticle == theKPlus || theParticle == theKMinus ||
114 theParticle == theK0S || theParticle == theK0L) {
116 G4double F[
n] = {0.33,0.27,0.29,0.31,0.27,0.18,0.13,0.1,0.09,0.07};
118 for(
size_t i=0; i<
n; i++) {factors->
PutValue(i,F[i]);}
122 G4double F[
n] = {0.50,0.45,0.40,0.35,0.30,0.25,0.06,0.04,0.005,0.0};
124 for(
size_t i=0; i<
n; i++) {factors->
PutValue(i,F[i]);}
129 G4cout <<
"G4ChargeExchangeProcess for "
150 G4cout <<
"G4ChargeExchangeProcess compute GHAD CS for element "
165 if(theParticle == thePiPlus || theParticle == theProton ||
166 theParticle == theKPlus || theParticle == theANeutron)
167 { x *= (1.0 - Z/
A); }
169 else if(theParticle == thePiMinus || theParticle == theNeutron ||
170 theParticle == theKMinus || theParticle == theAProton)
174 if(ptot > 2.*
GeV) x *= 4.0*
GeV*
GeV/(ptot*ptot);
187 return (p == thePiPlus || p == thePiMinus ||
188 p == theProton || p == theNeutron ||
189 p == theAProton|| p == theANeutron||
190 p == theKPlus || p == theKMinus ||
191 p == theK0S || p == theK0L ||
static G4Pow * GetInstance()
virtual G4bool IsApplicable(const G4ParticleDefinition &aParticleType)
G4double powA(G4double A, G4double y) const
G4double GetValue(G4double theEnergy, G4bool &isOutRange) const
static G4AntiOmegaMinus * AntiOmegaMinus()
G4double GetKineticEnergy() const
static G4OmegaMinus * OmegaMinus()
static G4KaonZeroLong * KaonZeroLong()
G4int GetPDGEncoding() const
static G4AntiSigmaPlus * AntiSigmaPlus()
const G4String & GetParticleName() const
static G4SigmaZero * SigmaZero()
static G4KaonMinus * KaonMinus()
G4double GetTotalMomentum() const
static G4AntiSigmaMinus * AntiSigmaMinus()
G4ChargeExchangeProcess(const G4String &procName="chargeExchange")
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
static G4XiZero * XiZero()
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
double A(double temperature)
virtual G4double GetElementCrossSection(const G4DynamicParticle *aParticle, const G4Element *anElement, const G4Material *mat=0)
static G4KaonZeroShort * KaonZeroShort()
static G4AntiProton * AntiProton()
static G4XiMinus * XiMinus()
G4CrossSectionDataStore * GetCrossSectionDataStore()
void PutValue(size_t index, G4double theValue)
static G4AntiXiMinus * AntiXiMinus()
static G4Triton * Triton()
G4double GetCrossSection(const G4DynamicParticle *, const G4Material *)
static G4Proton * Proton()
static G4PionPlus * PionPlus()
static G4Neutron * Neutron()
static G4PionZero * PionZero()
static G4Deuteron * Deuteron()
static G4SigmaMinus * SigmaMinus()
void DumpPhysicsTable(const G4ParticleDefinition &)
G4double GetPDGMass() const
static G4AntiLambda * AntiLambda()
static G4PionMinus * PionMinus()
static G4AntiSigmaZero * AntiSigmaZero()
static constexpr double GeV
static G4AntiXiZero * AntiXiZero()
static constexpr double MeV
virtual ~G4ChargeExchangeProcess()
static G4SigmaPlus * SigmaPlus()
static G4Lambda * Lambda()
const G4String & GetName() const
static G4KaonPlus * KaonPlus()
virtual void BuildPhysicsTable(const G4ParticleDefinition &aParticleType)
static G4AntiNeutron * AntiNeutron()
static constexpr double millibarn
virtual void DumpPhysicsTable(const G4ParticleDefinition &aParticleType)