42 B2ERROR(
"ParticleList " << iList <<
" not found");
45 if (particlelist->getListSize() == 0)
continue;
46 for (
unsigned int i = 0; i < particlelist->getListSize(); ++i) {
47 Particle* iParticle = particlelist->getParticle(i);
48 if (iParticle->
getParticleSource() != Particle::EParticleSourceObject::c_Composite)
49 B2FATAL(
"This V0 particle is not a composite particle!");
51 std::vector<Particle*> dau = iParticle -> getDaughters();
53 B2FATAL(
"This V0 particle has " << dau.size() <<
" daughters, the number of daughters has to be 2.");
56 bool correctOrder =
true;
57 if (dau[0]->getCharge() < 0 && dau[1]->getCharge() > 0) correctOrder =
false;
Class to store reconstructed particles.
EParticleSourceObject getParticleSource() const
Returns particle source as defined with enum EParticleSourceObject.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.