Belle II Software
release-08-01-10
|
ParticleIndexGenerator is a generator for all the combinations of the particle indices stored in the particle lists. More...
#include <ParticleCombiner.h>
Public Member Functions | |
ParticleIndexGenerator () | |
Default constructor. | |
void | init (const std::vector< unsigned int > &_sizes) |
Initialises the generator to produce combinations with the given sizes of each particle list. More... | |
bool | loadNext () |
Loads the next combination. More... | |
const std::vector< unsigned int > & | getCurrentIndices () const |
Returns theindices 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< unsigned int > | indices |
The indices of the current loaded combination. | |
std::vector< unsigned int > | sizes |
The sizes of the particle lists which are combined. | |
ParticleIndexGenerator is a generator for all the combinations of the particle indices stored in the particle lists.
It takes the total number of particles in each of the input lists e.g. 2,3 and returns all the possible combinations: 00, 01, 02, 10, 11, 12
Definition at line 49 of file ParticleCombiner.h.