Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:09:24

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2018 CERN for the benefit of the Acts project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
0008 
0009 #include "Fatras/Kernel/detail/RandomNumberDistributions.hpp"
0010 
0011 Fatras::LandauDist::param_type::param_type(double mean, double scale)
0012     : mean(mean), scale(scale) {}
0013 
0014 bool Fatras::LandauDist::param_type::operator==(const param_type &other) const {
0015   return (mean == other.mean) && (scale == other.scale);
0016 }
0017 
0018 Fatras::LandauDist::LandauDist(double mean, double scale)
0019     : m_cfg(mean, scale) {}
0020 
0021 Fatras::LandauDist::LandauDist(const param_type &cfg) : m_cfg(cfg) {}
0022 
0023 Fatras::LandauDist::result_type Fatras::LandauDist::min() const {
0024   return -std::numeric_limits<double>::infinity();
0025 }
0026 
0027 Fatras::LandauDist::result_type Fatras::LandauDist::max() const {
0028   return std::numeric_limits<double>::infinity();
0029 }
0030 
0031 bool Fatras::LandauDist::operator==(const LandauDist &other) const {
0032   return (m_cfg == other.m_cfg);
0033 }