48 (
fMasterGen->event).
append(990, -11, 0, 0, 2, 1 + NTotParticles, 0, 0, 0., 0., 0., 15000., 15000.);
55 throw cms::Exception(
"PythiaError") <<
"Attempting to generate quarks or gluons without setting "
56 "AddAntiParticle to true. This will not handle color properly."
63 double the = 2. * atan(
exp(-eta));
67 double pp =
sqrt(ee * ee - mass * mass);
68 double px = pp *
sin(the) *
cos(phi);
69 double py = pp *
sin(the) *
sin(phi);
70 double pz = pp *
cos(the);
72 if (!((
fMasterGen->particleData).isParticle(particleID))) {
73 particleID = std::fabs(particleID);
76 (
fMasterGen->event).
append(particleID, 23, 1, 0, 0, 0, colorindex, 0, px, py, pz, ee, mass);
79 }
else if (
std::abs(particleID) == 21) {
80 (
fMasterGen->event).
append(21, 23, 1, 0, 0, 0, colorindex, colorindex + 1, px, py, pz, ee, mass);
87 (
fMasterGen->event).
append(particleID, 1, 1, 0, 0, 0, 0, 0, px, py, pz, ee, mass);
100 (
fMasterGen->event).
append(-particleID, 23, 1, 0, 0, 0, 0, colorindex, -px, -py, -pz, ee, mass);
102 }
else if (
std::abs(particleID) == 21) {
103 (
fMasterGen->event).
append(21, 23, 1, 0, 0, 0, colorindex + 1, colorindex, -px, -py, -pz, ee, mass);
106 if ((
fMasterGen->particleData).isParticle(-particleID)) {
107 (
fMasterGen->event).
append(-particleID, 1, 1, 0, 0, 0, 0, 0, -px, -py, -pz, ee, mass);
109 (
fMasterGen->event).
append(particleID, 1, 1, 0, 0, 0, 0, 0, -px, -py, -pz, ee, mass);
123 event() = std::make_unique<HepMC::GenEvent>();
static std::vector< std::string > checklist log
#define DEFINE_FWK_MODULE(type)
boost::dynamic_bitset append(const boost::dynamic_bitset<> &bs1, const boost::dynamic_bitset<> &bs2)
this method takes two bitsets bs1 and bs2 and returns result of bs2 appended to the end of bs1 ...
Sin< T >::type sin(const T &t)
Exp< T >::type exp(const T &t)
bool generatePartonsAndHadronize() override
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
edm::GeneratorFilter< gen::Py8EGun, gen::ExternalDecayDriver > Pythia8EGun
std::unique_ptr< HepMC::GenEvent > & event()
std::vector< int > fPartIDs
const char * classname() const override
P8RndmEngine & randomEngine()
T getParameter(std::string const &) const
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
tuple size
Write out results.
Py8EGun(edm::ParameterSet const &)