Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ParticleSmearing.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ParticleSmearing.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 
20 
21 #include <array>
22 #include <limits>
23 #include <memory>
24 #include <optional>
25 #include <string>
26 
27 namespace ActsExamples {
28 class RandomNumbers;
29 struct AlgorithmContext;
30 
37 class ParticleSmearing final : public IAlgorithm {
38  public:
39  struct Config {
61  double sigmaPRel = 0.05;
64  std::optional<std::array<double, 6>> initialSigmas = std::nullopt;
66  std::array<double, 6> initialVarInflation = {1., 1., 1., 1., 1., 1.};
68  std::shared_ptr<const RandomNumbers> randomNumbers = nullptr;
70  std::optional<Acts::ParticleHypothesis> particleHypothesis = std::nullopt;
71  };
72 
74 
75  ProcessCode execute(const AlgorithmContext& ctx) const override;
76 
78  const Config& config() const { return m_cfg; }
79 
80  private:
82 
84 
86  this, "OutputTrackParameters"};
87 };
88 
89 } // namespace ActsExamples