#include <SequentialCombinationGenerator.h>
Public Types | |
typedef std::vector< T > | Collection |
typedef std::vector< Collection > | Combination |
typedef SequentialPartitionGenerator::Partition | Partition |
typedef std::vector< int > | Vecint |
Public Member Functions | |
Combination | next_combination (Collection &coll) |
SequentialCombinationGenerator (Partition &part) | |
Private Member Functions | |
Vecint | next_combi (Vecint &cold, int n, const Partition &p) |
Vecint | next_subset (const Vecint &_g, const Vecint &_c) |
void | vecprint (const Vecint &v) const |
Private Attributes | |
bool | dbg |
Vecint | the_comb |
int | the_k |
int | the_n |
Partition | the_part |
Class to compute all distinct Combinations of a collection 'data' of objects of type 'T'. A Combination is a set of collections, each collection containing one or more objects, with any object in 'data' assigned to exactly one collection.
Definition at line 21 of file SequentialCombinationGenerator.h.
typedef std::vector<T> SequentialCombinationGenerator< T >::Collection |
Definition at line 24 of file SequentialCombinationGenerator.h.
typedef std::vector<Collection> SequentialCombinationGenerator< T >::Combination |
Definition at line 25 of file SequentialCombinationGenerator.h.
typedef SequentialPartitionGenerator::Partition SequentialCombinationGenerator< T >::Partition |
Definition at line 23 of file SequentialCombinationGenerator.h.
typedef std::vector<int> SequentialCombinationGenerator< T >::Vecint |
Definition at line 26 of file SequentialCombinationGenerator.h.
|
inline |
Definition at line 28 of file SequentialCombinationGenerator.h.
References jetUpdater_cfi::sort, SequentialCombinationGenerator< T >::the_comb, SequentialCombinationGenerator< T >::the_n, and SequentialCombinationGenerator< T >::the_part.
|
inlineprivate |
Definition at line 64 of file SequentialCombinationGenerator.h.
References EnergyCorrector::c, popcon2dropbox::copy(), relativeConstraints::empty, mps_fire::i, gen::k, gen::n, SequentialCombinationGenerator< T >::next_subset(), p1, alignCSCRings::s, and jetUpdater_cfi::sort.
Referenced by SequentialCombinationGenerator< T >::next_combination().
|
inline |
Create combinations obtained by dividing 'coll' according to partition the_part defined by the constructor.
Definition at line 39 of file SequentialCombinationGenerator.h.
References SequentialCombinationGenerator< T >::dbg, relativeConstraints::empty, mps_fire::i, checklumidiff::l, SequentialCombinationGenerator< T >::next_combi(), groupFilesInBlocks::temp, SequentialCombinationGenerator< T >::the_comb, SequentialCombinationGenerator< T >::the_k, SequentialCombinationGenerator< T >::the_n, and SequentialCombinationGenerator< T >::the_part.
|
inlineprivate |
Definition at line 118 of file SequentialCombinationGenerator.h.
References EnergyCorrector::c, popcon2dropbox::copy(), relativeConstraints::empty, spr::find(), g, diffTwoXMLs::g2, mps_fire::i, gen::k, and gen::n.
Referenced by SequentialCombinationGenerator< T >::next_combi().
|
inlineprivate |
Definition at line 148 of file SequentialCombinationGenerator.h.
References gather_cfg::cout, mps_fire::i, and gen::n.
|
mutableprivate |
Definition at line 160 of file SequentialCombinationGenerator.h.
Referenced by SequentialCombinationGenerator< T >::next_combination().
|
mutableprivate |
Definition at line 159 of file SequentialCombinationGenerator.h.
Referenced by SequentialCombinationGenerator< T >::next_combination(), and SequentialCombinationGenerator< T >::SequentialCombinationGenerator().
|
private |
Definition at line 157 of file SequentialCombinationGenerator.h.
Referenced by SequentialCombinationGenerator< T >::next_combination().
|
private |
Definition at line 153 of file SequentialCombinationGenerator.h.
Referenced by SequentialCombinationGenerator< T >::next_combination(), and SequentialCombinationGenerator< T >::SequentialCombinationGenerator().
|
private |
Definition at line 158 of file SequentialCombinationGenerator.h.
Referenced by SequentialCombinationGenerator< T >::next_combination(), and SequentialCombinationGenerator< T >::SequentialCombinationGenerator().