68 parent_name(0), daughters_name(0),
85 :kinematics_name(aName),
88 parent_name(0), daughters_name(0),
107 G4int theNumberOfDaughters,
112 :kinematics_name(aName),
114 numberOfDaughters(theNumberOfDaughters),
115 parent_name(0), daughters_name(0),
182 if (
this != &right) {
241 G4cout <<
"G4VDecayChannel::ClearDaughtersName "
283 G4cout <<
"G4VDecayChannel::SetDaughter: "
284 <<
"Number of daughters is not defined" <<
G4endl;
303 G4cout <<
"G4VDecayChannel::SetDaughter"
304 <<
"index out of range " << anIndex <<
G4endl;
316 G4cout <<
"G4VDecayChannel::SetDaughter[" << anIndex <<
"] :";
346 G4double sumofdaughterwidthsq = 0.0;
351 G4cout <<
"G4VDecayChannel::FillDaughters "
353 <<
"numberOfDaughters is not defined yet";
359 "Can not fill daughters: numberOfDaughters is not defined yet");
374 G4cout <<
"G4VDecayChannel::FillDaughters "
376 << index <<
"-th daughter is not defined yet" <<
G4endl;
382 "Can not fill daughters: name of a daughter is not defined yet");
390 G4cout <<
"G4VDecayChannel::FillDaughters "
393 <<
" is not defined !!" <<
G4endl;
394 G4cout <<
" The BR of this decay mode is set to zero " <<
G4endl;
410 sumofdaughterwidthsq += d_width*d_width;
416 (sumofdaughtermass > parentmass +
rangeMass*widthMass) ){
420 G4cout <<
"G4VDecayChannel::FillDaughters "
422 <<
" Energy/Momentum conserevation breaks " <<
G4endl;
425 <<
" mass:" << parentmass/
GeV <<
"[GeV/c/c]" <<
G4endl;
444 G4cout <<
"G4VDecayChannel::FillParent "
445 <<
": parent name is not defined !!" <<
G4endl;
451 "Can not fill parent: parent name is not defined yet");
460 G4cout <<
"G4VDecayChannel::FillParent "
466 "Can not fill parent: parent does not exist");
491 const G4int MiniSpin = std::abs (D1iSpin - D2iSpin);
492 const G4int MaxiSpin = D1iSpin + D2iSpin;
493 const G4int lMax = (PiSpin+D1iSpin+D2iSpin)/2;
497 G4cout <<
"iSpin: " << PiSpin <<
" -> " << D1iSpin <<
" + " << D2iSpin <<
G4endl;
498 G4cout <<
"2*jmin, 2*jmax, lmax " << MiniSpin <<
" " << MaxiSpin <<
" " << lMax <<
G4endl;
501 for (
G4int j=MiniSpin; j<=MaxiSpin; j+=2){
502 lMin = std::abs(PiSpin-j)/2;
507 for (
G4int l=lMin; l<=lMax; l++) {
513 if (PParity == D1Parity*D2Parity) {
517 if (PParity == -1*D1Parity*D2Parity) {
526 "Sorry, can't handle 3 particle decays (up to now)");
529 G4Exception (
"G4VDecayChannel::GetAngularMomentum",
531 "Can't find angular momentum for this decay");
544 G4cout <<
" not defined ";
559 if (maxDev <-1.*
rangeMass)
return massPDG;
563 while ( y * (width*width*x*x + massPDG*massPDG*width*width) > massPDG*massPDG*width*width ){
const G4String & GetNoName() const
static const G4String noName
G4int GetPDGiSpin() const
void ClearDaughtersName()
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void SetBR(G4double value)
G4double * G4MT_daughters_mass
G4int GetPDGiParity() const
G4ParticleDefinition * G4MT_parent
G4ParticleDefinition ** G4MT_daughters
G4double G4MT_parent_mass
G4ParticleTable * particletable
const G4String & GetParticleName() const
G4int GetAngularMomentum()
G4double GetPDGWidth() const
G4GLOB_DLL std::ostream G4cout
void SetNumberOfDaughters(G4int value)
const G4String & GetParticleType() const
G4VDecayChannel & operator=(const G4VDecayChannel &)
virtual ~G4VDecayChannel()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4int GetVerboseLevel() const
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
G4double * G4MT_daughters_width
void SetParent(const G4ParticleDefinition *particle_type)
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
G4double DynamicalMass(G4double massPDG, G4double width, G4double maxDev=+1.) const
G4String ** daughters_name