Belle II Software light-2406-ragdoll
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.
 
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::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.

Constructor & Destructor Documentation

◆ ListIndexGenerator()

ListIndexGenerator ( )
inline

Default constructor.

Definition at line 96 of file ParticleCombiner.h.

unsigned int m_iCombination
The current position of the combination.
unsigned int m_numberOfLists
Number of lists which are combined.
unsigned int m_nCombinations
The total amount of combinations.

Member Data Documentation

◆ m_iCombination

unsigned int m_iCombination
private

The current position of the combination.

Definition at line 117 of file ParticleCombiner.h.

◆ m_nCombinations

unsigned int m_nCombinations
private

The total amount of combinations.

Definition at line 118 of file ParticleCombiner.h.

◆ m_numberOfLists

unsigned int m_numberOfLists
private

Number of lists which are combined.

Definition at line 116 of file ParticleCombiner.h.

◆ m_types

std::vector<ParticleList::EParticleType> m_types
private

The current types of sublist of the ParticleLists for this combination.

Definition at line 119 of file ParticleCombiner.h.


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