![]() |
Belle II Software
release-08-02-04
|
The CellularAutomaton class This class serves as a functor for the algorithm itself. More...
#include <CellularAutomaton.h>


Public Types | |
| using | BaseClass = TrackerAlgorithmBase< ContainerType, ValidatorType > |
| typedef for the baseClass to get rid of the template arguments | |
Public Member Functions | |
| CellularAutomaton () | |
| constructor | |
| int | apply (ContainerType &aNetworkContainer) override final |
| actual algorithm of Cellular Automaton, returns number of rounds needed to finish or -1 if CA was aborted More... | |
| unsigned int | findSeeds (ContainerType &aNetworkContainer, bool strictSeeding=false) override final |
| checks network given for seeds, returns number of seeds found (if strictSeeding is set to true, no subset of paths are stored, only unique ones). More... | |
| virtual ValidatorType & | getValidator () |
| getter More... | |
| virtual std::string | printStatistics () |
| returns current logging info of the algorithm (some stuff one wants to log about that algorithm | |
| virtual void | setValidator (ValidatorType &aValidator) |
| setter More... | |
Public Attributes | |
| unsigned int | stopInRound = BaseClass::m_validator.nMaxIterations + 2 |
| aborts CA after stopInRound iterations - mainly for debugging purposes: | |
Protected Attributes | |
| ValidatorType | m_validator |
| something which checks the quality of the test so far (will be applied by the apply-function | |
The CellularAutomaton class This class serves as a functor for the algorithm itself.
Definition at line 21 of file CellularAutomaton.h.
|
inlinefinaloverridevirtual |
actual algorithm of Cellular Automaton, returns number of rounds needed to finish or -1 if CA was aborted
REDESIGNCOMMENT CELLULARAUTOMATON: optimization tip:
CAstep:
Updatestep:
catch bad case
Reimplemented from TrackerAlgorithmBase< ContainerType, ValidatorType >.
Definition at line 36 of file CellularAutomaton.h.
|
inlinefinaloverridevirtual |
checks network given for seeds, returns number of seeds found (if strictSeeding is set to true, no subset of paths are stored, only unique ones).
WARNING: requires outerNodes to be set! (bidirectional network, not only directed to inner!).
Reimplemented from TrackerAlgorithmBase< ContainerType, ValidatorType >.
Definition at line 98 of file CellularAutomaton.h.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
setter
allows to set some condition for validating the algorithm
Definition at line 35 of file TrackerAlgorithmBase.h.