Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
IAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file IAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017-2023 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/ProcessCode.hpp
"
18
#include "
ActsExamples/Framework/SequenceElement.hpp
"
19
#include <
Acts/Utilities/Logger.hpp
>
20
21
#include <memory>
22
#include <string>
23
24
namespace
ActsExamples {
25
struct
AlgorithmContext;
26
32
class
IAlgorithm
:
public
SequenceElement
{
33
public
:
38
IAlgorithm
(
std::string
name
,
39
Acts::Logging::Level
level
=
Acts::Logging::INFO
);
40
42
std::string
name
()
const override
;
43
47
virtual
ProcessCode
execute
(
const
AlgorithmContext
& context)
const
= 0;
48
51
ProcessCode
internalExecute
(
const
AlgorithmContext
& context)
final
{
52
return
execute
(context);
53
};
54
56
ProcessCode
initialize
()
override
{
return
ProcessCode::SUCCESS
; }
58
ProcessCode
finalize
()
override
{
return
ProcessCode::SUCCESS
; }
59
60
protected
:
61
const
Acts::Logger
&
logger
()
const
{
return
*
m_logger
; }
62
63
private
:
64
std::string
m_name
;
65
std::unique_ptr<const Acts::Logger>
m_logger
;
66
};
67
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Framework
include
ActsExamples
Framework
IAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:38
using
1.8.2 with
sPHENIX GitHub integration