ATLAS Offline Software
StreamSelectorTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef STREAMSELECTORTOOL_H
6 #define STREAMSELECTORTOOL_H
7 
14 
15 #include <string>
16 
20 class StreamSelectorTool : public AthAlgTool, virtual public IAthenaSelectorTool {
21 public: // Constructor and Destructor
23  StreamSelectorTool(const std::string& type, const std::string& name, const IInterface* parent);
25  virtual ~StreamSelectorTool();
26 
27 public:
29  virtual StatusCode initialize() override;
30  virtual StatusCode postInitialize() override;
31  virtual StatusCode preNext() const override;
32  virtual StatusCode postNext() const override;
33  virtual StatusCode preFinalize() override;
34  virtual StatusCode finalize() override;
35 private:
36  StringProperty m_attrListKey{this,"AttributeListKey","Input","Key for attribute list input to be used"};
37  StringProperty m_streamName{this,"AcceptStreams","","Name of stream to be used as a ACCEPT"};
38 };
39 
40 inline StatusCode StreamSelectorTool::initialize() {return StatusCode::SUCCESS;}
41 inline StatusCode StreamSelectorTool::postInitialize() {return StatusCode::SUCCESS;}
42 inline StatusCode StreamSelectorTool::preNext() const {return StatusCode::SUCCESS;}
43 inline StatusCode StreamSelectorTool::preFinalize() {return StatusCode::SUCCESS;}
44 inline StatusCode StreamSelectorTool::finalize() {return StatusCode::SUCCESS;}
45 
46 #endif
StreamSelectorTool::initialize
virtual StatusCode initialize() override
IAthenaSelectorTool Interface method implementations:
Definition: StreamSelectorTool.h:40
StreamSelectorTool::postInitialize
virtual StatusCode postInitialize() override
Called at the end of initialize.
Definition: StreamSelectorTool.h:41
IAthenaSelectorTool.h
This file contains the class definition for the IAthenaSelectorTool class.
StreamSelectorTool::preNext
virtual StatusCode preNext() const override
Called at the beginning of next.
Definition: StreamSelectorTool.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
StreamSelectorTool::preFinalize
virtual StatusCode preFinalize() override
Called at the beginning of finalize.
Definition: StreamSelectorTool.h:43
StreamSelectorTool::finalize
virtual StatusCode finalize() override
Finalize AlgTool.
Definition: StreamSelectorTool.h:44
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
StreamSelectorTool::m_attrListKey
StringProperty m_attrListKey
Definition: StreamSelectorTool.h:36
StreamSelectorTool::~StreamSelectorTool
virtual ~StreamSelectorTool()
Destructor.
Definition: StreamSelectorTool.cxx:28
StreamSelectorTool::m_streamName
StringProperty m_streamName
Definition: StreamSelectorTool.h:37
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
StreamSelectorTool::postNext
virtual StatusCode postNext() const override
Called at the end of next.
Definition: StreamSelectorTool.cxx:32
AthAlgTool
Definition: AthAlgTool.h:26
StreamSelectorTool
This class provides an example for reading with a ISelectorTool to veto events on AttributeList.
Definition: StreamSelectorTool.h:20
StreamSelectorTool::StreamSelectorTool
StreamSelectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Service Constructor.
Definition: StreamSelectorTool.cxx:22
IAthenaSelectorTool
This class provides the interface for AthenaSelectorTool classes used by AthenaEventSelector.
Definition: IAthenaSelectorTool.h:20