EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PayloadDecorator.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PayloadDecorator.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 Acts {
20 class TrackingGeometry;
21 }
22 
23 namespace ActsExamples {
24 
25 namespace Contextual {
26 
33  public:
35  struct Config {
37  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry = nullptr;
38 
40  double rotationStep = 0.2 * M_PI;
41 
43  unsigned int iovSize = 100;
44  };
45 
50  PayloadDecorator(const Config& cfg,
51  std::unique_ptr<const Acts::Logger> logger =
52  Acts::getDefaultLogger("PayloadDecorator",
54 
56  virtual ~PayloadDecorator() = default;
57 
65  ProcessCode decorate(AlgorithmContext& context) final override;
66 
68  const std::string& name() const final override { return m_name; }
69 
70  private:
72  std::unique_ptr<const Acts::Logger> m_logger;
73  std::string m_name = "PayloadDecorator";
74 
76  std::vector<Acts::Transform3D> m_nominalStore;
77 
79  const Acts::Logger& logger() const { return *m_logger; }
80 
86 };
87 } // namespace Contextual
88 
89 } // namespace ActsExamples