7 #include <boost/shared_ptr.hpp>
9 #include <HepMC/GenEvent.h>
10 #include <HepMC/GenParticle.h>
11 #include <HepMC/PdfInfo.h>
13 #include <ThePEG/Repository/Repository.h>
14 #include <ThePEG/EventRecord/Event.h>
15 #include <ThePEG/Config/ThePEG.h>
16 #include <ThePEG/LesHouches/LesHouchesReader.h>
33 class HepRandomEngine;
37 using namespace ThePEG;
52 std::auto_ptr<HepMC::GenEvent> doHadronisation();
53 void newRunInfo(
const boost::shared_ptr<LHERunInfo> &runInfo);
62 void ThePEGHadronisation::initLHE()
65 ss << proxy_->getID();
67 ostringstream logstream;
68 ThePEG::Repository::exec(
"set " + handlerDirectory_ +
69 "/LHEReader:ProxyID " + ss.str(), logstream);
70 edm::LogInfo(
"Generator|LHEInterface") << logstream.str();
76 handlerDirectory_(params.getParameter<
string>(
"eventHandlers"))
93 edm::LogInfo(
"Generator|LHEInterface") <<
"Start production";
97 ThePEG::EventPtr thepegEvent;
100 thepegEvent =
eg_->shoot();
101 }
catch(ThePEG::Stop) {
107 <<
"thepegEvent not initialized";
108 return std::auto_ptr<HepMC::GenEvent>();
111 std::auto_ptr<HepMC::GenEvent>
event =
convert(thepegEvent);
119 event->set_pdf_info(pdf);
125 const boost::shared_ptr<LHERunInfo> &runInfo)
127 proxy_->loadRunInfo(runInfo);
void initRepository(const edm::ParameterSet ¶ms) const
void newRunInfo(const boost::shared_ptr< LHERunInfo > &runInfo)
DEFINE_LHE_HADRONISATION_PLUGIN(ThePEGHadronisation)
const boost::shared_ptr< LHEEvent > & getRawEvent() const
virtual void doSetRandomEngine(CLHEP::HepRandomEngine *v) override
void flushRandomNumberGenerator()
std::auto_ptr< HepMC::GenEvent > doHadronisation()
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
static std::auto_ptr< HepMC::GenEvent > convert(const ThePEG::EventPtr &event)
const std::string handlerDirectory_
boost::shared_ptr< LHEProxy > proxy_
static void clearAuxiliary(HepMC::GenEvent *hepmc, HepMC::PdfInfo *pdf)
static boost::shared_ptr< LHEProxy > create()
static void fillAuxiliary(HepMC::GenEvent *hepmc, HepMC::PdfInfo *pdf, const ThePEG::EventPtr &event)