ATLAS Offline Software
SignedKinematics.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 /******************************************************************************
6  * @package Trigger/TrigAlgorithms/TrigEFMissingET
7  *
8  * @brief Helper class to describe the kinematics of an object that can have
9  * negative energies.
10  * @author Jon Burr
11  *****************************************************************************/
12 
13 #ifndef TRIGEFMISSINGET_SIGNEDKINEMATICS_H
14 #define TRIGEFMISSINGET_SIGNEDKINEMATICS_H
15 
16 #include "Math/Vector4D.h"
17 
18 // Forward declares
19 class TLorentzVector;
20 
21 namespace xAOD {
22  class IParticle;
23 }
24 
25 namespace HLT { namespace MET {
26 
43  public:
46  SignedKinematics(double px, double py, double pz, double energy);
48  SignedKinematics(const TLorentzVector& tlv);
53  double energy, double eta, double phi);
56  double energy, double eta, double phi, double mass);
59  double et, double eta, double phi);
62  double et, double eta, double phi, double mass);
63 
65  int sign() const;
66 
68  double eta() const;
69  double phi() const;
71  double sinPhi() const;
72  double cosPhi() const;
74  double sinhEta() const;
75  double coshEta() const;
76 
79  double p() const;
81  double absP() const;
82  double p2() const;
84  double pt() const;
86  double absPt() const;
87  double pt2() const;
88  double px() const;
89  double py() const;
90  double pz() const;
91 
94  double energy() const;
96  double absEnergy() const;
97  double energy2() const;
99  double et() const;
101  double absEt() const;
102  double et2() const;
103  double ex() const;
104  double ey() const;
105  double ez() const;
106 
108  double m2() const;
109 
110  explicit operator ROOT::Math::PxPyPzEVector() const;
111 
117  private:
119  ROOT::Math::PxPyPzEVector m_p4;
120  }; //> end class SignedKinematics
125 
126 } } //> end namespace HLT::MET
127 #endif //> !TRIGEFMISSINGET_SIGNEDKINEMATICS_H
HLT::MET::SignedKinematics::cosPhi
double cosPhi() const
Definition: SignedKinematics.cxx:79
HLT::MET::SignedKinematics::px
double px() const
Definition: SignedKinematics.cxx:121
et
Extra patterns decribing particle interation process.
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
HLT::MET::SignedKinematics::sinPhi
double sinPhi() const
Provide accessors for sin and cos phi.
Definition: SignedKinematics.cxx:73
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
HLT::MET::SignedKinematics::coshEta
double coshEta() const
Definition: SignedKinematics.cxx:92
HLT::MET::SignedKinematics::pt
double pt() const
(signed) pt
Definition: SignedKinematics.cxx:112
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:40
HLT::MET::SignedKinematics::m2
double m2() const
The squared mass. There is no guarantee that this will be > 0.
Definition: SignedKinematics.cxx:159
dqt_zlumi_pandas.mass
mass
Definition: dqt_zlumi_pandas.py:170
HLT::MET::SignedKinematics::fromEtEtaPhiM
static SignedKinematics fromEtEtaPhiM(double et, double eta, double phi, double mass)
Factory function to construct from et eta, phi and m.
Definition: SignedKinematics.cxx:52
HLT::MET::SignedKinematics::absPt
double absPt() const
unsigned pt
Definition: SignedKinematics.cxx:115
HLT::MET::SignedKinematics::absP
double absP() const
unsigned momentum
Definition: SignedKinematics.cxx:106
HLT::MET::SignedKinematics::et2
double et2() const
Definition: SignedKinematics.cxx:146
HLT::MET::SignedKinematics
Class to describe the kinematics of an object that can have negative energies.
Definition: SignedKinematics.h:42
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
HLT::MET::SignedKinematics::m_p4
ROOT::Math::PxPyPzEVector m_p4
The actual kinematics.
Definition: SignedKinematics.h:119
HLT::MET::SignedKinematics::sign
int sign() const
The sign of the kinematics.
Definition: SignedKinematics.cxx:58
TCS::MET
@ MET
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:16
HLT::MET::SignedKinematics::operator+=
SignedKinematics & operator+=(const SignedKinematics &other)
Add another SignedKinematics to this.
Definition: SignedKinematics.cxx:167
HLT::MET::SignedKinematics::absEt
double absEt() const
Unsigned et.
Definition: SignedKinematics.cxx:143
HLT::MET::SignedKinematics::fromEnergyEtaPhi
static SignedKinematics fromEnergyEtaPhi(double energy, double eta, double phi)
Factory function to construct from energy, eta, phi (massless)
Definition: SignedKinematics.cxx:26
HLT::MET::SignedKinematics::sinhEta
double sinhEta() const
Provide accessors for sinh and cosh eta.
Definition: SignedKinematics.cxx:86
HLT::MET::SignedKinematics::ex
double ex() const
Definition: SignedKinematics.cxx:149
HLT::MET::SignedKinematics::et
double et() const
(signed) et
Definition: SignedKinematics.cxx:140
HLT::MET::SignedKinematics::operator-=
SignedKinematics & operator-=(const SignedKinematics &other)
Subtract a SignedKinematics from this (exact opposite of the above function.
Definition: SignedKinematics.cxx:175
HLT::MET::SignedKinematics::p
double p() const
Momentum values (signed) momentum.
Definition: SignedKinematics.cxx:103
HLT::MET::SignedKinematics::ey
double ey() const
Definition: SignedKinematics.cxx:152
HLT::MET::SignedKinematics::absEnergy
double absEnergy() const
unsigned energy
Definition: SignedKinematics.cxx:134
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
HLT::MET::SignedKinematics::fromEnergyEtaPhiM
static SignedKinematics fromEnergyEtaPhiM(double energy, double eta, double phi, double mass)
Factory function to construct from energy eta, phi and m.
Definition: SignedKinematics.cxx:32
HLT::MET::SignedKinematics::pt2
double pt2() const
Definition: SignedKinematics.cxx:118
HLT::MET::operator-
PufitGrid operator-(const PufitGrid &lhs, const PufitGrid &rhs)
Elementwise subtraction.
Definition: PufitGrid.cxx:250
HLT::MET::SignedKinematics::phi
double phi() const
Definition: SignedKinematics.cxx:66
HLT::MET::SignedKinematics::energy
double energy() const
Energy values (signed) energy.
Definition: SignedKinematics.cxx:131
HLT::MET::SignedKinematics::fromEtEtaPhi
static SignedKinematics fromEtEtaPhi(double et, double eta, double phi)
Factory function to construct from et, eta, phi (massless)
Definition: SignedKinematics.cxx:46
HLT::MET::SignedKinematics::pz
double pz() const
Definition: SignedKinematics.cxx:127
HLT::MET::SignedKinematics::SignedKinematics
SignedKinematics()
Definition: SignedKinematics.cxx:11
HLT::MET::SignedKinematics::p2
double p2() const
Definition: SignedKinematics.cxx:109
IParticle
Definition: Event/EventKernel/EventKernel/IParticle.h:43
HLT::MET::SignedKinematics::ez
double ez() const
Definition: SignedKinematics.cxx:155
HLT::MET::SignedKinematics::energy2
double energy2() const
Definition: SignedKinematics.cxx:137
HLT::MET::operator+
METComponent operator+(const METComponent &lhs, const METComponent &rhs)
Definition: METComponent.cxx:48
HLT::MET::SignedKinematics::eta
double eta() const
Direction.
Definition: SignedKinematics.cxx:62
HLT::MET::SignedKinematics::py
double py() const
Definition: SignedKinematics.cxx:124