CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/GeneratorInterface/Herwig6Interface/plugins/Dummies.cc

Go to the documentation of this file.
00001 #include <CLHEP/Random/RandomEngine.h>
00002 
00003 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00004 
00005 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
00006 
00007 CLHEP::HepRandomEngine* randomEngine;
00008 
00009 extern "C" {
00010   void hwaend_() {return;}
00011 
00012   void cmsending_(int* ecode) {
00013     edm::LogError("")<<"   ERROR: Herwig stoped run after receiving error code "<<*ecode<<".\n";
00014     throw cms::Exception("Herwig6Error") <<" Herwig stoped run with error code "<<*ecode<<".";
00015   }
00016 
00017   double hwrgen_(int* idummy)
00018   {
00019     return randomEngine->flat();
00020   }
00021 }