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>
41 const char *
classname()
const {
return "ThePEGHadronizer"; }
52 eventsToPrint(pset.getUntrackedParameter<unsigned int>(
"eventsToPrint", 0))
76 eg_->integratedXSec() / ThePEG::picobarn,
77 eg_->integratedXSecErr() / ThePEG::picobarn));
82 edm::LogInfo(
"Generator|ThePEGHadronizer") <<
"Start production";
88 edm::LogWarning(
"Generator|ThePEGHadronizer") <<
"thepegEvent not initialized";
94 edm::LogWarning(
"Generator|ThePEGHadronizer") <<
"genEvent not initialized";
106 event()->set_pdf_info(pdf);
120 edm::LogInfo(
"Generator|ThePEGHadronizer") <<
"Event produced";
unsigned int eventsToPrint
void initRepository(const edm::ParameterSet ¶ms) const
#define DEFINE_FWK_MODULE(type)
boost::shared_ptr< boost::statechart::event_base > EventPtr
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()
const char * classname() const
bool declareSpecialSettings(const std::vector< std::string >)
static void clearAuxiliary(HepMC::GenEvent *hepmc, HepMC::PdfInfo *pdf)
static void fillAuxiliary(HepMC::GenEvent *hepmc, HepMC::PdfInfo *pdf, const ThePEG::EventPtr &event)