47 double e,
double *
x) {
80 if ((std::abs(
pid()) == 1) || (std::abs(
pid()) == 2) || (std::abs(
pid()) == 3)) {
167 throw std::runtime_error(
168 "JetScapeParticleBase::p(int i) : i is out of bounds.");
175 return (std::sqrt(px() * px() + py() * py() + pz() * pz()));
182 throw std::runtime_error(
183 "JetScapeParticleBase::pl() : jet_v should never be space-like.");
194 return ((this->
e() + std::abs(this->
pl())) / std::sqrt(2));
225 output << p.
plabel() <<
" " << p.
pid() <<
" " << p.
pstat() <<
" ";
227 output << p.pt() <<
" " << (fabs(p.eta()) > 1
e-15 ? p.eta() : 0) <<
" "
228 << p.phi() <<
" " << p.e() <<
" ";
229 output << p.
x_in().
x() <<
" " << p.
x_in().
y() <<
" " << p.
x_in().
z() <<
" "
312 throw std::runtime_error(
"pid not accepted for Parton");
355 double t_parton = 0.0;
356 t_parton =
e() *
e() - px() * px() - py() * py() - pz() * pz() -
358 if (t_parton < 0.0) {
370 throw std::runtime_error(
371 "Trying to set virtuality on a normal parton. You almost certainly "
372 "don't want to do that. Please contact the developers if you do.");
381 newPl = newPl / velocityMod;
410 if (pShower !=
nullptr)
421 std::vector<Parton> ret;
428 ret.push_back(*
shower->GetParton(*parent));
494 JSWARN <<
"id = " <<
id <<
" is not recognized as a hadron! "
495 <<
"Add it as a new type of particle.";
534 :
Parton::
Parton(label, id, stat, pt, eta, phi, e, x) {}