54 B2ERROR(
"ParticleList " <<
m_listName <<
" not found");
58 B2ERROR(
"decay descriptor cannot be empty");
62 unsigned int n = plist->getListSize();
63 for (
unsigned i = 0; i < n; i++) {
64 Particle* particle = plist->getParticle(i);
66 std::vector<Particle*> daughters = particle->
getDaughters();
67 std::vector<const Particle*> selParticles =
m_decaydescriptor.getSelectionParticles(particle);
69 for (
auto& daughter : daughters) {
71 for (
auto& selParticle : selParticles) {
72 if (daughter == selParticle) isSel =
true;
Class to store reconstructed particles.
std::vector< Belle2::Particle * > getDaughters() const
Returns a vector of pointers to daughter particles.
void removeDaughter(const Particle *daughter, const bool updateType=true)
Removes index of daughter from daughters index array.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.