ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigEFMissingET
TrigEFMissingET
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
42
class
SignedKinematics
{
43
public
:
44
SignedKinematics
();
46
SignedKinematics
(
double
px
,
double
py
,
double
pz
,
double
energy
);
48
SignedKinematics
(
const
TLorentzVector& tlv);
50
SignedKinematics
(
const
xAOD::IParticle
& particle);
52
static
SignedKinematics
fromEnergyEtaPhi
(
53
double
energy
,
double
eta
,
double
phi
);
55
static
SignedKinematics
fromEnergyEtaPhiM
(
56
double
energy
,
double
eta
,
double
phi
,
double
mass);
58
static
SignedKinematics
fromEtEtaPhi
(
59
double
et
,
double
eta
,
double
phi
);
61
static
SignedKinematics
fromEtEtaPhiM
(
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
113
SignedKinematics
&
operator+=
(
const
SignedKinematics
& other);
116
SignedKinematics
&
operator-=
(
const
SignedKinematics
& other);
117
private
:
119
ROOT::Math::PxPyPzEVector
m_p4
;
120
};
//> end class SignedKinematics
121
122
SignedKinematics
operator+
(
const
SignedKinematics
& lhs,
const
SignedKinematics
& rhs);
124
SignedKinematics
operator-
(
const
SignedKinematics
& lhs,
const
SignedKinematics
& rhs);
125
126
} }
//> end namespace HLT::MET
127
#endif
//> !TRIGEFMISSINGET_SIGNEDKINEMATICS_H
HLT::MET::SignedKinematics
Class to describe the kinematics of an object that can have negative energies.
Definition
SignedKinematics.h:42
HLT::MET::SignedKinematics::pz
double pz() const
Definition
SignedKinematics.cxx:127
HLT::MET::SignedKinematics::coshEta
double coshEta() const
Definition
SignedKinematics.cxx:92
HLT::MET::SignedKinematics::et
double et() const
(signed) et
Definition
SignedKinematics.cxx:140
HLT::MET::SignedKinematics::ez
double ez() const
Definition
SignedKinematics.cxx:155
HLT::MET::SignedKinematics::p2
double p2() const
Definition
SignedKinematics.cxx:109
HLT::MET::SignedKinematics::et2
double et2() const
Definition
SignedKinematics.cxx:146
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::px
double px() const
Definition
SignedKinematics.cxx:121
HLT::MET::SignedKinematics::energy2
double energy2() const
Definition
SignedKinematics.cxx:137
HLT::MET::SignedKinematics::py
double py() const
Definition
SignedKinematics.cxx:124
HLT::MET::SignedKinematics::sinPhi
double sinPhi() const
Provide accessors for sin and cos phi.
Definition
SignedKinematics.cxx:73
HLT::MET::SignedKinematics::eta
double eta() const
Direction.
Definition
SignedKinematics.cxx:62
HLT::MET::SignedKinematics::sinhEta
double sinhEta() const
Provide accessors for sinh and cosh eta.
Definition
SignedKinematics.cxx:86
HLT::MET::SignedKinematics::operator+=
SignedKinematics & operator+=(const SignedKinematics &other)
Add another SignedKinematics to this.
Definition
SignedKinematics.cxx:167
HLT::MET::SignedKinematics::m2
double m2() const
The squared mass. There is no guarantee that this will be > 0.
Definition
SignedKinematics.cxx:159
HLT::MET::SignedKinematics::absP
double absP() const
unsigned momentum
Definition
SignedKinematics.cxx:106
HLT::MET::SignedKinematics::ex
double ex() const
Definition
SignedKinematics.cxx:149
HLT::MET::SignedKinematics::p
double p() const
Momentum values (signed) momentum.
Definition
SignedKinematics.cxx:103
HLT::MET::SignedKinematics::absPt
double absPt() const
unsigned pt
Definition
SignedKinematics.cxx:115
HLT::MET::SignedKinematics::ey
double ey() const
Definition
SignedKinematics.cxx:152
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::SignedKinematics
SignedKinematics()
Definition
SignedKinematics.cxx:11
HLT::MET::SignedKinematics::absEnergy
double absEnergy() const
unsigned energy
Definition
SignedKinematics.cxx:134
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::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::cosPhi
double cosPhi() const
Definition
SignedKinematics.cxx:79
HLT::MET::SignedKinematics::energy
double energy() const
Energy values (signed) energy.
Definition
SignedKinematics.cxx:131
HLT::MET::SignedKinematics::absEt
double absEt() const
Unsigned et.
Definition
SignedKinematics.cxx:143
HLT::MET::SignedKinematics::m_p4
ROOT::Math::PxPyPzEVector m_p4
The actual kinematics.
Definition
SignedKinematics.h:119
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::SignedKinematics::sign
int sign() const
The sign of the kinematics.
Definition
SignedKinematics.cxx:58
HLT::MET::SignedKinematics::pt
double pt() const
(signed) pt
Definition
SignedKinematics.cxx:112
HLT::MET::SignedKinematics::phi
double phi() const
Definition
SignedKinematics.cxx:66
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
HLT::MET
Definition
METComponent.cxx:8
HLT::MET::operator+
METComponent operator+(const METComponent &lhs, const METComponent &rhs)
Definition
METComponent.cxx:48
HLT::MET::operator-
PufitGrid operator-(const PufitGrid &lhs, const PufitGrid &rhs)
Elementwise subtraction.
Definition
PufitGrid.cxx:250
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
Generated on
for ATLAS Offline Software by
1.17.0