47 double the = 2. * atan(
exp(-eta));
53 double pt = pp *
sin(the);
54 double ee =
sqrt(pp * pp + mass * mass);
55 double px = pt *
cos(phi);
56 double py = pt *
sin(phi);
57 double pz = pp *
cos(the);
59 if (!((
fMasterGen->particleData).isParticle(particleID))) {
65 (
fMasterGen->event).append(21, 23, 101, 102, px, py, pz, ee, mass);
81 (
fMasterGen->event).
append(-particleID, 23, 0, 101, -px, -py, -pz, ee, mass);
82 }
else if (
std::abs(particleID) == 21) {
85 if ((
fMasterGen->particleData).isParticle(-particleID)) {
102 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)
edm::GeneratorFilter< gen::Py8PtotGun, gen::ExternalDecayDriver > Pythia8PtotGun
Exp< T >::type exp(const T &t)
bool generatePartonsAndHadronize() 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
Py8PtotGun(edm::ParameterSet const &)
P8RndmEngine & randomEngine()
T getParameter(std::string const &) const
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
tuple size
Write out results.
const char * classname() const override