EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
17
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
18
#include "
ActsExamples/Framework/ProcessCode.hpp
"
19
#include <
Acts/Utilities/Logger.hpp
>
20
21
#include <memory>
22
#include <string>
23
24
namespace
ActsExamples {
25
31
class
BareAlgorithm
:
public
IAlgorithm
{
32
public
:
37
BareAlgorithm
(std::string
name
,
38
Acts::Logging::Level
level =
Acts::Logging::INFO
);
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
acts
blob
sPHENIX
Examples
Framework
include
ActsExamples
Framework
BareAlgorithm.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:25
using
1.8.2 with
EIC GitHub integration