Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
GeneratorInterface
ExternalDecays
src
myEvtRandomEngine.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Module: myEvtRandomEngine.cpp
4
//
5
// Description:
6
// this is an EvtRandomEngine
7
// It is used as an interface of the random number engine provided
8
// by the CMSSW Random Number Generator Service and EvtGen
9
// Its "random()" method uses the "Flat()" method of the CLHEP::HepRandomEngine
10
// provided by the Random Number Generator Service
11
//
12
// Modification history:
13
//
14
// Nello Nappi May 9, 2007 Module created
15
//
16
//------------------------------------------------------------------------
17
//
18
#include "CLHEP/Random/RandomEngine.h"
19
#include "EvtGenBase/EvtRandomEngine.hh"
20
#include "
GeneratorInterface/ExternalDecays/interface/myEvtRandomEngine.h
"
21
22
myEvtRandomEngine::myEvtRandomEngine
(CLHEP::HepRandomEngine *xx) {
the_engine
= xx;}
23
24
myEvtRandomEngine::~myEvtRandomEngine
() {}
25
26
double
myEvtRandomEngine::random
()
27
{
28
return
the_engine
->flat();
29
}
30
31
myEvtRandomEngine::myEvtRandomEngine
myEvtRandomEngine(CLHEP::HepRandomEngine *xx)
Definition:
myEvtRandomEngine.cc:22
myEvtRandomEngine.h
myEvtRandomEngine::~myEvtRandomEngine
virtual ~myEvtRandomEngine()
Definition:
myEvtRandomEngine.cc:24
myEvtRandomEngine::the_engine
CLHEP::HepRandomEngine * the_engine
Definition:
myEvtRandomEngine.h:38
myEvtRandomEngine::random
virtual double random()
Definition:
myEvtRandomEngine.cc:26
Generated for CMSSW Reference Manual by
1.8.5