50 while (!m_daughters.empty()) {
51 delete m_daughters.back();
52 m_daughters.pop_back();
81 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.
DecayTree()
Default constructor.
void setObj(T *obj)
Set the decaying object, e.g.
void append(DecayTree< T > *t)
Add a daughter, which is a DecayTree itself.
T * getObj() const
Return the decaying object itself, e.g.
std::vector< DecayTree< T > * > getDaughters() const
Return list of decay daughters.
Abstract base class for different kinds of events.