CMS 3D CMS Logo

LHAupLesHouches.h
Go to the documentation of this file.
1 #include <algorithm>
2 #include <iostream>
3 #include <iterator>
4 #include <sstream>
5 #include <string>
6 #include <memory>
7 #include <cassert>
8 
9 #include "HepMC/GenEvent.h"
10 #include "HepMC/GenParticle.h"
11 
12 #include "Pythia8/Pythia.h"
13 #include "Pythia8/LesHouches.h"
14 //#include "Pythia8Plugins/HepMC2.h"
15 
19 
20 class LHAupLesHouches : public Pythia8::LHAup {
21 public:
23 
24  //void loadRunInfo(const std::shared_ptr<lhef::LHERunInfo> &runInfo)
25  void loadRunInfo(lhef::LHERunInfo* runInfo) { this->runInfo = runInfo; }
26 
27  //void loadEvent(const std::shared_ptr<lhef::LHEEvent> &event)
28  void loadEvent(lhef::LHEEvent* event) { this->event = event; }
29 
31 
32  ~LHAupLesHouches() override {
33  if (fEvAttributes)
34  delete fEvAttributes;
35  }
36 
37 private:
38  bool setInit() override;
39  bool setEvent(int idProcIn) override;
40 
41  //std::shared_ptr<lhef::LHERunInfo> runInfo;
43  //std::shared_ptr<lhef::LHEEvent> event;
45 
46  // Flag to set particle production scales or not.
48 
49  std::map<std::string, std::string>* fEvAttributes;
50 };
void setScalesFromLHEF(bool b)
lhef::LHEEvent * event
void loadRunInfo(lhef::LHERunInfo *runInfo)
double b
Definition: hdecay.h:118
bool setEvent(int idProcIn) override
lhef::LHERunInfo * runInfo
~LHAupLesHouches() override
bool setInit() override
std::map< std::string, std::string > * fEvAttributes
void loadEvent(lhef::LHEEvent *event)
Definition: event.py:1