20 mpx(
met.exComponent(idx) ),
21 mpy(
met.eyComponent(idx) ),
22 mpz(
met.ezComponent(idx) ),
39 return std::atan2(
mpy,
mpx);
45 return std::asinh(
mpz/
met() );
70 const TLorentzVector& otherP4)
76 sumEt += otherP4.Pt();
104 met.setExComponent(ii,
mpx);
105 met.setEyComponent(ii,
mpy);
106 met.setEzComponent(ii,
mpy);
107 met.setSumEComponent(ii,
sumE);
114 os <<
"(mpx, mpy, mpz, met, sumEt, sumE) = ("
115 << component.
mpx <<
", "
116 << component.
mpy <<
", "
117 << component.
mpz <<
", "
118 << component.
met() <<
", "
119 << component.
sumEt <<
", "
120 << component.
sumE <<
") [MeV]";
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 sumEt
And the sumEt.
float eta() const
The (pseudo) eta.
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.
double energy() const
Energy values (signed) energy.
double pt() const
(signed) pt
METComponent operator+(const METComponent &lhs, const METComponent &rhs)
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.