File indexing completed on 2025-01-18 09:11:45
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Utilities/Logger.hpp"
0013 #include "ActsExamples/Framework/IContextDecorator.hpp"
0014 #include "ActsExamples/Framework/ProcessCode.hpp"
0015
0016 #include <memory>
0017 #include <string>
0018
0019 namespace ActsExamples {
0020 struct AlgorithmContext;
0021
0022
0023
0024
0025 class ScalableBFieldService : public IContextDecorator {
0026 public:
0027 struct Config {
0028
0029 double scalor = 1.25;
0030 };
0031
0032
0033
0034
0035
0036 ScalableBFieldService(const Config& cfg, Acts::Logging::Level lvl);
0037
0038
0039 const std::string& name() const override;
0040
0041
0042
0043
0044 ProcessCode decorate(AlgorithmContext& ctx) override;
0045
0046 private:
0047 Config m_cfg;
0048 std::unique_ptr<const Acts::Logger> m_logger;
0049
0050 const Acts::Logger& logger() const { return *m_logger; }
0051 };
0052
0053 }