64 if (theParentName ==
"neutron") {
71 }
else if (theParentName ==
"anti_neutron") {
81 G4cout <<
"G4NeutronBetaDecayChannel:: constructor :";
82 G4cout <<
" parent particle is not neutron but ";
102 if (
this != &right) {
146 for (
G4int index=0; index<3; index++){
148 sumofdaughtermass += daughtermass[index];
150 G4double xmax = parentmass-sumofdaughtermass;
158 delete parentparticle;
172 p = std::sqrt(x*(x+2.0*dm));
174 r = p*(x+dm)*(xmax-x)*(xmax-x)*(1.0+
aENuCorr*p/(x+dm)*w);
182 G4double theta = std::acos(costheta)*rad;
189 daughtermomentum[0] = p;
191 direction0 = rm * direction0;
198 eNu = (parentmass-daughtermass[2])*(parentmass+daughtermass[2])+(dm*dm)-2.*parentmass*(x+dm);
199 eNu /= 2.*(parentmass+p*w-(x+dm));
201 G4double sinn = std::sqrt((1.0-cosn)*(1.0+cosn));
204 direction1 = rm * direction1;
211 eP = parentmass-eNu-(x+dm)-daughtermass[2];
214 G4double pP = std::sqrt(eP*(eP+2.*daughtermass[2]));
224 G4cout <<
"G4NeutronBetaDecayChannel::DecayIt ";
225 G4cout <<
" create decay products in rest frame " <<
G4endl;
G4DLLIMPORT 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
void SetBR(G4double value)
G4String ** daughters_name
G4int GetVerboseLevel() const
void SetNumberOfDaughters(G4int value)
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
void ClearDaughtersName()
G4ParticleDefinition * parent
G4ParticleDefinition ** daughters
void SetParent(const G4ParticleDefinition *particle_type)