![]() |
ATLAS Offline Software
|
combination More...
#include <AnalysisCombination.h>
Public Member Functions | |
| Combination (COLL *coll, const unsigned int nElement) | |
| constructor | |
| ~Combination () | |
| destructor | |
| void | reset () |
| reset internal indices | |
| template<class OUT> | |
| bool | get (OUT &comb) |
| get a combination. | |
| template<class CALLER, class OUT, class CRITERIA> | |
| bool | goodOnes (CALLER *caller, OUT &comb, CRITERIA criteria) |
| get a combination which passes a selection criteria | |
| template<class OUT> | |
| bool | get (OUT &comb, OUT &remain) |
| get a combination and the remaining elements | |
| template<class CALLER, class OUT, class CRITERIA> | |
| bool | goodOnes (CALLER *caller, OUT &comb, OUT &remain, CRITERIA criteria) |
| get a combination and the remaining elements. | |
Private Member Functions | |
| bool | setNewIndex (int iElement) |
| set new index recursively | |
Private Attributes | |
| COLL * | m_coll |
| collection | |
| const unsigned int | m_nElement |
| number of elements to be selected | |
| std::vector< unsigned int > | m_index |
| indices of elements | |
| bool | m_first |
| flag to check if first | |
combination
Definition at line 20 of file AnalysisCombination.h.
|
inline |
constructor
| coll | [in] collection |
| nElement | [in] number of element to be selected |
Definition at line 153 of file AnalysisCombination.h.
|
inline |
|
inline |
get a combination.
internal indices are incremented
| comb | [out] combination of elements |
Definition at line 43 of file AnalysisCombination.h.
|
inline |
get a combination and the remaining elements
Definition at line 85 of file AnalysisCombination.h.
|
inline |
get a combination which passes a selection criteria
| caller | |
| comb | [out] combination of elements |
| criteria | [in] a function pointer of selection criteria |
Definition at line 70 of file AnalysisCombination.h.
|
inline |
get a combination and the remaining elements.
the combination passes a selection criteria
Definition at line 119 of file AnalysisCombination.h.
|
inline |
reset internal indices
Definition at line 162 of file AnalysisCombination.h.
|
inlineprivate |
set new index recursively
Definition at line 174 of file AnalysisCombination.h.
|
private |
collection
Definition at line 134 of file AnalysisCombination.h.
|
private |
flag to check if first
Definition at line 143 of file AnalysisCombination.h.
|
private |
indices of elements
Definition at line 140 of file AnalysisCombination.h.
|
private |
number of elements to be selected
Definition at line 137 of file AnalysisCombination.h.