62 G4cout <<
" G4DecayTable::Insert :: bad G4VDecayChannel (mismatch parent) "
72 if (br > (*iCh)->GetBR())
85 if (
channels->size()<1)
return nullptr;
92 if ( !((*iCh)->IsOKWithParentMass(parentMass)) )
continue;
93 sumBR += (*iCh)->GetBR();
98 G4cout <<
" G4DecayTable::SelectADecayChannel :: no possible DecayChannel"
104 const std::size_t MAX_LOOP = 10000;
105 for (std::size_t loop_counter=0; loop_counter<MAX_LOOP; ++loop_counter)
112 sum += (*iCh)->GetBR();
113 if ( !((*iCh)->IsOKWithParentMass(parentMass)) )
continue;
114 if (br < sum)
return (*iCh);
G4GLOB_DLL std::ostream G4cout
void Insert(G4VDecayChannel *aChannel)
G4VDecayChannelVector * channels
G4VDecayChannel * SelectADecayChannel(G4double parentMass=-1.)
G4ParticleDefinition * parent
std::vector< G4VDecayChannel * > G4VDecayChannelVector
G4double GetPDGMass() const
const G4String & GetParticleName() const
G4ParticleDefinition * GetParent()