CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
Random.hpp
1
/*
2
* (c) Copyright 2020 CORSIKA Project, corsika-project@lists.kit.edu
3
*
4
* This software is distributed under the terms of the GNU General Public
5
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6
* the license.
7
*/
8
9
#pragma once
10
11
#include <Pythia8/Pythia.h>
12
13
#include <corsika/framework/random/RNGManager.hpp>
14
15
namespace
corsika::pythia8
{
16
17
class
Random
:
public
Pythia8::RndmEngine {
18
double
flat();
19
20
private
:
21
std::uniform_real_distribution<double> Dist_;
22
default_prng_type& RNG_ =
RNGManager<>::getInstance
().
getRandomStream
(
"pythia"
);
23
};
24
25
}
// namespace corsika::pythia8
26
27
#include <corsika/detail/modules/pythia8/Random.inl>
corsika::pythia8
Definition:
Decay.hpp:18
corsika::RNGManager
Definition:
RNGManager.hpp:26
corsika::pythia8::Random
Definition:
Random.hpp:17
corsika::RNGManager::getRandomStream
prng_type & getRandomStream(string_type const &streamName)
corsika
modules
pythia8
Random.hpp
Generated by
1.8.13