CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/GeneratorInterface/ExternalDecays/src/myEvtRandomEngine.cc

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // Module: myEvtRandomEngine.cpp
00004 //
00005 // Description:
00006 // this is an EvtRandomEngine
00007 // It is used as an interface of the random number engine provided
00008 // by the CMSSW Random Number Generator Service and EvtGen
00009 // Its "random()" method uses the "Flat()" method of the CLHEP::HepRandomEngine
00010 // provided by the Random Number Generator Service
00011 //
00012 // Modification history:
00013 //
00014 //   Nello Nappi     May 9, 2007         Module created
00015 //
00016 //------------------------------------------------------------------------
00017 //
00018 #include "CLHEP/Random/RandomEngine.h"
00019 #include "EvtGenBase/EvtRandomEngine.hh"
00020 #include "GeneratorInterface/ExternalDecays/interface/myEvtRandomEngine.h"
00021 
00022 myEvtRandomEngine::myEvtRandomEngine(CLHEP::HepRandomEngine *xx) {the_engine = xx;}
00023 
00024 myEvtRandomEngine::~myEvtRandomEngine() {}
00025 
00026 double myEvtRandomEngine::random()
00027 {
00028   return the_engine->flat();
00029 }
00030 
00031