Main Page
Namespaces
Classes
Package Documentation
GeneratorInterface
Pythia6Interface
plugins
Pythia6Gun.h
Go to the documentation of this file.
1
#ifndef gen_Pythia6Gun_h
2
#define gen_Pythia6Gun_h
3
10
#include <string>
11
#include <vector>
12
13
//#include "HepPDT/defs.h"
14
//#include "HepPDT/TableBuilder.hh"
15
//#include "HepPDT/ParticleDataTable.hh"
16
17
#include "HepMC/GenEvent.h"
18
19
// #include "FWCore/Framework/interface/ESHandle.h"
20
#include "
FWCore/Framework/interface/EDProducer.h
"
21
22
#include "
GeneratorInterface/Pythia6Interface/interface/Pythia6Service.h
"
23
#include "
GeneratorInterface/Pythia6Interface/interface/Pythia6Declarations.h
"
24
25
#include "HepPID/ParticleIDTranslations.hh"
26
27
namespace
CLHEP
{
28
class
HepRandomEngine;
29
}
30
31
namespace
edm
{
32
class
EventSetup
;
33
class
LuminosityBlock
;
34
}
35
36
namespace
gen
37
{
38
39
// class Pythia6Service;
40
41
class
Pythia6Gun
:
public
edm::EDProducer
42
{
43
44
public
:
45
46
Pythia6Gun
(
const
edm::ParameterSet
& );
47
~
Pythia6Gun
()
override
;
48
void
beginJob
()
override
;
49
void
beginLuminosityBlock(
edm::LuminosityBlock
const
&,
edm::EventSetup
const
&)
override
;
50
void
beginRun(
edm::Run
const
&,
edm::EventSetup
const
& )
override
;
51
void
endRun
(
edm::Run
const
&,
edm::EventSetup
const
& )
override
;
52
void
produce(
edm::Event
&,
const
edm::EventSetup
& )
override
;
53
54
protected
:
55
56
void
attachPy6DecaysToGenEvent();
57
void
loadEvent(
edm::Event
& );
58
virtual
void
generateEvent(CLHEP::HepRandomEngine*) = 0;
59
HepMC::GenParticle
* addAntiParticle(
int
&,
int
&,
double
&,
double
&,
double
& );
60
61
Pythia6Service
*
fPy6Service
;
62
63
// gun particle(s) characteristics
64
//
65
std::vector<int>
fPartIDs
;
66
double
fMinPhi
;
67
double
fMaxPhi
;
68
69
// the event format itself
70
//
71
HepMC::GenEvent*
fEvt
;
72
73
// HepMC/HepPDT related things
74
// (for particle/event construction)
75
//
76
// edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ;
77
78
bool
fHepMCVerbosity
;
79
int
fPylistVerbosity
;
80
int
fMaxEventsToPrint
;
81
82
};
83
84
}
// end namespace
85
86
#endif
GenParticle.GenParticle
GenParticle
Definition:
GenParticle.py:18
Pythia6Service.h
edm::LuminosityBlock
Definition:
LuminosityBlock.h:47
gen::Pythia6Gun::fEvt
HepMC::GenEvent * fEvt
Definition:
Pythia6Gun.h:71
gen::Pythia6Gun::fHepMCVerbosity
bool fHepMCVerbosity
Definition:
Pythia6Gun.h:78
gen::Pythia6Gun::fPylistVerbosity
int fPylistVerbosity
Definition:
Pythia6Gun.h:79
LuminosityBlock
edm::EDProducer
Definition:
EDProducer.h:35
bk::beginJob
void beginJob()
Definition:
Breakpoints.cc:15
CLHEP
Definition:
CocoaGlobals.h:27
EventSetup
gen::Pythia6Gun::fMinPhi
double fMinPhi
Definition:
Pythia6Gun.h:66
gen::Pythia6Gun::fMaxEventsToPrint
int fMaxEventsToPrint
Definition:
Pythia6Gun.h:80
Pythia6Declarations.h
edm::EventSetup
Definition:
EventSetup.h:52
gen
Definition:
PythiaDecays.h:13
gen::Pythia6Gun
Definition:
Pythia6Gun.h:41
EDProducer.h
gen::Pythia6Gun::fMaxPhi
double fMaxPhi
Definition:
Pythia6Gun.h:67
edm
HLT enums.
Definition:
AlignableModifier.h:17
gen::Pythia6Gun::fPy6Service
Pythia6Service * fPy6Service
Definition:
Pythia6Gun.h:61
gen::Pythia6Service
Definition:
Pythia6Service.h:25
edm::ParameterSet
Definition:
ParameterSet.h:36
gen::Pythia6Gun::fPartIDs
std::vector< int > fPartIDs
Definition:
Pythia6Gun.h:65
edm::Event
Definition:
Event.h:70
Ecal2004TBTDCRanges_v1_cff.endRun
endRun
Definition:
Ecal2004TBTDCRanges_v1_cff.py:4
edm::Run
Definition:
Run.h:44
Generated for CMSSW Reference Manual by
1.8.11