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
}
// namespace edm
35
36
namespace
gen
{
37
38
// class Pythia6Service;
39
40
class
Pythia6Gun
:
public
edm::EDProducer
{
41
public
:
42
Pythia6Gun
(
const
edm::ParameterSet
&);
43
~
Pythia6Gun
()
override
;
44
void
beginJob
()
override
;
45
void
beginLuminosityBlock(
edm::LuminosityBlock
const
&,
edm::EventSetup
const
&)
override
;
46
void
beginRun(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
47
void
endRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
48
void
produce(
edm::Event
&,
const
edm::EventSetup
&)
override
;
49
50
protected
:
51
void
attachPy6DecaysToGenEvent();
52
void
loadEvent(
edm::Event
&);
53
virtual
void
generateEvent(CLHEP::HepRandomEngine*) = 0;
54
HepMC::GenParticle
* addAntiParticle(
int
&,
int
&,
double
&,
double
&,
double
&);
55
56
Pythia6Service
*
fPy6Service
;
57
58
// gun particle(s) characteristics
59
//
60
std::vector<int>
fPartIDs
;
61
double
fMinPhi
;
62
double
fMaxPhi
;
63
64
// the event format itself
65
//
66
HepMC::GenEvent
*
fEvt
;
67
68
// HepMC/HepPDT related things
69
// (for particle/event construction)
70
//
71
// edm::ESHandle<HepPDT::ParticleDataTable> fPDGTable ;
72
73
bool
fHepMCVerbosity
;
74
int
fPylistVerbosity
;
75
int
fMaxEventsToPrint
;
76
};
77
78
}
// namespace gen
79
80
#endif
GenParticle.GenParticle
GenParticle
Definition:
GenParticle.py:18
Pythia6Service.h
edm::LuminosityBlock
Definition:
LuminosityBlock.h:49
gen::Pythia6Gun::fEvt
HepMC::GenEvent * fEvt
Definition:
Pythia6Gun.h:66
gen::Pythia6Gun::fHepMCVerbosity
bool fHepMCVerbosity
Definition:
Pythia6Gun.h:73
gen::Pythia6Gun::fPylistVerbosity
int fPylistVerbosity
Definition:
Pythia6Gun.h:74
LuminosityBlock
edm::EDProducer
Definition:
EDProducer.h:36
bk::beginJob
void beginJob()
Definition:
Breakpoints.cc:14
CLHEP
Definition:
CocoaGlobals.h:27
EventSetup
HepMC::GenEvent
Definition:
hepmc_rootio.cc:9
gen::Pythia6Gun::fMinPhi
double fMinPhi
Definition:
Pythia6Gun.h:61
gen::Pythia6Gun::fMaxEventsToPrint
int fMaxEventsToPrint
Definition:
Pythia6Gun.h:75
Pythia6Declarations.h
edm::EventSetup
Definition:
EventSetup.h:57
gen
Definition:
PythiaDecays.h:13
gen::Pythia6Gun
Definition:
Pythia6Gun.h:40
EDProducer.h
gen::Pythia6Gun::fMaxPhi
double fMaxPhi
Definition:
Pythia6Gun.h:62
edm
HLT enums.
Definition:
AlignableModifier.h:19
gen::Pythia6Gun::fPy6Service
Pythia6Service * fPy6Service
Definition:
Pythia6Gun.h:56
gen::Pythia6Service
Definition:
Pythia6Service.h:24
edm::ParameterSet
Definition:
ParameterSet.h:36
gen::Pythia6Gun::fPartIDs
std::vector< int > fPartIDs
Definition:
Pythia6Gun.h:60
edm::Event
Definition:
Event.h:72
Ecal2004TBTDCRanges_v1_cff.endRun
endRun
Definition:
Ecal2004TBTDCRanges_v1_cff.py:4
edm::Run
Definition:
Run.h:45
Generated for CMSSW Reference Manual by
1.8.11