EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BareAlgorithm.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BareAlgorithm.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
14 
15 #pragma once
16 
20 
21 #include <memory>
22 #include <string>
23 
24 namespace ActsExamples {
25 
31 class BareAlgorithm : public IAlgorithm {
32  public:
37  BareAlgorithm(std::string name,
39 
41  std::string name() const final override;
42 
46  virtual ProcessCode execute(
47  const AlgorithmContext& context) const override = 0;
48 
49  protected:
50  const Acts::Logger& logger() const { return *m_logger; }
51 
52  private:
53  std::string m_name;
54  std::unique_ptr<const Acts::Logger> m_logger;
55 };
56 
57 } // namespace ActsExamples