GeneratorInterface
Herwig6Interface
plugins
Dummies.cc
Go to the documentation of this file.
1
#include <CLHEP/Random/RandomEngine.h>
2
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
5
#include "
SimDataFormats/GeneratorProducts/interface/HepMCProduct.h
"
6
7
CLHEP::HepRandomEngine*
randomEngine
;
8
9
extern
"C"
{
10
void
hwaend_
() {
return
;}
11
12
void
cmsending_
(
int
* ecode) {
13
edm::LogError
(
""
)<<
" ERROR: Herwig stoped run after receiving error code "
<<*ecode<<
".\n"
;
14
throw
cms::Exception
(
"Herwig6Error"
) <<
" Herwig stoped run with error code "
<<*ecode<<
"."
;
15
}
16
17
double
hwrgen_
(
int
* idummy)
18
{
19
return
randomEngine
->flat();
20
}
21
}
MessageLogger.h
hwrgen_
double hwrgen_(int *idummy)
Definition:
Dummies.cc:17
randomEngine
CLHEP::HepRandomEngine * randomEngine
Definition:
Dummies.cc:7
edm::LogError
Definition:
MessageLogger.h:183
cmsending_
void cmsending_(int *ecode)
Definition:
Dummies.cc:12
hwaend_
void hwaend_()
Definition:
Dummies.cc:10
Exception
Definition:
hltDiff.cc:246
HepMCProduct.h
Generated for CMSSW Reference Manual by
1.8.16