EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BFieldScalor.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BFieldScalor.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 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 
9 #pragma once
10 
16 
17 #include <vector>
18 
19 namespace ActsExamples {
20 
21 namespace BField {
22 
26  public:
28  struct Config {
30  double scalor = 1.2;
31  };
32 
37  BFieldScalor(const Config& cfg,
38  std::unique_ptr<const Acts::Logger> logger =
40 
42  virtual ~BFieldScalor() = default;
43 
51  ProcessCode decorate(AlgorithmContext& context) final override;
52 
54  const std::string& name() const final override { return m_name; }
55 
56  private:
58  std::unique_ptr<const Acts::Logger> m_logger;
59  std::string m_name = "BFieldScalor";
60 
62  const Acts::Logger& logger() const { return *m_logger; }
63 };
64 } // namespace BField
65 
66 } // namespace ActsExamples