43 #define MAX_SECONDARIES 100
141 G4cout <<
"G4AntiNeutronAnnihilationAtRestProcess::AtRestGetPhysicalInteractionLength ";
178 for (
G4int i1=0; i1 < numberOfElements; i1++ )
180 normalization += theAtomicNumberDensity[i1] ;
185 for (
G4int i2=0; i2 < numberOfElements; i2++ )
187 runningSum += theAtomicNumberDensity[i2];
189 if (random<=runningSum)
195 if (random>runningSum)
202 G4cout <<
"G4AntiNeutronAnnihilationAtRest::AtRestDoIt is invoked " <<
G4endl;
221 G4Track* aNewTrack =
new G4Track( aNewParticle, localtime*
s, position );
282 for (l = 1; l <=
ntot; ++l) {
323 ran1 = xav + ran1 * std::sqrt(xav);
337 for (i = 1; i <= fivex; ++i) {
344 rrr = std::exp(i * std::log(xav) -
357 p1 = xav * std::exp(-
G4double(xav));
398 for (i = 2; i <= j; ++i) {
415 for (i = 1; i <= 12; ++i) {
497 en = ek + (rmnve1 + rmnve2) /
G4float(2.);
498 r__1 = en * en - rmnve1 * rmnve2;
499 pcm = r__1 > 0 ? std::sqrt(r__1) : 0;
541 black = (targ *
G4float(1.25) +
553 for (i = 1; i <= nbl; ++i) {
562 ekin1 = -
G4double(ekin) * std::log(ran1) -
565 ekin1 = std::log(ran1) *
G4float(-.01);
570 ekin1 = tex - (ekin2 - ekin1);
598 for (i = 1; i <= nt; ++i) {
628 for (i = 1; i <= nbl; ++i) {
637 ekin1 = -
G4double(ekin) * std::log(ran1) -
640 ekin1 = std::log(ran1) *
G4float(-.01);
645 ekin1 = tex - (ekin2 - ekin1);
672 for (i = 3; i <= nt; ++i) {
710 cfa =
G4float(.13043478260869565);
711 cfa = cfa * std::log(ekin1) +
G4float(.35);
739 evapEnergy1 *= ran1 * gfa +
G4float(1.);
740 if (evapEnergy1 <
G4float(0.)) {
747 while ((ret_val = evapEnergy1 +
evapEnergy3) >= ek1) {
G4double condition(const G4ErrorSymMatrix &m)
void DeRegisterExtraProcess(G4VProcess *)
G4double GetMeanLifeTime(const G4Track &, G4ForceCondition *)
G4ParticleDefinition * pdefNeutron
void GenerateSecondaries()
G4GHEKinematicsVector * gkin
void SetParticleDef(G4ParticleDefinition *c)
void SetMomentum(const G4ThreeVector &momentum)
G4ParticleDefinition * pdefGamma
std::vector< G4Element * > G4ElementVector
G4AntiNeutronAnnihilationAtRest(const G4AntiNeutronAnnihilationAtRest &)
G4ParticleDefinition * pdefTriton
CLHEP::Hep3Vector G4ThreeVector
static G4HadronicProcessStore * Instance()
const G4DynamicParticle * GetDynamicParticle() const
~G4AntiNeutronAnnihilationAtRest()
G4ParticleDefinition * GetParticleDef()
G4ParticleDefinition * pdefPionZero
const G4String & GetName() const
const G4ThreeVector & GetPosition() const
void Poisso(G4float, G4int *)
void DumpInfo(G4int mode=0) const
G4GHEKinematicsVector * GetSecondaryKinematics()
G4double theNumberOfInteractionLengthLeft
G4ParticleDefinition * pdefAntiNeutron
void SetTouchableHandle(const G4TouchableHandle &apValue)
G4ParticleDefinition * pdefAlpha
void BuildPhysicsTable(const G4ParticleDefinition &)
virtual void ResetNumberOfInteractionLengthLeft()
#define G4HadronicDeprecate(name)
const G4ElementVector * GetElementVector() const
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void SetKineticEnergyAndUpdate(G4double ekin)
G4GHEKinematicsVector * pv
G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
void RegisterParticleForExtraProcess(G4VProcess *, const G4ParticleDefinition *)
G4GLOB_DLL std::ostream G4cout
void AntiNeutronAnnihilation(G4int *)
G4int GetNumberOfSecondaries()
G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
G4double currentInteractionLength
void SetProcessSubType(G4int)
G4ParticleDefinition * pdefDeuteron
G4double GetGlobalTime() const
const G4String & GetProcessName() const
const G4double * GetAtomicNumDensityVector() const
const G4TouchableHandle & GetTouchableHandle() const
G4Material * GetMaterial() const
void SetEnergyAndUpdate(G4double e)
G4ParticleDefinition * pdefPionPlus
void RegisterExtraProcess(G4VProcess *)
G4bool IsApplicable(const G4ParticleDefinition &)
void PreparePhysicsTable(const G4ParticleDefinition &)
virtual void Initialize(const G4Track &)
void SetEnergy(G4double e)
void SetMomentumAndUpdate(G4ParticleMomentum mom)
void SetNumberOfSecondaries(G4int totSecondaries)
G4GHEKinematicsVector result
G4ParticleDefinition * pdefProton
G4ParticleChange aParticleChange
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
void SetMass(G4double mas)
void AddSecondary(G4Track *aSecondary)
size_t GetNumberOfElements() const
G4GHEKinematicsVector * eve
void ProposeTrackStatus(G4TrackStatus status)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4ThreeVector G4ParticleMomentum
G4ParticleDefinition * pdefPionMinus
void PrintInfo(const G4ParticleDefinition *)