Belle II Software  release-08-01-10
ListIndexGenerator Class Reference

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>

Collaboration diagram for ListIndexGenerator:

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::EParticleTypem_types
 The current types of sublist of the ParticleLists for this combination.
 

Detailed Description

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.


The documentation for this class was generated from the following files: