forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathIAlgorithm.cpp
More file actions
35 lines (26 loc) · 1.04 KB
/
IAlgorithm.cpp
File metadata and controls
35 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// This file is part of the ACTS project.
//
// Copyright (C) 2016 CERN for the benefit of the ACTS project
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
#include "ActsExamples/Framework/IAlgorithm.hpp"
#include "Acts/Utilities/Logger.hpp"
#include <utility>
namespace ActsExamples {
IAlgorithm::IAlgorithm(const std::string& name, Acts::Logging::Level level)
: IAlgorithm(name, Acts::getDefaultLogger(name, level)) {}
IAlgorithm::IAlgorithm(const std::string& name,
std::unique_ptr<const Acts::Logger> logger)
: m_name(name),
m_logger(logger != nullptr
? std::move(logger)
: Acts::getDefaultLogger(name, Acts::Logging::INFO)) {}
std::string IAlgorithm::name() const {
return m_name;
}
ProcessCode IAlgorithm::internalExecute(const AlgorithmContext& context) {
return execute(context);
}
} // namespace ActsExamples