Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TruthSeedSelector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TruthSeedSelector.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 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 
17 
18 #include <cstddef>
19 #include <limits>
20 #include <string>
21 
22 namespace ActsFatras {
23 class Barcode;
24 } // namespace ActsFatras
25 
26 namespace ActsExamples {
27 struct AlgorithmContext;
28 
41 //
42 class TruthSeedSelector final : public IAlgorithm {
43  public:
45 
46  struct Config {
54  double rhoMin = 0.;
55  double rhoMax = std::numeric_limits<double>::max();
57  double zMin = std::numeric_limits<double>::lowest();
58  double zMax = std::numeric_limits<double>::max();
59  // Truth particle kinematic cuts
60  double phiMin = std::numeric_limits<double>::lowest();
61  double phiMax = std::numeric_limits<double>::max();
62  double etaMin = std::numeric_limits<double>::lowest();
63  double etaMax = std::numeric_limits<double>::max();
64  double absEtaMin = std::numeric_limits<double>::lowest();
65  double absEtaMax = std::numeric_limits<double>::max();
66  double ptMin = 0.0;
67  double ptMax = std::numeric_limits<double>::max();
69  bool keepNeutral = false;
71  //@TODO: implement detector-specific requirements
72  size_t nHitsMin = 0;
73  size_t nHitsMax = std::numeric_limits<size_t>::max();
74  };
75 
77 
78  ProcessCode execute(const AlgorithmContext& ctx) const final;
79 
81  const Config& config() const { return m_cfg; }
82 
83  private:
85 
88  this, "InputMeasurementParticlesMap"};
89 
91  "OutputParticles"};
92 };
93 
94 } // namespace ActsExamples