53 if (theParentName ==
"neutron")
62 else if (theParentName ==
"anti_neutron")
76 G4cout <<
"G4NeutronBetaDecayChannel:: constructor :";
77 G4cout <<
" parent particle is not neutron but ";
144 for (
G4int index=0; index<3; ++index)
147 sumofdaughtermass += daughtermass[index];
149 G4double xmax = parentmass-sumofdaughtermass;
158 delete parentparticle;
170 const std::size_t MAX_LOOP=10000;
171 for (std::size_t loop_counter=0; loop_counter<MAX_LOOP; ++loop_counter)
174 p = std::sqrt(x*(x+2.0*dm));
176 r = p*(x+dm)*(xmax-x)*(xmax-x)*(1.0+
aENuCorr*p/(x+dm)*w);
185 G4double theta = std::acos(costheta)*rad;
192 daughtermomentum[0] = p;
194 direction0 = rm * direction0;
201 eNu = (parentmass-daughtermass[2])
202 * (parentmass+daughtermass[2])+(dm*dm)-2.*parentmass*(x+dm);
203 eNu /= 2.*(parentmass+p*w-(x+dm));
206 G4double sinn = std::sqrt((1.0-cosn)*(1.0+cosn));
208 G4ThreeVector direction1(sinn*std::cos(phin), sinn*std::sin(phin), cosn);
209 direction1 = rm * direction1;
216 eP = parentmass-eNu-(x+dm)-daughtermass[2];
219 G4double pP = std::sqrt(eP*(eP+2.*daughtermass[2]));
221 pPx/pP*std::sin(phin), pPz/pP);
222 direction2 = rm * direction2;
231 G4cout <<
"G4NeutronBetaDecayChannel::DecayIt ";
232 G4cout <<
" create decay products in rest frame " <<
G4endl;
G4GLOB_DLL std::ostream G4cout
HepRotation & rotateZ(double delta)
HepRotation & rotateY(double delta)
G4int PushProducts(G4DynamicParticle *aParticle)
G4NeutronBetaDecayChannel()
G4NeutronBetaDecayChannel & operator=(const G4NeutronBetaDecayChannel &)
virtual ~G4NeutronBetaDecayChannel()
virtual G4DecayProducts * DecayIt(G4double)
G4double GetPDGMass() const
G4ParticleDefinition ** G4MT_daughters
void CheckAndFillParent()
void SetBR(G4double value)
G4String ** daughters_name
G4int GetVerboseLevel() const
void SetNumberOfDaughters(G4int value)
G4ParticleDefinition * G4MT_parent
void CheckAndFillDaughters()
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
void ClearDaughtersName()
void SetParent(const G4ParticleDefinition *particle_type)