ATLAS Offline Software
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 
21 namespace HLT { namespace MET {
28  class METComponent {
29  public:
30  METComponent() {}
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
TrigMissingET.h
HLT::MET::METComponent::mpx
float mpx
Momentum components x momentum.
Definition: METComponent.h:55
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::sumEt
float sumEt
And the sumEt.
Definition: METComponent.h:72
HLT::MET::operator<<
std::ostream & operator<<(std::ostream &os, const METComponent &component)
Definition: METComponent.cxx:112
HLT::MET::METComponent::status
int status
The status flag.
Definition: METComponent.h:74
SignedKinematics.h
HLT::MET::METComponent::sumE
float sumE
Also store the sumE.
Definition: METComponent.h:70
met
Definition: IMETSignificance.h:24
HLT::MET::METComponent::magnitude
float magnitude() const
The magnitude of the missing 3-vector.
Definition: METComponent.cxx:32
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
TCS::MET
@ MET
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:16
HLT::MET::METComponent::operator+=
METComponent & operator+=(const METComponent &other)
Add one to us.
Definition: METComponent.cxx:57
HLT::MET::METComponent::METComponent
METComponent()
Definition: METComponent.h:48
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::phi
float phi() const
The direction.
Definition: METComponent.cxx:36
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
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
HLT::MET::METComponent::mpy
float mpy
y momentum
Definition: METComponent.h:57
HLT::MET::METComponent
Helper struct to build up MET values before moving them into the EDM.
Definition: METComponent.h:40
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
HLT::MET::METComponent::met
float met() const
The actual met.
Definition: METComponent.cxx:28
xAOD::TrigMissingET_v1
Class holding the Missing ET trigger fex results.
Definition: TrigMissingET_v1.h:32
HLT::MET::METComponent::eta
float eta() const
The (pseudo) eta.
Definition: METComponent.cxx:42
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
HLT::MET::METComponent::mpz
float mpz
z momentum
Definition: METComponent.h:59