Belle II Software  release-08-01-10
CACell.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #pragma once
9 
10 
11 namespace Belle2 {
20  class CACell {
21  public:
24  CACell():
25  m_state(0),
26  m_activated(true),
27  m_stateUpgrade(false),
28  m_seed(false) {}
29 
30 
33  bool operator==(const CACell& b) const
34  { return (m_state == b.m_state and m_activated == b.m_activated); }
35 
37  bool operator!=(const CACell& b) const
38  { return (m_state != b.m_state or m_activated != b.m_activated); }
39 
40 
43 
44  inline unsigned int getState() const { return m_state; }
45 
47  inline bool isSeed() const { return m_seed; }
48 
50  inline bool isActivated() const { return m_activated; }
51 
53  inline bool isUpgradeAllowed() const { return m_stateUpgrade; }
54 
55 
57 
58  inline void increaseState() { m_state++; }
59 
61  inline void setStateUpgrade(bool up) { m_stateUpgrade = up; }
62 
64  inline void setSeed(bool isSeedTrue) { m_seed = isSeedTrue; }
65 
67  inline void setActivationState(bool activationState) { m_activated = activationState; }
68 
69 
70  protected:
73  unsigned int m_state;
74 
77 
80 
82  bool m_seed;
83  };
85 }
The CACell class This Class stores all relevant information one wants to have stored in a cell for a ...
Definition: CACell.h:20
void setSeed(bool isSeedTrue)
sets flag whether CACell is allowed to be the seed of a new track candidate or not
Definition: CACell.h:64
unsigned int getState() const
************************* PUBLIC MEMBER FUNCTIONS *************************
Definition: CACell.h:44
void setActivationState(bool activationState)
sets flag whether CACell is active (takes part during current CA iteration) or inactive (does not tak...
Definition: CACell.h:67
void increaseState()
setters:
Definition: CACell.h:58
bool operator==(const CACell &b) const
************************* OPERATORS *************************
Definition: CACell.h:33
bool m_stateUpgrade
sets flag whether Segment is allowed to increase state during update step within CA
Definition: CACell.h:79
bool isActivated() const
returns activationState (CA-feature)
Definition: CACell.h:50
bool operator!=(const CACell &b) const
overloaded '!='-operator
Definition: CACell.h:37
void setStateUpgrade(bool up)
sets flag whether CACell is allowed to increase state during update step within CA
Definition: CACell.h:61
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 isSeed() const
returns whether CACell is allowed to be a seed for TCs
Definition: CACell.h:47
bool m_activated
activation state.
Definition: CACell.h:76
unsigned int m_state
************************* DATA MEMBERS *************************
Definition: CACell.h:73
CACell()
************************* CONSTRUCTORS *************************
Definition: CACell.h:24
bool isUpgradeAllowed() const
returns info whether stateIncrease is allowed or not (CA-feature)
Definition: CACell.h:53
Abstract base class for different kinds of events.