|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include <TLorentzVector.h>
10 namespace HLT {
namespace MET {
18 m_p4(tlv.Px(), tlv.Py(), tlv.Pz(), tlv.
E() )
27 double energy,
double eta,
double phi)
33 double energy,
double eta,
double phi,
double mass)
37 int sgn = (
p > 0) - (
p < 0);
40 double pt =
p/std::cosh(
eta);
47 double et,
double eta,
double phi)
53 double et,
double eta,
double phi,
double mass)
70 return TVector2::Phi_0_2pi(
val);
77 return (thePt == 0 ? 0 :
py() / thePt );
83 return (thePt == 0 ? 1 :
px() / thePt );
90 return (thePt == 0 ? 0 :
pz() / thePt );
93 double thePt2 =
pt2();
100 return sqrt(1 +
pz()*
pz() / thePt2);
163 SignedKinematics::operator ROOT::Math::PxPyPzEVector()
const {
Extra patterns decribing particle interation process.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
double sinPhi() const
Provide accessors for sin and cos phi.
double pt() const
(signed) pt
Class providing the definition of the 4-vector interface.
double m2() const
The squared mass. There is no guarantee that this will be > 0.
static SignedKinematics fromEtEtaPhiM(double et, double eta, double phi, double mass)
Factory function to construct from et eta, phi and m.
double absPt() const
unsigned pt
double absP() const
unsigned momentum
Class to describe the kinematics of an object that can have negative energies.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
ROOT::Math::PxPyPzEVector m_p4
The actual kinematics.
int sign() const
The sign of the kinematics.
SignedKinematics & operator+=(const SignedKinematics &other)
Add another SignedKinematics to this.
double absEt() const
Unsigned et.
static SignedKinematics fromEnergyEtaPhi(double energy, double eta, double phi)
Factory function to construct from energy, eta, phi (massless)
double sinhEta() const
Provide accessors for sinh and cosh eta.
double et() const
(signed) et
SignedKinematics & operator-=(const SignedKinematics &other)
Subtract a SignedKinematics from this (exact opposite of the above function.
double p() const
Momentum values (signed) momentum.
double absEnergy() const
unsigned energy
static SignedKinematics fromEnergyEtaPhiM(double energy, double eta, double phi, double mass)
Factory function to construct from energy eta, phi and m.
PufitGrid operator-(const PufitGrid &lhs, const PufitGrid &rhs)
Elementwise subtraction.
double energy() const
Energy values (signed) energy.
static SignedKinematics fromEtEtaPhi(double et, double eta, double phi)
Factory function to construct from et, eta, phi (massless)
METComponent operator+(const METComponent &lhs, const METComponent &rhs)
double eta() const
Direction.