Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NoDecay.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file NoDecay.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020-2021 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 
12 
13 #include <array>
14 #include <limits>
15 
16 namespace ActsFatras {
17 
19 struct NoDecay {
23  template <typename generator_t>
25  generator_t& /* rng */, const Particle& /* particle */) const {
26  return std::numeric_limits<Particle::Scalar>::infinity();
27  }
29  template <typename generator_t>
30  constexpr std::array<Particle, 0> run(generator_t& /* rng */,
31  const Particle& /* particle */) const {
32  return {};
33  }
34 };
35 
36 } // namespace ActsFatras