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 using namespace ThePEG;
45 std::auto_ptr<HepMC::GenEvent> doHadronisation();
46 void newRunInfo(
const boost::shared_ptr<LHERunInfo> &runInfo);
55 void ThePEGHadronisation::initLHE()
58 ss << proxy_->getID();
60 ostringstream logstream;
61 ThePEG::Repository::exec(
"set " + handlerDirectory_ +
62 "/LHEReader:ProxyID " + ss.str(), logstream);
63 edm::LogInfo(
"Generator|LHEInterface") << logstream.str();
69 handlerDirectory_(params.getParameter<
string>(
"eventHandlers"))
86 edm::LogInfo(
"Generator|LHEInterface") <<
"Start production";
90 ThePEG::EventPtr thepegEvent;
93 thepegEvent =
eg_->shoot();
94 }
catch(ThePEG::Stop) {
100 <<
"thepegEvent not initialized";
101 return std::auto_ptr<HepMC::GenEvent>();
104 std::auto_ptr<HepMC::GenEvent>
event =
convert(thepegEvent);
112 event->set_pdf_info(pdf);
118 const boost::shared_ptr<LHERunInfo> &runInfo)
120 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
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)