HepCombiner is essentially the same as
HepChooser, except the results of
next() or operator() is one object.
The operator+= is used to combine the objects returned from
HepChooser
into one. Also, the child list of the combined object is built using
the method addChild().
The object returned (by pointer) by the method next() is
maintained by HepCombiner. Therefore, if you want to keep it
around for later use, you must remember to make a copy of it.
Author
Paul Rensing
See also
HepChooser,
HepLock,
HepLockable
Declaration
#include "CLHEP/Combination/Combiner.h"
template <class TYPE>
class HepCombiner : public HepChooser<TYPE>
Public Member Functions
- Constructor
- inline HepCombiner(
- HepAList<TYPE> *l1, HepAList<TYPE> *l2=0,
- HepAList<TYPE> *l3=0, HepAList<TYPE> *l4=0,
- HepAList<TYPE> *l5=0, HepAList<TYPE> *l6=0 )
- Constructor taking up to six pointers to lists.
- Constructor
- inline HepCombiner(HepAList< HepAList<TYPE> > &ll)
- Constructor from a list of lists.
- Destructor
- inline ~HepCombiner()
- ()
- inline TYPE * operator () ()
- Returns a pointer to an object or zero if all combinations are done.
- next
- inline TYPE * next()
- Returns a pointer to an object or zero if all combinations are done.
Example
CLHEP/test/testComb.cc
29 September 1997
EVC