Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251262
EvtMTRandomEngine.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
EvtMTRandomEngine.hh
View Options
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Information: See EvtGen/COPYRIGHT
// Copyright (C) 2015 University of Warwick, UK
//
// Module: EvtGenBase/EvtMTRandomEngine.hh
//
// Generate random numbers using the Mersenne-Twister MT19937.
// Member function random returns a random number in the range ]0..1[.
//
// Modification history:
//
// John Back Aug 2015 Module created
//
//------------------------------------------------------------------------
#ifndef EVTMTRANDOMENGINE_HH
#define EVTMTRANDOMENGINE_HH
#include
"EvtGenBase/EvtRandomEngine.hh"
#include
<random>
class
EvtMTRandomEngine
:
public
EvtRandomEngine
{
public
:
EvtMTRandomEngine
(
unsigned
int
seed
=
1430957218
);
virtual
double
random
();
private
:
std
::
mt19937
engine_
;
typedef
std
::
uniform_real_distribution
<
double
>
URDist
;
URDist
distribution_
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 30, 5:49 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6563088
Default Alt Text
EvtMTRandomEngine.hh (1 KB)
Attached To
Mode
rEVTGEN evtgen
Attached
Detach File
Event Timeline
Log In to Comment