Belle II Software development
|
Helper class to make a vector of all possible combinations of int
numbers contained in the input vectors (passed as values in a map).
More...
#include <InclusiveBtagReconstructionModule.h>
Public Member Functions | |
void | convert (std::map< int, std::vector< int > > &input, std::vector< std::vector< int > > &output) |
Do the conversion using makeEntries(). | |
Protected Member Functions | |
void | makeEntries (std::map< int, std::vector< int > >::iterator positionOnTheMap, const std::map< int, std::vector< int > >::const_iterator &end, unsigned i, std::vector< std::vector< int > > &output) |
Recursively iterates over a map until the end is reached, then the output is ready. | |
Private Attributes | |
std::vector< int > | m_combination |
Vector containing current combination of numbers (e.g. | |
Helper class to make a vector of all possible combinations of int
numbers contained in the input vectors (passed as values in a map).
In every resulting combination, there is only one number from each input vector.
It is used by InclusiveBtagReconstructionModule to combine Particle indices (in StoreArray) for different mdst sources (getMdstSource) to form std::vector of all combinations not sharing common mdst source.
Definition at line 75 of file InclusiveBtagReconstructionModule.h.
void convert | ( | std::map< int, std::vector< int > > & | input, |
std::vector< std::vector< int > > & | output | ||
) |
Do the conversion using makeEntries().
(e.g convert map<mdstSource, vector<arrayIndex>> to vector<vector<daughterArrayIndex>>)
input | - the input map |
output | - an empty vector to push back output combinations |
Definition at line 163 of file InclusiveBtagReconstructionModule.cc.
|
protected |
Recursively iterates over a map until the end is reached, then the output is ready.
positionOnTheMap | - current position on the input map |
end | - the end of the input map |
i | - current m_combination index |
output | - a vector to push back resulting combinations |
Definition at line 168 of file InclusiveBtagReconstructionModule.cc.
|
private |
Vector containing current combination of numbers (e.g.
arrayIndices of current Btag candidate's children)
Definition at line 102 of file InclusiveBtagReconstructionModule.h.