Belle II Software  release-05-02-19
CACell.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 
13 namespace Belle2 {
22  class CACell {
23  public:
26  CACell():
27  m_state(0),
28  m_activated(true),
29  m_stateUpgrade(false),
30  m_seed(false) {}
31 
32 
35  bool operator==(const CACell& b) const
36  { return (m_state == b.m_state and m_activated == b.m_activated); }
37 
39  bool operator!=(const CACell& b) const
40  { return (m_state != b.m_state or m_activated != b.m_activated); }
41 
42 
44 
46  inline unsigned int getState() const { return m_state; }
47 
49  inline bool isSeed() const { return m_seed; }
50 
52  inline bool isActivated() const { return m_activated; }
53 
55  inline bool isUpgradeAllowed() const { return m_stateUpgrade; }
56 
57 
59 
60  inline void increaseState() { m_state++; }
61 
63  inline void setStateUpgrade(bool up) { m_stateUpgrade = up; }
64 
66  inline void setSeed(bool isSeedTrue) { m_seed = isSeedTrue; }
67 
69  inline void setActivationState(bool activationState) { m_activated = activationState; }
70 
71 
72  protected:
75  unsigned int m_state;
76 
78  bool m_activated;
79 
81  bool m_stateUpgrade;
82 
84  bool m_seed;
85  };
87 }
Belle2::CACell::operator!=
bool operator!=(const CACell &b) const
overloaded '!='-operator
Definition: CACell.h:47
Belle2::CACell::setSeed
void setSeed(bool isSeedTrue)
sets flag whether CACell is allowed to be the seed of a new track candidate or not
Definition: CACell.h:74
Belle2::CACell::m_state
unsigned int m_state
************************* DATA MEMBERS *************************
Definition: CACell.h:83
Belle2::CACell::increaseState
void increaseState()
setters:
Definition: CACell.h:68
Belle2::CACell::operator==
bool operator==(const CACell &b) const
************************* OPERATORS *************************
Definition: CACell.h:43
Belle2::CACell::isActivated
bool isActivated() const
returns activationState (CA-feature)
Definition: CACell.h:60
Belle2::CACell::getState
unsigned int getState() const
************************* PUBLIC MEMBER FUNCTIONS *************************
Definition: CACell.h:54
Belle2::CACell::m_activated
bool m_activated
activation state.
Definition: CACell.h:86
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CACell::isSeed
bool isSeed() const
returns whether CACell is allowed to be a seed for TCs
Definition: CACell.h:57
Belle2::CACell
The CACell class This Class stores all relevant information one wants to have stored in a cell for a ...
Definition: CACell.h:30
Belle2::CACell::CACell
CACell()
************************* CONSTRUCTORS *************************
Definition: CACell.h:34
Belle2::CACell::m_stateUpgrade
bool m_stateUpgrade
sets flag whether Segment is allowed to increase state during update step within CA
Definition: CACell.h:89
Belle2::CACell::setStateUpgrade
void setStateUpgrade(bool up)
sets flag whether CACell is allowed to increase state during update step within CA
Definition: CACell.h:71
Belle2::CACell::m_seed
bool m_seed
sets flag whether Segment is allowed to be the seed of a new track candidate or not
Definition: CACell.h:92
Belle2::CACell::isUpgradeAllowed
bool isUpgradeAllowed() const
returns info whether stateIncrease is allowed or not (CA-feature)
Definition: CACell.h:63
Belle2::CACell::setActivationState
void setActivationState(bool activationState)
sets flag whether CACell is active (takes part during current CA iteration) or inactive (does not tak...
Definition: CACell.h:77