68 parent_name(0), daughters_name(0),
70 parent_polarization(),
86 :kinematics_name(aName),
89 parent_name(0), daughters_name(0),
91 parent_polarization(),
109 G4int theNumberOfDaughters,
114 :kinematics_name(aName),
116 numberOfDaughters(theNumberOfDaughters),
117 parent_name(0), daughters_name(0),
119 parent_polarization(),
188 if (
this != &right) {
247 G4cout <<
"G4VDecayChannel::ClearDaughtersName "
289 G4cout <<
"G4VDecayChannel::SetDaughter: "
290 <<
"Number of daughters is not defined" <<
G4endl;
309 G4cout <<
"G4VDecayChannel::SetDaughter"
310 <<
"index out of range " << anIndex <<
G4endl;
322 G4cout <<
"G4VDecayChannel::SetDaughter[" << anIndex <<
"] :";
352 G4double sumofdaughterwidthsq = 0.0;
357 G4cout <<
"G4VDecayChannel::FillDaughters "
359 <<
"numberOfDaughters is not defined yet";
365 "Can not fill daughters: numberOfDaughters is not defined yet");
380 G4cout <<
"G4VDecayChannel::FillDaughters "
382 << index <<
"-th daughter is not defined yet" <<
G4endl;
388 "Can not fill daughters: name of a daughter is not defined yet");
396 G4cout <<
"G4VDecayChannel::FillDaughters "
399 <<
" is not defined !!" <<
G4endl;
400 G4cout <<
" The BR of this decay mode is set to zero " <<
G4endl;
416 sumofdaughterwidthsq += d_width*d_width;
422 (sumofdaughtermass > parentmass +
rangeMass*widthMass) ){
426 G4cout <<
"G4VDecayChannel::FillDaughters "
428 <<
" Energy/Momentum conserevation breaks " <<
G4endl;
431 <<
" mass:" << parentmass/
GeV <<
"[GeV/c/c]" <<
G4endl;
450 G4cout <<
"G4VDecayChannel::FillParent "
451 <<
": parent name is not defined !!" <<
G4endl;
457 "Can not fill parent: parent name is not defined yet");
466 G4cout <<
"G4VDecayChannel::FillParent "
472 "Can not fill parent: parent does not exist");
497 const G4int MiniSpin = std::abs (D1iSpin - D2iSpin);
498 const G4int MaxiSpin = D1iSpin + D2iSpin;
499 const G4int lMax = (PiSpin+D1iSpin+D2iSpin)/2;
503 G4cout <<
"iSpin: " << PiSpin <<
" -> " << D1iSpin <<
" + " << D2iSpin <<
G4endl;
504 G4cout <<
"2*jmin, 2*jmax, lmax " << MiniSpin <<
" " << MaxiSpin <<
" " << lMax <<
G4endl;
507 for (
G4int j=MiniSpin; j<=MaxiSpin; j+=2){
508 lMin = std::abs(PiSpin-j)/2;
513 for (
G4int l=lMin; l<=lMax; l++) {
519 if (PParity == D1Parity*D2Parity) {
523 if (PParity == -1*D1Parity*D2Parity) {
532 "Sorry, can't handle 3 particle decays (up to now)");
535 G4Exception (
"G4VDecayChannel::GetAngularMomentum",
537 "Can't find angular momentum for this decay");
549 G4cout <<
" not defined ";
564 if (maxDev <=-1.*
rangeMass)
return massPDG;
568 const size_t MAX_LOOP=10000;
569 for (
size_t loop_counter=0; loop_counter <MAX_LOOP; ++loop_counter){
570 if ( y * (width*width*x*x + massPDG*massPDG*width*width) <= massPDG*massPDG*width*width )
break;
585 sumOfDaughterMassMin +=
588 return (parentMass > sumOfDaughterMassMin);
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
virtual G4bool IsOKWithParentMass(G4double parentMass)
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 &)
G4ThreeVector parent_polarization
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
const G4double x[NPOINTSGL]
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