Belle II Software development
CACell Class Reference

The CACell class This Class stores all relevant information one wants to have stored in a cell for a Cellular automaton. More...

#include <CACell.h>

Public Member Functions

 CACell ()
 ************************* CONSTRUCTORS *************************
 
bool operator== (const CACell &b) const
 ************************* OPERATORS *************************
 
bool operator!= (const CACell &b) const
 overloaded '!='-operator
 
unsigned int getState () const
 ************************* PUBLIC MEMBER FUNCTIONS *************************
 
bool isSeed () const
 returns whether CACell is allowed to be a seed for TCs
 
bool isActivated () const
 returns activationState (CA-feature)
 
bool isUpgradeAllowed () const
 returns info whether stateIncrease is allowed or not (CA-feature)
 
void increaseState ()
 setters:
 
void setStateUpgrade (bool up)
 sets flag whether CACell is allowed to increase state during update step within CA
 
void setSeed (bool isSeedTrue)
 sets flag whether CACell is allowed to be the seed of a new track candidate or not
 
void setActivationState (bool activationState)
 sets flag whether CACell is active (takes part during current CA iteration) or inactive (does not take part, it is 'dead')
 

Protected Attributes

unsigned int m_state
 ************************* DATA MEMBERS *************************
 
bool m_activated
 activation state.
 
bool m_stateUpgrade
 sets flag whether Segment is allowed to increase state during update step within CA
 
bool m_seed
 sets flag whether Segment is allowed to be the seed of a new track candidate or not
 

Detailed Description

The CACell class This Class stores all relevant information one wants to have stored in a cell for a Cellular automaton.

Definition at line 20 of file CACell.h.

Constructor & Destructor Documentation

◆ CACell()

CACell ( )
inline

************************* CONSTRUCTORS *************************

Default constructor for the ROOT IO.

Definition at line 24 of file CACell.h.

24 :
25 m_state(0),
26 m_activated(true),
27 m_stateUpgrade(false),
28 m_seed(false) {}
bool m_stateUpgrade
sets flag whether Segment is allowed to increase state during update step within CA
Definition: CACell.h:79
bool m_seed
sets flag whether Segment is allowed to be the seed of a new track candidate or not
Definition: CACell.h:82
bool m_activated
activation state.
Definition: CACell.h:76
unsigned int m_state
************************* DATA MEMBERS *************************
Definition: CACell.h:73

Member Function Documentation

◆ getState()

unsigned int getState ( ) const
inline

************************* PUBLIC MEMBER FUNCTIONS *************************

getters: returns state of CACell (CA-feature)

Definition at line 44 of file CACell.h.

44{ return m_state; }

◆ increaseState()

void increaseState ( )
inline

setters:

increases state during CA update step

Definition at line 58 of file CACell.h.

58{ m_state++; }

◆ isActivated()

bool isActivated ( ) const
inline

returns activationState (CA-feature)

Definition at line 50 of file CACell.h.

50{ return m_activated; }

◆ isSeed()

bool isSeed ( ) const
inline

returns whether CACell is allowed to be a seed for TCs

Definition at line 47 of file CACell.h.

47{ return m_seed; }

◆ isUpgradeAllowed()

bool isUpgradeAllowed ( ) const
inline

returns info whether stateIncrease is allowed or not (CA-feature)

Definition at line 53 of file CACell.h.

53{ return m_stateUpgrade; }

◆ operator!=()

bool operator!= ( const CACell b) const
inline

overloaded '!='-operator

Definition at line 37 of file CACell.h.

38 { return (m_state != b.m_state or m_activated != b.m_activated); }

◆ operator==()

bool operator== ( const CACell b) const
inline

************************* OPERATORS *************************

overloaded '=='-operator

Definition at line 33 of file CACell.h.

34 { return (m_state == b.m_state and m_activated == b.m_activated); }

◆ setActivationState()

void setActivationState ( bool  activationState)
inline

sets flag whether CACell is active (takes part during current CA iteration) or inactive (does not take part, it is 'dead')

Definition at line 67 of file CACell.h.

67{ m_activated = activationState; }

◆ setSeed()

void setSeed ( bool  isSeedTrue)
inline

sets flag whether CACell is allowed to be the seed of a new track candidate or not

Definition at line 64 of file CACell.h.

64{ m_seed = isSeedTrue; }

◆ setStateUpgrade()

void setStateUpgrade ( bool  up)
inline

sets flag whether CACell is allowed to increase state during update step within CA

Definition at line 61 of file CACell.h.

61{ m_stateUpgrade = up; }

Member Data Documentation

◆ m_activated

bool m_activated
protected

activation state.

Living CACells (active) are allowed to evolve in the CA, dead ones (inactive) are not allowed

Definition at line 76 of file CACell.h.

◆ m_seed

bool m_seed
protected

sets flag whether Segment is allowed to be the seed of a new track candidate or not

Definition at line 82 of file CACell.h.

◆ m_state

unsigned int m_state
protected

************************* DATA MEMBERS *************************

state of CACell during CA process, begins with 0

Definition at line 73 of file CACell.h.

◆ m_stateUpgrade

bool m_stateUpgrade
protected

sets flag whether Segment is allowed to increase state during update step within CA

Definition at line 79 of file CACell.h.


The documentation for this class was generated from the following file: