Belle II Software development
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
11namespace Belle2 {
20 class CACell {
21 public:
24 CACell() {}
25
26
29 bool operator==(const CACell& b) const
30 { return (m_state == b.m_state and m_activated == b.m_activated); }
31
33 bool operator!=(const CACell& b) const
34 { return (m_state != b.m_state or m_activated != b.m_activated); }
35
36
39
40 inline unsigned int getState() const { return m_state; }
41
43 inline bool isSeed() const { return m_seed; }
44
46 inline bool isActivated() const { return m_activated; }
47
49 inline bool isUpgradeAllowed() const { return m_stateUpgrade; }
50
51
53
54 inline void increaseState() { m_state++; }
55
57 inline void setStateUpgrade(bool up) { m_stateUpgrade = up; }
58
60 inline void setSeed(bool isSeedTrue) { m_seed = isSeedTrue; }
61
63 inline void setActivationState(bool activationState) { m_activated = activationState; }
64
65
66 protected:
69 unsigned int m_state = 0;
70
72 bool m_activated = true;
73
75 bool m_stateUpgrade = false;
76
78 bool m_seed = false;
79 };
81}
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:60
unsigned int getState() const
************************* PUBLIC MEMBER FUNCTIONS *************************
Definition: CACell.h:40
void setActivationState(bool activationState)
sets flag whether CACell is active (takes part during current CA iteration) or inactive (does not tak...
Definition: CACell.h:63
void increaseState()
setters:
Definition: CACell.h:54
bool operator==(const CACell &b) const
************************* OPERATORS *************************
Definition: CACell.h:29
bool m_stateUpgrade
sets flag whether Segment is allowed to increase state during update step within CA
Definition: CACell.h:75
bool isActivated() const
returns activationState (CA-feature)
Definition: CACell.h:46
bool operator!=(const CACell &b) const
overloaded '!='-operator
Definition: CACell.h:33
void setStateUpgrade(bool up)
sets flag whether CACell is allowed to increase state during update step within CA
Definition: CACell.h:57
bool m_seed
sets flag whether Segment is allowed to be the seed of a new track candidate or not
Definition: CACell.h:78
bool isSeed() const
returns whether CACell is allowed to be a seed for TCs
Definition: CACell.h:43
bool m_activated
activation state.
Definition: CACell.h:72
unsigned int m_state
************************* DATA MEMBERS *************************
Definition: CACell.h:69
CACell()
************************* CONSTRUCTORS *************************
Definition: CACell.h:24
bool isUpgradeAllowed() const
returns info whether stateIncrease is allowed or not (CA-feature)
Definition: CACell.h:49
Abstract base class for different kinds of events.