Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackParameterSelector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackParameterSelector.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2023 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 <limits>
18 #include <string>
19 
20 namespace ActsExamples {
21 struct AlgorithmContext;
22 
24 class TrackParameterSelector final : public IAlgorithm {
25  public:
26  struct Config {
31 
32  // Minimum/maximum local positions.
33  double loc0Min = -std::numeric_limits<double>::infinity();
34  double loc0Max = std::numeric_limits<double>::infinity();
35  double loc1Min = -std::numeric_limits<double>::infinity();
36  double loc1Max = std::numeric_limits<double>::infinity();
37  // Minimum/maximum track time.
38  double timeMin = -std::numeric_limits<double>::infinity();
39  double timeMax = std::numeric_limits<double>::infinity();
40  // Direction cuts.
41  double phiMin = -std::numeric_limits<double>::infinity();
42  double phiMax = std::numeric_limits<double>::infinity();
43  double etaMin = -std::numeric_limits<double>::infinity();
44  double etaMax = std::numeric_limits<double>::infinity();
45  double absEtaMin = 0.0;
46  double absEtaMax = std::numeric_limits<double>::infinity();
47  // Momentum cuts.
48  double ptMin = 0.0;
49  double ptMax = std::numeric_limits<double>::infinity();
50  };
51 
53 
54  ProcessCode execute(const AlgorithmContext& ctx) const final;
55 
57  const Config& config() const { return m_cfg; }
58 
59  private:
61 
63  this, "InputTrackParameters"};
65  this, "OutputTrackParameters"};
66 };
67 
68 } // namespace ActsExamples