Main Page
Namespaces
Classes
Package Documentation
GeneratorInterface
Pythia8Interface
interface
Py8GunBase.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
//
4
5
//
6
// This class is a "Hadronizer" template (see GeneratorInterface/Core)
7
//
8
9
#ifndef gen_Py8GunBase_h
10
#define gen_Py8GunBase_h
11
12
#include <memory>
13
#include <string>
14
#include <vector>
15
16
#include <boost/shared_ptr.hpp>
17
18
#include "
SimDataFormats/GeneratorProducts/interface/HepMCProduct.h
"
19
20
#include "
SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h
"
21
#include "
SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h
"
22
23
#include "
GeneratorInterface/Pythia8Interface/interface/Py8InterfaceBase.h
"
24
25
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
26
#include "
FWCore/Framework/interface/LuminosityBlock.h
"
27
28
#include <Pythia8/Pythia.h>
29
#include <Pythia8Plugins/HepMC2.h>
30
31
// foward declarations
32
namespace
edm
{
33
class
Event
;
34
}
35
36
namespace
CLHEP
{
37
class
HepRandomEngine;
38
}
39
40
namespace
gen
{
41
42
class
Py8GunBase
:
public
Py8InterfaceBase
{
43
public
:
44
Py8GunBase
(
edm::ParameterSet
const
& ps );
45
virtual
~Py8GunBase
() {}
46
47
virtual
bool
residualDecay();
// common func
48
bool
initializeForInternalPartons();
49
void
finalizeEvent();
50
void
statistics
();
51
52
void
setRandomEngine
(CLHEP::HepRandomEngine*
v
) { p8SetRandomEngine(v); }
53
std::vector<std::string>
const
&
sharedResources
()
const
{
return
p8SharedResources; }
54
void
evtGenDecay();
55
56
protected
:
57
// (some of) PGun parameters
58
//
59
std::vector<int>
fPartIDs
;
60
double
fMinPhi
;
61
double
fMaxPhi
;
62
63
private
:
64
static
const
std::vector<std::string>
p8SharedResources
;
65
};
66
67
}
// namespace gen
68
69
#endif // gen_BaseHadronizer_h
gen::Py8GunBase::sharedResources
std::vector< std::string > const & sharedResources() const
Definition:
Py8GunBase.h:53
Py8InterfaceBase.h
GenRunInfoProduct.h
gen::Py8GunBase::fMinPhi
double fMinPhi
Definition:
Py8GunBase.h:60
gen::Py8InterfaceBase
Definition:
Py8InterfaceBase.h:24
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
ParameterSet.h
CLHEP
Definition:
CocoaGlobals.h:27
gen::Py8GunBase
Definition:
Py8GunBase.h:42
gen::Py8GunBase::p8SharedResources
static const std::vector< std::string > p8SharedResources
Definition:
Py8GunBase.h:64
gen
Definition:
PythiaDecays.h:13
gen::Py8GunBase::fPartIDs
std::vector< int > fPartIDs
Definition:
Py8GunBase.h:59
HepMCProduct.h
myMessageLogger_cff.statistics
statistics
Definition:
myMessageLogger_cff.py:9
gen::Py8GunBase::~Py8GunBase
virtual ~Py8GunBase()
Definition:
Py8GunBase.h:45
Event
gen::Py8GunBase::fMaxPhi
double fMaxPhi
Definition:
Py8GunBase.h:61
LuminosityBlock.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
gen::Py8GunBase::setRandomEngine
void setRandomEngine(CLHEP::HepRandomEngine *v)
Definition:
Py8GunBase.h:52
edm::ParameterSet
Definition:
ParameterSet.h:36
GenEventInfoProduct.h
Generated for CMSSW Reference Manual by
1.8.11