![]() |
ATLAS Offline Software
|
Helper struct to build up MET values before moving them into the EDM. More...
#include <METComponent.h>
Public Member Functions | |
| METComponent () | |
| METComponent (const xAOD::TrigMissingET &met) | |
| Initialize from an xAOD::TrigMissingET object. More... | |
| METComponent (std::size_t idx, const xAOD::TrigMissingET &met) | |
| Initialize from a component of an xAOD::TrigMissingET object. More... | |
| float | met () const |
| The actual met. More... | |
| float | magnitude () const |
| The magnitude of the missing 3-vector. More... | |
| float | phi () const |
| The direction. More... | |
| float | eta () const |
| The (pseudo) eta. More... | |
| METComponent & | operator+= (const METComponent &other) |
| Add one to us. More... | |
| METComponent & | operator+= (const TLorentzVector &otherP4) |
| Add a four momentum. More... | |
| METComponent & | operator+= (const SignedKinematics &kin) |
| Add a signed object. More... | |
| void | fillMET (xAOD::TrigMissingET &met) const |
| Fill the main component of the MET with this. More... | |
| void | fillMETComponent (std::size_t idx, xAOD::TrigMissingET &met) const |
| Fill a component of the MET with this. More... | |
Public Attributes | |
| float | mpx {0.} |
| Momentum components x momentum. More... | |
| float | mpy {0.} |
| y momentum More... | |
| float | mpz {0.} |
| z momentum More... | |
| float | sumE {0.} |
| Also store the sumE. More... | |
| float | sumEt {0.} |
| And the sumEt. More... | |
| int | status {0} |
| The status flag. More... | |
Friends | |
| METComponent | operator+ (const METComponent &lhs, const METComponent &rhs) |
| Add two of these things together. More... | |
Helper struct to build up MET values before moving them into the EDM.
The reason for doing this is that the EDM doesn't allow += operators etc which makes interacting with it rather painful and (maybe?) slow.
Definition at line 40 of file METComponent.h.
|
inline |
Definition at line 48 of file METComponent.h.
| HLT::MET::METComponent::METComponent | ( | const xAOD::TrigMissingET & | met | ) |
| HLT::MET::METComponent::METComponent | ( | std::size_t | idx, |
| const xAOD::TrigMissingET & | met | ||
| ) |
Initialize from a component of an xAOD::TrigMissingET object.
Definition at line 18 of file METComponent.cxx.
| float HLT::MET::METComponent::eta | ( | ) | const |
The (pseudo) eta.
Definition at line 42 of file METComponent.cxx.
| void HLT::MET::METComponent::fillMET | ( | xAOD::TrigMissingET & | met | ) | const |
| void HLT::MET::METComponent::fillMETComponent | ( | std::size_t | idx, |
| xAOD::TrigMissingET & | met | ||
| ) | const |
Fill a component of the MET with this.
Definition at line 101 of file METComponent.cxx.
| float HLT::MET::METComponent::magnitude | ( | ) | const |
| float HLT::MET::METComponent::met | ( | ) | const |
| METComponent & HLT::MET::METComponent::operator+= | ( | const METComponent & | other | ) |
| METComponent & HLT::MET::METComponent::operator+= | ( | const SignedKinematics & | kin | ) |
| METComponent & HLT::MET::METComponent::operator+= | ( | const TLorentzVector & | otherP4 | ) |
Add a four momentum.
Use the convention used in xAOD::MissingET where adding particle subtracts its four momentum. So 'adding' a particle to the MET works as you'd expect.
Definition at line 69 of file METComponent.cxx.
| float HLT::MET::METComponent::phi | ( | ) | const |
|
friend |
Add two of these things together.
Definition at line 48 of file METComponent.cxx.
| float HLT::MET::METComponent::mpx {0.} |
Momentum components x momentum.
Definition at line 55 of file METComponent.h.
| float HLT::MET::METComponent::mpy {0.} |
y momentum
Definition at line 57 of file METComponent.h.
| float HLT::MET::METComponent::mpz {0.} |
z momentum
Definition at line 59 of file METComponent.h.
| int HLT::MET::METComponent::status {0} |
The status flag.
Definition at line 74 of file METComponent.h.
| float HLT::MET::METComponent::sumE {0.} |
Also store the sumE.
Definition at line 70 of file METComponent.h.
| float HLT::MET::METComponent::sumEt {0.} |
And the sumEt.
Definition at line 72 of file METComponent.h.
1.8.18