Belle II Software development
|
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. | |
bool | loadNext () |
Loads the next combination. | |
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.
|
inline |
Default constructor.
Definition at line 96 of file ParticleCombiner.h.
|
private |
The current position of the combination.
Definition at line 117 of file ParticleCombiner.h.
|
private |
The total amount of combinations.
Definition at line 118 of file ParticleCombiner.h.
|
private |
Number of lists which are combined.
Definition at line 116 of file ParticleCombiner.h.
|
private |
The current types of sublist of the ParticleLists for this combination.
Definition at line 119 of file ParticleCombiner.h.