GeneratorInterface
Pythia6Interface
plugins
Pythia6PartonGun.cc
Go to the documentation of this file.
1
2
#include <iostream>
3
4
#include "
Pythia6PartonGun.h
"
5
6
#include "
FWCore/Utilities/interface/Exception.h
"
7
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
10
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
11
12
using namespace
edm
;
13
using namespace
gen
;
14
15
Pythia6PartonGun::Pythia6PartonGun(
const
ParameterSet
&
pset
) :
Pythia6Gun
(
pset
) {
16
ParameterSet
pgun_params =
pset
.getParameter<
ParameterSet
>(
"PGunParameters"
);
17
fPartonID
= pgun_params.
getParameter
<
int
>(
"PartonID"
);
18
}
19
20
Pythia6PartonGun::~Pythia6PartonGun
() {}
21
22
void
Pythia6PartonGun::joinPartons
(
double
qmax) {
23
int
njoin = 2;
24
int
ijoin[] = {1, 2};
25
pyjoin_
(njoin, ijoin);
26
int
i1
= 1;
27
int
i2
= 2;
28
pyshow_
(
i1
,
i2
, qmax);
29
30
return
;
31
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
EventSetup.h
testProducerWithPsetDescEmpty_cfi.i2
i2
Definition:
testProducerWithPsetDescEmpty_cfi.py:46
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
gen::pyjoin_
void pyjoin_(int &njoin, int ijoin[])
ParameterSet.h
gen
Definition:
PythiaDecays.h:13
gen::Pythia6Gun
Definition:
Pythia6Gun.h:40
Exception.h
gen::Pythia6PartonGun::joinPartons
void joinPartons(double qmax)
Definition:
Pythia6PartonGun.cc:22
testProducerWithPsetDescEmpty_cfi.i1
i1
Definition:
testProducerWithPsetDescEmpty_cfi.py:45
edm
HLT enums.
Definition:
AlignableModifier.h:19
Pythia6PartonGun.h
edm::ParameterSet
Definition:
ParameterSet.h:47
gen::Pythia6PartonGun::~Pythia6PartonGun
~Pythia6PartonGun() override
Definition:
Pythia6PartonGun.cc:20
gen::pyshow_
void pyshow_(int &i1, int &i2, double &)
gen::Pythia6PartonGun::fPartonID
int fPartonID
Definition:
Pythia6PartonGun.h:29
Generated for CMSSW Reference Manual by
1.8.14