ATLAS Offline Software
SignalStateHelper.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef EVENTKERNEL_SIGNALSTATEHELPER_H
8 #define EVENTKERNEL_SIGNALSTATEHELPER_H
9 
12 
24 class SignalStateHelper final
25 {
26 public:
27 
30 
32  SignalStateHelper(ISignalState* theObject);
35 
38 
41 
43  bool resetSignalState() ;
44 
46  bool controlObject(ISignalState* theObject);
47 
49  bool releaseObject();
50 
51 protected:
52 
56 
59 
60 };
61 
62 
75 {
76 public:
77 
80 
82  SignalStateConstHelper(const ISignalState* theObject);
85 
88 
90  bool setSignalState(P4SignalState::State s) ;
91 
93  bool resetSignalState() ;
94 
96  bool controlObject(const ISignalState* theObject);
97 
99  bool releaseObject();
100 
101 protected:
102 
106 
109 
110 };
111 
112 
113 #endif
SignalStateConstHelper::m_currentState
P4SignalState::State m_currentState
Definition: SignalStateHelper.h:105
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
ISignalState
Definition: ISignalState.h:42
SignalStateConstHelper
Definition: SignalStateHelper.h:75
SignalStateHelper::resetSignalState
bool resetSignalState()
Reset the Signal State of the controlled object and use it for future operations.
Definition: SignalStateHelper.cxx:95
SignalStateHelper
Definition: SignalStateHelper.h:25
SignalStateHelper::~SignalStateHelper
~SignalStateHelper()
Destructor.
Definition: SignalStateHelper.cxx:55
SignalStateHelper::setSignalState
bool setSignalState(P4SignalState::State s)
Change the signal state for future operations.
Definition: SignalStateHelper.cxx:71
SignalStateHelper::m_currentState
P4SignalState::State m_currentState
Definition: SignalStateHelper.h:55
ISignalState.h
SignalStateHelper::releaseObject
bool releaseObject()
Release controled object (this resets its signal state)
Definition: SignalStateHelper.cxx:83
SignalStateHelper::controlObject
bool controlObject(ISignalState *theObject)
Change the object controlled, this releases previous object and resets its SigState.
Definition: SignalStateHelper.cxx:61
P4SignalState::State
State
Definition: ISignalState.h:28
SignalStateHelper::m_originalState
P4SignalState::State m_originalState
Storage of the states.
Definition: SignalStateHelper.h:54
checker_macros.h
Define macros for attributes used to control the static checker.
SignalStateConstHelper::m_originalState
P4SignalState::State m_originalState
Storage of the states.
Definition: SignalStateHelper.h:104
SignalStateConstHelper::m_object
ISignalState * m_object
Pointer to the owned object.
Definition: SignalStateHelper.h:108
SignalStateHelper::m_object
ISignalState * m_object
Pointer to the owned object.
Definition: SignalStateHelper.h:58
SignalStateHelper::SignalStateHelper
SignalStateHelper()
Empty Constructor.
Definition: SignalStateHelper.cxx:21