GeneratorInterface
Pythia8Interface
plugins
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
16
#include "
SimDataFormats/GeneratorProducts/interface/LesHouches.h
"
17
#include "
GeneratorInterface/LHEInterface/interface/LHERunInfo.h
"
18
#include "
GeneratorInterface/LHEInterface/interface/LHEEvent.h
"
19
20
class
LHAupLesHouches
:
public
Pythia8::LHAup {
21
public
:
22
LHAupLesHouches
() :
setScalesFromLHEF_
(
false
),
fEvAttributes
(nullptr) { ; }
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
30
void
setScalesFromLHEF
(
bool
b
) {
setScalesFromLHEF_
=
b
; }
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;
42
lhef::LHERunInfo
*
runInfo
;
43
//std::shared_ptr<lhef::LHEEvent> event;
44
lhef::LHEEvent
*
event
;
45
46
// Flag to set particle production scales or not.
47
bool
setScalesFromLHEF_
;
48
49
std::map<std::string, std::string>*
fEvAttributes
;
50
};
LHAupLesHouches::loadEvent
void loadEvent(lhef::LHEEvent *event)
Definition:
LHAupLesHouches.h:28
funct::false
false
Definition:
Factorize.h:29
LHAupLesHouches::runInfo
lhef::LHERunInfo * runInfo
Definition:
LHAupLesHouches.h:42
b
double b
Definition:
hdecay.h:118
LHAupLesHouches::setEvent
bool setEvent(int idProcIn) override
Definition:
LHAupLesHouches.cc:50
lhef::LHERunInfo
Definition:
LHERunInfo.h:25
LHAupLesHouches
Definition:
LHAupLesHouches.h:20
LHERunInfo.h
LHAupLesHouches::~LHAupLesHouches
~LHAupLesHouches() override
Definition:
LHAupLesHouches.h:32
lhef::LHEEvent
Definition:
LHEEvent.h:23
LesHouches.h
LHAupLesHouches::loadRunInfo
void loadRunInfo(lhef::LHERunInfo *runInfo)
Definition:
LHAupLesHouches.h:25
LHAupLesHouches::setScalesFromLHEF_
bool setScalesFromLHEF_
Definition:
LHAupLesHouches.h:47
LHEEvent.h
LHAupLesHouches::setInit
bool setInit() override
Definition:
LHAupLesHouches.cc:14
LHAupLesHouches::setScalesFromLHEF
void setScalesFromLHEF(bool b)
Definition:
LHAupLesHouches.h:30
event
Definition:
event.py:1
LHAupLesHouches::event
lhef::LHEEvent * event
Definition:
LHAupLesHouches.h:44
LHAupLesHouches::LHAupLesHouches
LHAupLesHouches()
Definition:
LHAupLesHouches.h:22
LHAupLesHouches::fEvAttributes
std::map< std::string, std::string > * fEvAttributes
Definition:
LHAupLesHouches.h:49
Generated for CMSSW Reference Manual by
1.8.16