![]() |
Belle II Software
light-2303-iriomote
|
ListIndexGenerator is a generator for all the combinations of the sublists (FlavorSpecificParticle = 0, SelfConjugatedParticle = 1) of a set of particle lists. More...
#include <ParticleCombiner.h>

Public Member Functions | |
| ListIndexGenerator () | |
| Default constructor. | |
| void | init (unsigned int _numberOfLists) |
| Initialises the generator to produce the given type of sublist. More... | |
| bool | loadNext () |
| Loads the next combination. More... | |
| const std::vector< ParticleList::EParticleType > & | getCurrentIndices () const |
| Returns the type of the sublist of the current loaded combination. | |
Private Attributes | |
| unsigned int | m_numberOfLists |
| Number of lists which are combined. | |
| unsigned int | m_iCombination |
| The current position of the combination. | |
| unsigned int | m_nCombinations |
| The total amount of combinations. | |
| std::vector< ParticleList::EParticleType > | m_types |
| The current types of sublist of the ParticleLists for this combination. | |
ListIndexGenerator is a generator for all the combinations of the sublists (FlavorSpecificParticle = 0, SelfConjugatedParticle = 1) of a set of particle lists.
Therefore it returns combinations like (for 2 Particle Lists): FlavorSpecificParticle,FlavorSpecificParticle, FlavorSpecificParticle, SelfConjugatedParticle SelfConjugatedParticle, FlavorSpecificParticle
Definition at line 91 of file ParticleCombiner.h.