ATLAS Offline Software
EventDecisionAlg.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // EventDecisionAlg.h
8 // Header file for class EventDecisionAlg
9 // Author: Karsten Koeneke <karsten.koeneke@cern.ch>
11 #ifndef EVENTUTILS_EVENTDECISIONALG_H
12 #define EVENTUTILS_EVENTDECISIONALG_H 1
13 
14 // STL includes
15 #include <string>
16 
17 // FrameWork includes
18 #include "GaudiKernel/ServiceHandle.h"
21 
22 
24  : public ::AthFilterAlgorithm
25 {
26 
28  // Public methods:
30  public:
31 
32  // Copy constructor:
33 
35  EventDecisionAlg( const std::string& name, ISvcLocator* pSvcLocator );
36 
38  virtual ~EventDecisionAlg();
39 
41  virtual StatusCode initialize();
42 
44  virtual StatusCode execute();
45 
47  virtual StatusCode finalize();
48 
49 
50 
52  // Private data:
54  private:
55  // The handle to the IDecisionSvc;
56  ServiceHandle<IDecisionSvc> m_decSvc{ this, "DecisionService", "DecisionSvc/DecisionSvc",
57  "The handle to the IDecisionSvc" };
58 
60  StringArrayProperty m_streamNames{ this, "OutputStreamNames", {},
61  "The names of all output streams to check" };
62 
63 };
64 
65 
66 #endif //> !EVENTUTILS_EVENTDECISIONALG_H
EventDecisionAlg::execute
virtual StatusCode execute()
Athena algorithm's execute hook.
Definition: EventDecisionAlg.cxx:68
EventDecisionAlg::initialize
virtual StatusCode initialize()
Athena algorithm's initalize hook.
Definition: EventDecisionAlg.cxx:39
EventDecisionAlg::m_decSvc
ServiceHandle< IDecisionSvc > m_decSvc
Definition: EventDecisionAlg.h:56
EventDecisionAlg::~EventDecisionAlg
virtual ~EventDecisionAlg()
Destructor:
Definition: EventDecisionAlg.cxx:32
AthFilterAlgorithm
Definition: AthFilterAlgorithm.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EventDecisionAlg::EventDecisionAlg
EventDecisionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: EventDecisionAlg.cxx:23
IDecisionSvc.h
EventDecisionAlg::finalize
virtual StatusCode finalize()
Athena algorithm's finalize hook.
Definition: EventDecisionAlg.cxx:56
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
EventDecisionAlg
Definition: EventDecisionAlg.h:25
EventDecisionAlg::m_streamNames
StringArrayProperty m_streamNames
The names of all output streams to check.
Definition: EventDecisionAlg.h:60
AthFilterAlgorithm.h
ServiceHandle< IDecisionSvc >