IAP GITLAB

Skip to content
Snippets Groups Projects
Random.h 695 B
/*
 * (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu
 *
 * This software is distributed under the terms of the GNU General Public
 * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
 * the license.
 */

#pragma once

#include <Pythia8/Pythia.h>
#include <corsika/random/RNGManager.h>

namespace corsika::process {

  namespace pythia {

    class Random : public Pythia8::RndmEngine {
      double flat();

    private:
      std::uniform_real_distribution<double> fDist;
      corsika::random::RNG& fRNG =
          corsika::random::RNGManager::GetInstance().GetRandomStream("pythia");
    };

  } // namespace pythia
} // namespace corsika::process