ATLAS Offline Software
Loading...
Searching...
No Matches
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
18#include <TLorentzVector.h>
19#include <ostream>
20
21namespace HLT { namespace MET {
29 public:
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);
65 METComponent& operator+=(const TLorentzVector& otherP4);
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
Helper struct to build up MET values before moving them into the EDM.
float mpx
Momentum components x momentum.
float sumE
Also store the sumE.
float mpz
z momentum
float sumEt
And the sumEt.
float eta() const
The (pseudo) eta.
float mpy
y momentum
friend METComponent operator+(const METComponent &lhs, const METComponent &rhs)
Add two of these things together.
METComponent & operator+=(const METComponent &other)
Add one to us.
int status
The status flag.
float phi() const
The direction.
float magnitude() const
The magnitude of the missing 3-vector.
void fillMETComponent(std::size_t idx, xAOD::TrigMissingET &met) const
Fill a component of the MET with this.
void fillMET(xAOD::TrigMissingET &met) const
Fill the main component of the MET with this.
float met() const
The actual met.
Class to describe the kinematics of an object that can have negative energies.
std::ostream & operator<<(std::ostream &os, const METComponent &component)
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
TrigMissingET_v1 TrigMissingET
Define the most recent version of the TrigMissingET class.