CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ThePEGInterface.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_ThePEGInterface_ThePEGInterface_h
2 #define GeneratorInterface_ThePEGInterface_ThePEGInterface_h
3 
10 #include <memory>
11 #include <string>
12 
13 #include <boost/shared_ptr.hpp>
14 
15 #include <HepMC/GenEvent.h>
16 #include <HepMC/PdfInfo.h>
17 #include <HepMC/IO_BaseClass.h>
18 
19 #include <ThePEG/Repository/EventGenerator.h>
20 #include <ThePEG/EventRecord/Event.h>
21 
23 
25 
26 namespace CLHEP {
27  class HepRandomEngine;
28 }
29 
31  public:
32  ThePEGInterface(const edm::ParameterSet &params);
33  virtual ~ThePEGInterface();
34 
35  void setPEGRandomEngine(CLHEP::HepRandomEngine*);
36 
37  protected:
38  void initRepository(const edm::ParameterSet &params) const;
39  void initGenerator();
41 
42  static std::auto_ptr<HepMC::GenEvent>
43  convert(const ThePEG::EventPtr &event);
44  static void clearAuxiliary(HepMC::GenEvent *hepmc,
45  HepMC::PdfInfo *pdf);
46  static void fillAuxiliary(HepMC::GenEvent *hepmc,
47  HepMC::PdfInfo *pdf,
48  const ThePEG::EventPtr &event);
49 
50  static double pthat(const ThePEG::EventPtr &event);
51 
54  const std::string &paramName) const;
55 
56  ThePEG::EGPtr eg_;
57  std::auto_ptr<HepMC::IO_BaseClass> iobc_;
58 
59  private:
60  boost::shared_ptr<ThePEG::RandomEngineGlue::Proxy>
62 
67  const unsigned int skipEvents_;
68 };
69 
70 #endif // GeneratorInterface_ThePEGInterface_ThePEGInterface_h
void initRepository(const edm::ParameterSet &params) const
ThePEGInterface(const edm::ParameterSet &params)
static double pthat(const ThePEG::EventPtr &event)
std::string dataFile(const std::string &fileName) const
const std::string run_
void flushRandomNumberGenerator()
std::auto_ptr< HepMC::IO_BaseClass > iobc_
ThePEG::EGPtr eg_
const std::string dumpConfig_
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 generator_
virtual ~ThePEGInterface()
const unsigned int skipEvents_
const std::string dataLocation_
void setPEGRandomEngine(CLHEP::HepRandomEngine *)
boost::shared_ptr< ThePEG::RandomEngineGlue::Proxy > randomEngineGlueProxy_
static void clearAuxiliary(HepMC::GenEvent *hepmc, HepMC::PdfInfo *pdf)
static void fillAuxiliary(HepMC::GenEvent *hepmc, HepMC::PdfInfo *pdf, const ThePEG::EventPtr &event)