80 if (channels->empty())
return nullptr;
82 if (parentMass < 0.) parentMass = parent->
GetPDGMass();
85 for (
const auto channel : *channels) {
86 if (!(channel->IsOKWithParentMass(parentMass)))
continue;
87 sumBR += channel->GetBR();
91 G4cout <<
" G4DecayTable::SelectADecayChannel :: no possible DecayChannel"
97 const std::size_t MAX_LOOP = 10000;
98 for (std::size_t loop_counter = 0; loop_counter < MAX_LOOP; ++loop_counter) {
102 for (
const auto channel : *channels) {
103 sum += channel->GetBR();
104 if (!(channel->IsOKWithParentMass(parentMass)))
continue;
105 if (br < sum)
return channel;
G4double GetPDGMass() const
const G4String & GetParticleName() const