Belle II Software  release-05-01-25
WithAutomatonCell.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/ca/AutomatonCell.h>
13 #include <tracking/trackFindingCDC/utilities/Scalar.h>
14 
15 namespace Belle2 {
20  namespace TrackFindingCDC {
21 
23  template<class T>
24  class WithAutomatonCell : public ScalarToClass<T> {
25 
26  private:
28  using Super = ScalarToClass<T>;
29 
30  public:
32  explicit WithAutomatonCell(const T& obj)
33  : Super(obj)
34  , m_automatonCell()
35  {
36  }
37 
40  {
41  return m_automatonCell;
42  }
43 
45  void unsetAndForwardMaskedFlag() const
46  {
48  }
49 
51  void setAndForwardMaskedFlag() const
52  {
54  }
55 
57  void receiveMaskedFlag() const {}
58 
59  private:
62  };
63  }
65 }
Belle2::TrackFindingCDC::WithAutomatonCell::m_automatonCell
AutomatonCell m_automatonCell
Memory for the automaton cell.
Definition: WithAutomatonCell.h:69
Belle2::TrackFindingCDC::AutomatonCell::unsetMaskedFlag
void unsetMaskedFlag()
Resets the masked flag to false.
Definition: AutomatonCell.h:222
Belle2::TrackFindingCDC::WithAutomatonCell::WithAutomatonCell
WithAutomatonCell(const T &obj)
Mixin class wraps an object a.
Definition: WithAutomatonCell.h:40
Belle2::TrackFindingCDC::AutomatonCell::setMaskedFlag
void setMaskedFlag(bool setTo=true)
Sets the masked flag to the given value. Default value true.
Definition: AutomatonCell.h:216
Belle2::TrackFindingCDC::WithAutomatonCell::Super
ScalarToClass< T > Super
Base class of the mixin.
Definition: WithAutomatonCell.h:36
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::AutomatonCell
Cell used by the cellular automata.
Definition: AutomatonCell.h:39
Belle2::TrackFindingCDC::WithAutomatonCell::receiveMaskedFlag
void receiveMaskedFlag() const
Mockup as we do not have any sub-items.
Definition: WithAutomatonCell.h:65
Belle2::TrackFindingCDC::WithAutomatonCell::getAutomatonCell
AutomatonCell & getAutomatonCell() const
Mutable getter for the automaton cell.
Definition: WithAutomatonCell.h:47
Belle2::TrackFindingCDC::WithAutomatonCell::setAndForwardMaskedFlag
void setAndForwardMaskedFlag() const
Mockup as we do not have any sub-items.
Definition: WithAutomatonCell.h:59
Belle2::TrackFindingCDC::WithAutomatonCell::unsetAndForwardMaskedFlag
void unsetAndForwardMaskedFlag() const
Mockup as we do not have any sub-items.
Definition: WithAutomatonCell.h:53