47 double the = 2. * atan(
exp(-eta));
53 double pp = pt /
sin(the);
54 double ee =
sqrt(pp * pp + mass * mass);
56 double px = pt *
cos(phi);
57 double py = pt *
sin(phi);
58 double pz = pp *
cos(the);
60 if (!((
fMasterGen->particleData).isParticle(particleID))) {
66 (
fMasterGen->event).append(21, 23, 101, 102, px, py, pz, ee, mass);
82 (
fMasterGen->event).
append(-particleID, 23, 0, 101, -px, -py, -pz, ee, mass);
83 }
else if (
std::abs(particleID) == 21) {
86 if ((
fMasterGen->particleData).isParticle(-particleID)) {
103 event() = std::make_unique<HepMC::GenEvent>();
edm::GeneratorFilter< gen::Py8PtGun, gen::ExternalDecayDriver > Pythia8PtGun
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)
const char * classname() const override
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
std::unique_ptr< HepMC::GenEvent > & event()
std::vector< int > fPartIDs
P8RndmEngine & randomEngine()
T getParameter(std::string const &) const
bool generatePartonsAndHadronize() override
Py8PtGun(edm::ParameterSet const &)
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
tuple size
Write out results.