ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigEFMissingET
TrigEFMissingET
METComponent.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/******************************************************************************
6
* @package Trigger/TrigAlgorithms/TrigEFMissingET
7
* @class METComponent
8
*
9
* @brief Helper class to build up MET values
10
* @author Jon Burr
11
*****************************************************************************/
12
13
#ifndef TRIGEFMISSINGET_METCOMPONENT_H
14
#define TRIGEFMISSINGET_METCOMPONENT_H
15
16
#include "
xAODTrigMissingET/TrigMissingET.h
"
17
#include "
TrigEFMissingET/SignedKinematics.h
"
18
#include <TLorentzVector.h>
19
#include <ostream>
20
21
namespace
HLT
{
namespace
MET
{
28
class
METComponent
{
29
public
:
30
METComponent
() {}
32
METComponent
(
const
xAOD::TrigMissingET
&
met
);
34
METComponent
(std::size_t idx,
const
xAOD::TrigMissingET
&
met
);
37
float
mpx
{0.};
39
float
mpy
{0.};
41
float
mpz
{0.};
43
float
met
()
const
;
45
float
magnitude
()
const
;
47
float
phi
()
const
;
49
float
eta
()
const
;
50
52
float
sumE
{0.};
54
float
sumEt
{0.};
56
int
status
{0};
57
59
friend
METComponent
operator+
(
const
METComponent
& lhs,
const
METComponent
& rhs);
61
METComponent
&
operator+=
(
const
METComponent
& other);
65
METComponent
&
operator+=
(
const
TLorentzVector& otherP4);
68
METComponent
&
operator+=
(
const
SignedKinematics
& kin);
69
71
void
fillMET
(
xAOD::TrigMissingET
&
met
)
const
;
73
void
fillMETComponent
(std::size_t idx,
xAOD::TrigMissingET
&
met
)
const
;
74
};
//> end class METComponent
75
76
std::ostream&
operator<<
(std::ostream& os,
const
METComponent& component);
77
78
} }
//> end namespace HLT::MET
79
#endif
//> !TRIGEFMISSINGET_METCOMPONENT_H
TrigMissingET.h
SignedKinematics.h
HLT::MET::METComponent
Helper struct to build up MET values before moving them into the EDM.
Definition
METComponent.h:28
HLT::MET::METComponent::mpx
float mpx
Momentum components x momentum.
Definition
METComponent.h:37
HLT::MET::METComponent::sumE
float sumE
Also store the sumE.
Definition
METComponent.h:52
HLT::MET::METComponent::mpz
float mpz
z momentum
Definition
METComponent.h:41
HLT::MET::METComponent::sumEt
float sumEt
And the sumEt.
Definition
METComponent.h:54
HLT::MET::METComponent::eta
float eta() const
The (pseudo) eta.
Definition
METComponent.cxx:42
HLT::MET::METComponent::mpy
float mpy
y momentum
Definition
METComponent.h:39
HLT::MET::METComponent::operator+
friend METComponent operator+(const METComponent &lhs, const METComponent &rhs)
Add two of these things together.
Definition
METComponent.cxx:48
HLT::MET::METComponent::operator+=
METComponent & operator+=(const METComponent &other)
Add one to us.
Definition
METComponent.cxx:57
HLT::MET::METComponent::status
int status
The status flag.
Definition
METComponent.h:56
HLT::MET::METComponent::phi
float phi() const
The direction.
Definition
METComponent.cxx:36
HLT::MET::METComponent::magnitude
float magnitude() const
The magnitude of the missing 3-vector.
Definition
METComponent.cxx:32
HLT::MET::METComponent::fillMETComponent
void fillMETComponent(std::size_t idx, xAOD::TrigMissingET &met) const
Fill a component of the MET with this.
Definition
METComponent.cxx:101
HLT::MET::METComponent::fillMET
void fillMET(xAOD::TrigMissingET &met) const
Fill the main component of the MET with this.
Definition
METComponent.cxx:91
HLT::MET::METComponent::met
float met() const
The actual met.
Definition
METComponent.cxx:28
HLT::MET::METComponent::METComponent
METComponent()
Definition
METComponent.h:30
HLT::MET::SignedKinematics
Class to describe the kinematics of an object that can have negative energies.
Definition
SignedKinematics.h:42
HLT::MET
Definition
METComponent.cxx:8
HLT::MET::operator<<
std::ostream & operator<<(std::ostream &os, const METComponent &component)
Definition
METComponent.cxx:112
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
met
Definition
IMETSignificance.h:24
xAOD::TrigMissingET
TrigMissingET_v1 TrigMissingET
Define the most recent version of the TrigMissingET class.
Definition
Event/xAOD/xAODTrigMissingET/xAODTrigMissingET/TrigMissingET.h:12
Generated on
for ATLAS Offline Software by
1.17.0