ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackSelector.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackSelector.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 
11 #include <limits>
12 #include <string>
13 
15 
16 namespace FW {
17 
19 class TrackSelector final : public BareAlgorithm {
20  public:
21  struct Config {
23  std::string input;
25  std::string output;
30  // Track cuts
31  double phiMin = std::numeric_limits<double>::lowest();
33  double etaMin = std::numeric_limits<double>::lowest();
35  double absEtaMin = std::numeric_limits<double>::lowest();
37  double ptMin = 0.0;
40  bool keepNeutral = true;
41  };
42 
43  TrackSelector(const Config& cfg,
45 
46  ProcessCode execute(const AlgorithmContext& ctx) const final override;
47 
48  private:
50 };
51 
52 } // namespace FW