ParticleListHelper(const std::string &listname, bool save=true)
Construct and initialize right away.
bool isSelfConjugated() const
Return whether or not this list is self conjugated.
StoreObjPtr< ParticleList > m_list
Store object for the list.
Particle & addParticle(const TLorentzVector &momentum, bool conjugated=false)
Non-templated convenience function to add a particle from simple four momentum and an indicator wheth...
Particle & add(Args &&... args)
Add a particle to the list by forwarding all arguments to the constructor of the Particle object: Any...
StoreArray< Particle > m_particles
Store array for the particles.
std::optional< StoreObjPtr< ParticleList > > m_antiList
Optional store object for the conjugated list if that exists.
Class to help managing creation and adding to ParticleLists.
Class to store reconstructed particles.
Particle & addParticle(const Particle &particle)
Non-templated convenience function to add a particle from an existing particle object.
ParticleListHelper()=default
Default constructor, does nothing.
int getPDGCode() const
Return the pdg code of the main list.