102 theParticle = &aParticleType;
108 if(theParticle == thePiPlus || theParticle == thePiMinus ||
109 theParticle == theKPlus || theParticle == theKMinus ||
110 theParticle == theK0S || theParticle == theK0L) {
112 G4double F[n] = {0.33,0.27,0.29,0.31,0.27,0.18,0.13,0.1,0.09,0.07};
114 for(
size_t i=0; i<n; i++) {factors->
PutValue(i,F[i]);}
118 G4double F[n] = {0.50,0.45,0.40,0.35,0.30,0.25,0.06,0.04,0.005,0.0};
120 for(
size_t i=0; i<n; i++) {factors->
PutValue(i,F[i]);}
125 G4cout <<
"G4ChargeExchangeProcess for "
146 G4cout <<
"G4ChargeExchangeProcess compute GHAD CS for element "
152 G4cout <<
"G4ChargeExchangeProcess cross(mb)= " << x/millibarn
160 x *= factors->
GetValue(ptot, b)/std::pow(A, 0.42);
161 if(theParticle == thePiPlus || theParticle == theProton ||
162 theParticle == theKPlus || theParticle == theANeutron)
163 { x *= (1.0 - Z/A); }
165 else if(theParticle == thePiMinus || theParticle == theNeutron ||
166 theParticle == theKMinus || theParticle == theAProton)
170 if(ptot > 2.*GeV) x *= 4.0*GeV*GeV/(ptot*ptot);
174 G4cout <<
"Corrected cross(mb)= " << x/millibarn <<
G4endl;
183 return (p == thePiPlus || p == thePiMinus ||
184 p == theProton || p == theNeutron ||
185 p == theAProton|| p == theANeutron||
186 p == theKPlus || p == theKMinus ||
187 p == theK0S || p == theK0L ||
G4DLLIMPORT std::ostream G4cout
static G4AntiLambda * AntiLambda()
static G4AntiNeutron * AntiNeutron()
static G4AntiOmegaMinus * AntiOmegaMinus()
static G4AntiProton * AntiProton()
static G4AntiSigmaMinus * AntiSigmaMinus()
static G4AntiSigmaPlus * AntiSigmaPlus()
static G4AntiSigmaZero * AntiSigmaZero()
static G4AntiXiMinus * AntiXiMinus()
static G4AntiXiZero * AntiXiZero()
virtual G4double GetElementCrossSection(const G4DynamicParticle *aParticle, const G4Element *anElement, const G4Material *mat=0)
virtual void DumpPhysicsTable(const G4ParticleDefinition &aParticleType)
virtual G4bool IsApplicable(const G4ParticleDefinition &aParticleType)
virtual void BuildPhysicsTable(const G4ParticleDefinition &aParticleType)
virtual ~G4ChargeExchangeProcess()
G4ChargeExchangeProcess(const G4String &procName="chargeExchange")
void DumpPhysicsTable(const G4ParticleDefinition &)
G4double GetCrossSection(const G4DynamicParticle *, const G4Material *)
static G4Deuteron * Deuteron()
G4double GetKineticEnergy() const
G4double GetTotalMomentum() const
const G4String & GetName() const
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
G4CrossSectionDataStore * GetCrossSectionDataStore()
static G4KaonMinus * KaonMinus()
static G4KaonPlus * KaonPlus()
static G4KaonZeroLong * KaonZeroLong()
static G4KaonZeroShort * KaonZeroShort()
static G4Lambda * Lambda()
static G4Neutron * Neutron()
static G4OmegaMinus * OmegaMinus()
G4double GetPDGMass() const
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4double GetValue(G4double theEnergy, G4bool &isOutRange)
void PutValue(size_t index, G4double theValue)
static G4PionMinus * PionMinus()
static G4PionPlus * PionPlus()
static G4PionZero * PionZero()
static G4Proton * Proton()
static G4SigmaMinus * SigmaMinus()
static G4SigmaPlus * SigmaPlus()
static G4SigmaZero * SigmaZero()
static G4Triton * Triton()
static G4XiMinus * XiMinus()
static G4XiZero * XiZero()