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