#include <NucVisitor.h>
Inheritance diagram for GenDecay::NucVisitor:
Public Member Functions | |
NucVisitor (double min_br=0.0) | |
virtual | ~NucVisitor () |
void | descend (NucState *state) |
virtual bool | visit (NucState *, NucState *, NucDecay *) |
Subclass overrides. | |
Private Attributes | |
double | m_minBranchFraction |
std::map< NucState *, int > | m_countMap |
Definition at line 27 of file NucVisitor.h.
NucVisitor::NucVisitor | ( | double | min_br = 0.0 |
) |
NucVisitor::~NucVisitor | ( | ) | [virtual] |
void NucVisitor::descend | ( | NucState * | state | ) |
Definition at line 16 of file NucVisitor.cc.
00017 { 00018 if (m_countMap[state]) return; 00019 m_countMap[state] += 1; 00020 00021 vector<NucDecay*> &decays = state->decays(); 00022 for (size_t ind=0; ind < decays.size(); ++ind) { 00023 00024 if (decays[ind]->fraction < m_minBranchFraction) continue; 00025 00026 NucDecay* decay = decays[ind]; 00027 NucState* daughter = decay->daughter; 00028 if (this->visit(state,daughter,decay)) { 00029 descend(daughter); 00030 } 00031 } 00032 }
Subclass overrides.
Reimplemented in GenDecay::DecayRates.
Definition at line 39 of file NucVisitor.h.
double GenDecay::NucVisitor::m_minBranchFraction [private] |
Definition at line 29 of file NucVisitor.h.
std::map<NucState*,int> GenDecay::NucVisitor::m_countMap [private] |
Definition at line 30 of file NucVisitor.h.