|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef PYTHIA8_USERHOOKS_USERHOOKSUTILS_H
6 #define PYTHIA8_USERHOOKS_USERHOOKSUTILS_H
7 #include "Pythia8/Event.h"
20 return leg.px()*comparison.px() +
leg.py()*comparison.py() +
leg.pz()*comparison.pz();
36 return leg.pAbs2() - (
proj*
proj) / comparison.pAbs2();
51 return std::sqrt(
pT2Leg(
leg, comparison));
59 return std::sqrt(
pT2Leg(legIndex, comparedIndex,
evt));
66 size_t emission =
evt.size() - 1;
82 if(emission == 0)
throw std::runtime_error(
"findLastISREmission:: Could not find ISR emission");
91 if(emission == 0)
throw std::runtime_error(
"findLastFSREmission:: Could not find FSR emission");
101 if(radiator == 0)
throw std::runtime_error(
"findLastISRRadiator:: Could not find ISR radiator");
111 return evt[emitted].mother1();
double pT2Leg(const Pythia8::Particle &leg, const Pythia8::Particle &comparison)
Particle_v1 Particle
Define the latest version of the particle class.
Some common functions for determining pTs and navigating event records for the PoWHEG + Pythia user h...
size_t findLastFSRRadiator(const Pythia8::Event &evt)
double pTProj(const Pythia8::Particle &leg, const Pythia8::Particle &comparison)
size_t findLastEmission(const Pythia8::Event &evt, int status)
Return the index of the most recent emission in a.
double pTLeg(const Pythia8::Particle &leg, const Pythia8::Particle &comparison)
size_t findLastISREmission(const Pythia8::Event &evt)
size_t findLastISRRadiator(const Pythia8::Event &evt)
size_t findLastFSREmission(const Pythia8::Event &evt)