3 #include <HepMC/GenEvent.h>
4 #include <HepMC/IO_BaseClass.h>
6 #include <ThePEG/Repository/Repository.h>
7 #include <ThePEG/EventRecord/Event.h>
8 #include <ThePEG/Config/ThePEG.h>
23 class HepRandomEngine;
45 const char *
classname()
const {
return "ThePEGHadronizer"; }
59 eventsToPrint(pset.getUntrackedParameter<unsigned int>(
"eventsToPrint", 0))
83 eg_->integratedXSec() / ThePEG::picobarn,
84 eg_->integratedXSecErr() / ThePEG::picobarn));
89 edm::LogInfo(
"Generator|ThePEGHadronizer") <<
"Start production";
95 edm::LogWarning(
"Generator|ThePEGHadronizer") <<
"thepegEvent not initialized";
100 if (!
event().
get()) {
101 edm::LogWarning(
"Generator|ThePEGHadronizer") <<
"genEvent not initialized";
113 event()->set_pdf_info(pdf);
127 edm::LogInfo(
"Generator|ThePEGHadronizer") <<
"Event produced";
unsigned int eventsToPrint
void initRepository(const edm::ParameterSet ¶ms) const
#define DEFINE_FWK_MODULE(type)
static double pthat(const ThePEG::EventPtr &event)
void setInternalXSec(const XSec &xsec)
std::auto_ptr< HepMC::GenEvent > & event()
bool declareStableParticles(const std::vector< int > &pdgIds)
GenRunInfoProduct & runInfo()
bool initializeForInternalPartons()
edm::GeneratorFilter< ThePEGHadronizer, gen::ExternalDecayDriver > ThePEGGeneratorFilter
void flushRandomNumberGenerator()
ThePEG::EventPtr thepegEvent
std::auto_ptr< HepMC::IO_BaseClass > iobc_
static std::auto_ptr< HepMC::GenEvent > convert(const ThePEG::EventPtr &event)
bool generatePartonsAndHadronize()
std::auto_ptr< GenEventInfoProduct > & eventInfo()
ThePEGHadronizer(const edm::ParameterSet ¶ms)
virtual ~ThePEGHadronizer()
virtual void doSetRandomEngine(CLHEP::HepRandomEngine *v) override
const char * classname() const
bool declareSpecialSettings(const std::vector< std::string >)
void setPEGRandomEngine(CLHEP::HepRandomEngine *)
static void clearAuxiliary(HepMC::GenEvent *hepmc, HepMC::PdfInfo *pdf)
static void fillAuxiliary(HepMC::GenEvent *hepmc, HepMC::PdfInfo *pdf, const ThePEG::EventPtr &event)