55 while (!m_daughters.empty()) {
56 delete m_daughters.back();
57 m_daughters.pop_back();
84 while (!m_daughters.empty()) {
85 m_daughters.back().clear();
86 m_daughters.pop_back();
93 m_daughters.push_back(t);
This is a helper class for the MCDecayFinderModule.
T * m_myObject
The decaying object, e.g.
std::vector< DecayTree< T > * > m_daughters
Decay daughters of m_myObject.
T * getObj()
Return the decaying object itself, e.g.
DecayTree()
Default constructor.
std::vector< DecayTree< T > * > getDaughters()
Return list of decay daughters.
void clear()
Frees memory occupied by m_myObject and the daughter objects.
void setObj(T *obj)
Set the decaying object, e.g.
void append(DecayTree< T > *t)
Add a daughter, which is a DecayTree itself.
Abstract base class for different kinds of events.