| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

EventSlot.h
Go to the documentation of this file.
1 #ifndef EVENTSLOT_H_
2 #define EVENTSLOT_H_
3
4 // Framework includes
5 #include "AlgsExecutionStates.h"
6 #include "GaudiKernel/EventContext.h"
7
8 // Event slots management -------------------------------------------------
10 class EventSlot
11 {
12 public:
13 EventSlot( unsigned int numberOfAlgorithms, unsigned int numberOfControlFlowNodes, SmartIF<IMessageSvc> MS )
14 : eventContext( nullptr )
15 , algsStates( numberOfAlgorithms, MS )
16 , complete( false )
17 , controlFlowState( numberOfControlFlowNodes, -1 ){};
18
19 ~EventSlot(){};
20
22 void reset( EventContext* theeventContext )
23 {
24 eventContext = theeventContext;
25 algsStates.reset();
26 complete = false;
27 controlFlowState.assign( controlFlowState.size(), -1 );
28 };
29
31 EventContext* eventContext;
33 AlgsExecutionStates algsStates;
35 bool complete;
37 std::vector<int> controlFlowState;
38 };
39
40 #endif /* EVENTSLOT_H_ */
SmartIF< IMessageSvc >
EventSlot::EventSlot
EventSlot(unsigned int numberOfAlgorithms, unsigned int numberOfControlFlowNodes, SmartIF< IMessageSvc > MS)
Definition: EventSlot.h:13
EventSlot::algsStates
AlgsExecutionStates algsStates
Vector of algorithms states.
Definition: EventSlot.h:33
EventSlot::eventContext
EventContext * eventContext
Cache for the eventContext.
Definition: EventSlot.h:28
EventContext.h
EventContext
This class represents an entry point to all the event specific data.
Definition: EventContext.h:24
AlgsExecutionStates
The AlgsExecutionStates encodes the state machine for the execution of algorithms within a single eve...
Definition: AlgsExecutionStates.h:28
EventSlot::controlFlowState
std::vector< int > controlFlowState
State of the control flow.
Definition: EventSlot.h:37
EventSlot::complete
bool complete
Flags completion of the event.
Definition: EventSlot.h:35
std::vector::size
T size(T...args)
std::vector::assign
T assign(T...args)
std::vector< int >
EventSlot::reset
void reset(EventContext *theeventContext)
Reset all resources in order to reuse the slot.
Definition: EventSlot.h:22
AlgsExecutionStates::reset
void reset()
Definition: AlgsExecutionStates.h:51
EventSlot
Class representing the event slot.
Definition: EventSlot.h:10
AlgsExecutionStates.h
EventSlot::~EventSlot
~EventSlot()
Definition: EventSlot.h:19