The Gaudi Framework  master (37c0b60a)
TestToolAlgFailure.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef TESTTOOLALGFAILURE_H
12 #define TESTTOOLALGFAILURE_H 1
13 
14 // from STL
15 #include <string>
16 
17 // base class
18 #include <GaudiKernel/Algorithm.h>
19 
28 class TestToolAlgFailure : public Algorithm {
29 
30 public:
33 
34  StatusCode initialize() override;
35  StatusCode execute() override;
36  StatusCode finalize() override;
37 
38 private:
39  Gaudi::Property<std::vector<std::string>> m_tools{ this, "Tools", {}, "list of tools to test" };
40  Gaudi::Property<bool> m_ignoreFailure{ this, "IgnoreFailure", false };
41  Gaudi::Property<bool> m_throwException{ this, "ThrowException", false };
42 };
43 
44 #endif // TESTTOOLALG_H
TestToolAlgFailure::m_throwException
Gaudi::Property< bool > m_throwException
Definition: TestToolAlgFailure.h:41
TestToolAlgFailure::finalize
StatusCode finalize() override
Definition: TestToolAlgFailure.cpp:72
TestToolAlgFailure::m_tools
Gaudi::Property< std::vector< std::string > > m_tools
Definition: TestToolAlgFailure.h:39
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
StatusCode
Definition: StatusCode.h:65
TestToolAlgFailure
Definition: TestToolAlgFailure.h:28
TestToolAlgFailure::execute
StatusCode execute() override
Definition: TestToolAlgFailure.cpp:62
TestToolAlgFailure::m_ignoreFailure
Gaudi::Property< bool > m_ignoreFailure
Definition: TestToolAlgFailure.h:40
TestToolAlgFailure::initialize
StatusCode initialize() override
Definition: TestToolAlgFailure.cpp:31
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.h:101
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:37